public class NodeEngineImpl extends Object implements NodeEngine
OperationServiceImpl to the outside.| Constructor and Description |
|---|
NodeEngineImpl(Node node) |
| 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.
|
InternalEventService |
getEventService()
Gets the EventService.
|
InternalExecutionService |
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.
|
ManagementCenterService |
getManagementCenterService() |
Address |
getMasterAddress()
Gets the address of the master member.
|
MetricsRegistry |
getMetricsRegistry() |
Node |
getNode() |
InternalOperationService |
getOperationService()
Gets the OperationService.
|
PacketDispatcher |
getPacketDispatcher() |
InternalPartitionService |
getPartitionService()
Gets the InternalPartitionService.
|
Operation[] |
getPostJoinOperations()
Post join operations must be lock free; means no locks at all;
no partition locks, no key-based locks, no service level locks!
Post join operations should return response, at least a null response.
|
InternalProxyService |
getProxyService()
Gets the ProxyService.
|
QuorumServiceImpl |
getQuorumService()
Gets the QuorumService.
|
SerializationService |
getSerializationService()
Gets the SerializationService.
|
<T> T |
getService(String serviceName) |
Collection<ServiceInfo> |
getServiceInfos(Class serviceClass) |
<S> Collection<S> |
getServices(Class<S> serviceClass)
Returns a list of services matching provides service class/interface.
|
<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.
|
InternalWaitNotifyService |
getWaitNotifyService()
Gets the WaitNotifyService.
|
WanReplicationService |
getWanReplicationService()
Gets the WanReplicationService.
|
boolean |
isActive()
Checks if the HazelcastInstance that this
NodeEngine belongs to is still active. |
boolean |
isRunning()
Indicates that node is not shutting down or it has not already shut down
|
void |
onClientDisconnected(String clientUuid) |
void |
onMemberLeft(MemberImpl member) |
void |
onPartitionMigrate(MigrationInfo migrationInfo) |
void |
reset() |
void |
shutdown(boolean terminate) |
void |
start() |
Data |
toData(Object object)
Serializes an object to a
Data. |
Object |
toObject(Object object)
Deserializes an object.
|
public NodeEngineImpl(Node node)
public MetricsRegistry getMetricsRegistry()
public PacketDispatcher getPacketDispatcher()
public void start()
public Address getThisAddress()
NodeEnginegetThisAddress in interface NodeEnginepublic Address getMasterAddress()
NodeEnginegetMasterAddress in interface NodeEnginepublic MemberImpl getLocalMember()
NodeEnginegetLocalMember in interface NodeEnginepublic Config getConfig()
NodeEnginegetConfig in interface NodeEnginepublic ClassLoader getConfigClassLoader()
NodeEnginegetConfigClassLoader in interface NodeEnginepublic InternalEventService getEventService()
NodeEnginegetEventService in interface NodeEnginepublic SerializationService getSerializationService()
NodeEnginegetSerializationService in interface NodeEnginepublic InternalOperationService getOperationService()
NodeEnginegetOperationService in interface NodeEnginepublic InternalExecutionService getExecutionService()
NodeEnginegetExecutionService in interface NodeEnginepublic InternalPartitionService getPartitionService()
NodeEnginegetPartitionService in interface NodeEnginepublic ClusterService getClusterService()
NodeEnginegetClusterService in interface NodeEnginepublic ManagementCenterService getManagementCenterService()
public InternalProxyService getProxyService()
NodeEnginegetProxyService in interface NodeEnginepublic InternalWaitNotifyService getWaitNotifyService()
NodeEnginegetWaitNotifyService in interface NodeEnginepublic WanReplicationService getWanReplicationService()
NodeEnginegetWanReplicationService in interface NodeEnginepublic QuorumServiceImpl getQuorumService()
NodeEnginegetQuorumService in interface NodeEnginepublic TransactionManagerService getTransactionManagerService()
NodeEnginegetTransactionManagerService in interface NodeEnginepublic Data toData(Object object)
NodeEngineData.
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.toData in interface NodeEngineobject - the object to serialize.public Object toObject(Object object)
NodeEnginetoObject in interface NodeEngineobject - the object to deserialize.public boolean isActive()
NodeEngineNodeEngine belongs to is still active.
A HazelcastInstance is not active when it is shutting down or already shut down.
* Also see NodeEngine.isRunning()isActive in interface NodeEnginepublic boolean isRunning()
NodeEngineisRunning in interface NodeEnginepublic HazelcastInstance getHazelcastInstance()
NodeEngineNodeEngine belongs to.getHazelcastInstance in interface NodeEnginepublic ILogger getLogger(String name)
NodeEnginegetLogger in interface NodeEnginename - the name of the logger.NodeEngine.getLogger(Class)public ILogger getLogger(Class clazz)
NodeEnginegetLogger in interface NodeEngineclazz - the class of the logger.NodeEngine.getLogger(String)public GroupProperties getGroupProperties()
NodeEnginegetGroupProperties in interface NodeEnginepublic <T> T getService(String serviceName)
public <T extends SharedService> T getSharedService(String serviceName)
NodeEngineSharedService for the given serviceName.getSharedService in interface NodeEngineserviceName - the name of the shared service to get.public <S> Collection<S> getServices(Class<S> serviceClass)
public Collection<ServiceInfo> getServiceInfos(Class serviceClass)
public Node getNode()
public void onMemberLeft(MemberImpl member)
public void onClientDisconnected(String clientUuid)
public void onPartitionMigrate(MigrationInfo migrationInfo)
public Operation[] getPostJoinOperations()
public void reset()
public void shutdown(boolean terminate)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.