public interface NodeEngine
ManagedService
.
So if you are writing a custom SPI service, such as a stack-service, this service should probably implement
the ManagedService
so you can get access to the services within the system.Modifier and Type | Method and Description |
---|---|
ClusterService |
getClusterService()
Gets the ClusterService.
|
Config |
getConfig()
Returns the Config that was used to create the HazelcastInstance.
|
ClassLoader |
getConfigClassLoader()
Returns the Config ClassLoader.
|
EventService |
getEventService()
Gets the EventService.
|
ExecutionService |
getExecutionService()
Gets the ExecutionService.
|
HazelcastInstance |
getHazelcastInstance()
Returns the HazelcastInstance that this
NodeEngine belongs to. |
Member |
getLocalMember()
Returns the local member.
|
ILogger |
getLogger(Class clazz)
Gets the logger for a given class.
|
ILogger |
getLogger(String name)
Gets the logger for a given name.
|
Address |
getMasterAddress()
Gets the address of the master member.
|
OperationService |
getOperationService()
Gets the OperationService.
|
IPartitionService |
getPartitionService()
Gets the IPartitionService.
|
HazelcastProperties |
getProperties()
Returns the HazelcastProperties.
|
ProxyService |
getProxyService()
Gets the ProxyService.
|
QuorumService |
getQuorumService()
Gets the QuorumService.
|
SerializationService |
getSerializationService()
Gets the SerializationService.
|
<T> T |
getService(String serviceName)
Gets the service with the given name.
|
<T extends SharedService> |
getSharedService(String serviceName)
Deprecated.
since 3.7. Use
getService(String) instead. |
Address |
getThisAddress()
Get the address of this member.
|
TransactionManagerService |
getTransactionManagerService()
Gets the TransactionManagerService.
|
MemberVersion |
getVersion()
Returns the codebase version of the node.
|
WanReplicationService |
getWanReplicationService()
Gets the WanReplicationService.
|
boolean |
isActive()
Deprecated.
|
boolean |
isRunning()
Indicates that node is not shutting down or it has not already shut down
|
Data |
toData(Object object)
Serializes an object to a
Data . |
<T> T |
toObject(Object object)
Deserializes an object.
|
<T> T |
toObject(Object object,
Class klazz)
Deserializes an object.
|
OperationService getOperationService()
ExecutionService getExecutionService()
ClusterService getClusterService()
IPartitionService getPartitionService()
EventService getEventService()
SerializationService getSerializationService()
ProxyService getProxyService()
WanReplicationService getWanReplicationService()
QuorumService getQuorumService()
TransactionManagerService getTransactionManagerService()
Address getMasterAddress()
Address getThisAddress()
Member getLocalMember()
Config getConfig()
ClassLoader getConfigClassLoader()
HazelcastProperties getProperties()
ILogger getLogger(String name)
name
- the name of the logger.NullPointerException
- if name is null.getLogger(Class)
ILogger getLogger(Class clazz)
clazz
- the class of the logger.NullPointerException
- if clazz is null.getLogger(String)
Data toData(Object object)
Data
.
This method can safely be called with a Data
instance. In that case, that instance is returned.
If this method is called with null, null is returned.object
- the object to serialize.HazelcastSerializationException
- when serialization fails.<T> T toObject(Object object)
object
- the object to deserialize.HazelcastSerializationException
- when deserialization fails.<T> T toObject(Object object, Class klazz)
object
- the object to deserialize.klazz
- The class to instantiate when deserializing the object.HazelcastSerializationException
- when deserialization fails.@Deprecated boolean isActive()
NodeEngine
belongs to is still active.
A HazelcastInstance is not active when it is shutting down or already shut down.
* Also see isRunning()
boolean isRunning()
HazelcastInstance getHazelcastInstance()
NodeEngine
belongs to.<T> T getService(String serviceName)
T
- the type of the service.serviceName
- the name of the service<T extends SharedService> T getSharedService(String serviceName)
getService(String)
instead.SharedService
for the given serviceName.T
- serviceName
- the name of the shared service to get.NullPointerException
- if the serviceName is null.MemberVersion getVersion()
Version.of(3,8,0)
. A node's codebase version may be different than cluster version.Cluster.getClusterVersion()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.