com.hazelcast.spi
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.
|
GroupProperties |
getGroupProperties()
Returns the GroupProperties.
|
HazelcastInstance |
getHazelcastInstance()
Returns the HazelcastInstance that this
NodeEngine belongs to. |
MemberImpl |
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.
|
Storage<DataRef> |
getOffHeapStorage()
Returns the offheap
Storage . |
OperationService |
getOperationService()
Gets the OperationService.
|
InternalPartitionService |
getPartitionService()
Gets the InternalPartitionService.
|
ProxyService |
getProxyService()
Gets the ProxyService.
|
QuorumServiceImpl |
getQuorumService() |
SerializationService |
getSerializationService()
Gets the SerializationService.
|
<T extends SharedService> |
getSharedService(String serviceName)
Gets the
SharedService for the given serviceName. |
Address |
getThisAddress()
Get the address of this member.
|
TransactionManagerService |
getTransactionManagerService()
Gets the TransactionManagerService.
|
WaitNotifyService |
getWaitNotifyService()
Gets the WaitNotifyService.
|
WanReplicationService |
getWanReplicationService()
Gets the WanReplicationService.
|
boolean |
isActive()
Checks if the HazelcastInstance that this
NodeEngine belongs to is still active. |
Data |
toData(Object object)
Serializes an object to a
Data . |
<T> T |
toObject(Object object)
Deserializes an object.
|
OperationService getOperationService()
ExecutionService getExecutionService()
ClusterService getClusterService()
InternalPartitionService getPartitionService()
EventService getEventService()
SerializationService getSerializationService()
ProxyService getProxyService()
WaitNotifyService getWaitNotifyService()
WanReplicationService getWanReplicationService()
QuorumServiceImpl getQuorumService()
TransactionManagerService getTransactionManagerService()
Address getMasterAddress()
Address getThisAddress()
MemberImpl getLocalMember()
Config getConfig()
ClassLoader getConfigClassLoader()
GroupProperties getGroupProperties()
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.boolean isActive()
NodeEngine
belongs to is still active.
A HazelcastInstance is not active when it is shut down.HazelcastInstance getHazelcastInstance()
NodeEngine
belongs to.<T extends SharedService> T getSharedService(String serviceName)
SharedService
for the given serviceName.T
- serviceName
- the name of the shared service to get.NullPointerException
- if the serviceName is null.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.