|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeEngine
The NodeEngine is the 'umbrella' of services/service-method that gets injected into a ManagedService
.
ManagedService
so you can get access to the services within the system.
Method Summary | ||
---|---|---|
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. |
|
|
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 . |
|
|
toObject(Object object)
Deserializes an object. |
Method Detail |
---|
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.Storage<DataRef> getOffHeapStorage()
Storage
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |