|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.spi.impl.NodeEngineImpl
public class NodeEngineImpl
The NodeEngineImpl is the where the construction of the Hazelcast dependencies take place. It can be compared to a Spring ApplicationContext. It is fine that we refer to concrete types, and it is fine that we cast to a concrete type within this class (e.g. to call shutdown). In an application context you get exactly the same behavior.
But the crucial thing is that we don't want to leak concrete dependencies to the outside. For example we don't leakOperationServiceImpl to the outside.
| Constructor Summary | |
|---|---|
NodeEngineImpl(Node node)
|
|
| 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. |
|
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. |
|
Node |
getNode()
|
|
Storage<DataRef> |
getOffHeapStorage()
Returns the offheap Storage. |
|
InternalOperationService |
getOperationService()
Gets the OperationService. |
|
PacketTransceiver |
getPacketTransceiver()
|
|
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()
|
|
SerializationService |
getSerializationService()
Gets the SerializationService. |
|
|
getService(String serviceName)
|
|
Collection<ServiceInfo> |
getServiceInfos(Class serviceClass)
|
|
|
getServices(Class<S> serviceClass)
Returns a list of services matching provides service class/interface. |
|
|
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. |
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeEngineImpl(Node node)
| Method Detail |
|---|
public PacketTransceiver getPacketTransceiver()
public void start()
public Address getThisAddress()
NodeEngine
getThisAddress in interface NodeEnginepublic Address getMasterAddress()
NodeEngine
getMasterAddress in interface NodeEnginepublic MemberImpl getLocalMember()
NodeEngine
getLocalMember in interface NodeEnginepublic Config getConfig()
NodeEngine
getConfig in interface NodeEnginepublic ClassLoader getConfigClassLoader()
NodeEngine
getConfigClassLoader in interface NodeEnginepublic InternalEventService getEventService()
NodeEngine
getEventService in interface NodeEnginepublic SerializationService getSerializationService()
NodeEngine
getSerializationService in interface NodeEnginepublic InternalOperationService getOperationService()
NodeEngine
getOperationService in interface NodeEnginepublic InternalExecutionService getExecutionService()
NodeEngine
getExecutionService in interface NodeEnginepublic InternalPartitionService getPartitionService()
NodeEngine
getPartitionService in interface NodeEnginepublic ClusterService getClusterService()
NodeEngine
getClusterService in interface NodeEnginepublic ManagementCenterService getManagementCenterService()
public InternalProxyService getProxyService()
NodeEngine
getProxyService in interface NodeEnginepublic InternalWaitNotifyService getWaitNotifyService()
NodeEngine
getWaitNotifyService in interface NodeEnginepublic WanReplicationService getWanReplicationService()
NodeEngine
getWanReplicationService in interface NodeEnginepublic QuorumServiceImpl getQuorumService()
getQuorumService in interface NodeEnginepublic TransactionManagerService getTransactionManagerService()
NodeEngine
getTransactionManagerService 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)
NodeEngine
toObject in interface NodeEngineobject - the object to deserialize.
public boolean isActive()
NodeEngineNodeEngine belongs to is still active.
A HazelcastInstance is not active when it is shut down.
isActive in interface NodeEnginepublic HazelcastInstance getHazelcastInstance()
NodeEngineNodeEngine belongs to.
getHazelcastInstance in interface NodeEnginepublic ILogger getLogger(String name)
NodeEngine
getLogger in interface NodeEnginename - the name of the logger.
NodeEngine.getLogger(Class)public ILogger getLogger(Class clazz)
NodeEngine
getLogger in interface NodeEngineclazz - the class of the logger.
NodeEngine.getLogger(String)public GroupProperties getGroupProperties()
NodeEngine
getGroupProperties 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 Storage<DataRef> getOffHeapStorage()
NodeEngineStorage.
getOffHeapStorage in interface NodeEnginepublic void reset()
public void shutdown(boolean terminate)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||