|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.instance.DefaultNodeExtension
public class DefaultNodeExtension
| Field Summary | |
|---|---|
protected ILogger |
logger
|
protected Node |
node
|
protected ILogger |
systemLogger
|
| Constructor Summary | |
|---|---|
DefaultNodeExtension()
|
|
| Method Summary | ||
|---|---|---|
void |
afterStart(Node node)
Called after node is started |
|
void |
beforeStart(Node node)
Called before node is started |
|
PacketReader |
createPacketReader(TcpIpConnection connection,
IOService ioService)
Creates a PacketReader for given Connection instance. |
|
PacketWriter |
createPacketWriter(TcpIpConnection connection,
IOService ioService)
Creates a PacketWriter for given Connection instance. |
|
SerializationService |
createSerializationService()
Creates a SerializationService instance to be used by this Node. |
|
|
createService(Class<T> clazz)
Creates a service which is an implementation of given type parameter. |
|
void |
destroy()
Destroys NodeExtension. |
|
MemberSocketInterceptor |
getMemberSocketInterceptor()
Returns MemberSocketInterceptor for this Node if available, otherwise returns null. |
|
MemoryStats |
getMemoryStats()
Returns MemoryStats of for the JVM and current HazelcastInstance. |
|
Storage<DataRef> |
getNativeDataStorage()
|
|
protected PartitioningStrategy |
getPartitioningStrategy(ClassLoader configClassLoader)
|
|
SecurityContext |
getSecurityContext()
Returns SecurityContext for this Node if available, otherwise returns null. |
|
SocketChannelWrapperFactory |
getSocketChannelWrapperFactory()
Returns SocketChannelWrapperFactory instance to be used by this Node. |
|
void |
onThreadStart(Thread thread)
Called on thread start to inject/intercept extension specific logic, like; registering thread in some service, executing a special method before thread starts to do its own task. |
|
void |
onThreadStop(Thread thread)
Called before a thread stops to clean/release injected by NodeExtension.onThreadStart(Thread). |
|
void |
printNodeInfo(Node node)
Called to print node information during startup |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected volatile Node node
protected volatile ILogger logger
protected volatile ILogger systemLogger
| Constructor Detail |
|---|
public DefaultNodeExtension()
| Method Detail |
|---|
public void beforeStart(Node node)
NodeExtension
beforeStart in interface NodeExtensionpublic void printNodeInfo(Node node)
NodeExtension
printNodeInfo in interface NodeExtensionpublic void afterStart(Node node)
NodeExtension
afterStart in interface NodeExtensionpublic SecurityContext getSecurityContext()
NodeExtension
getSecurityContext in interface NodeExtensionpublic Storage<DataRef> getNativeDataStorage()
getNativeDataStorage in interface NodeExtensionpublic SerializationService createSerializationService()
NodeExtension
createSerializationService in interface NodeExtension
protected PartitioningStrategy getPartitioningStrategy(ClassLoader configClassLoader)
throws Exception
Exceptionpublic <T> T createService(Class<T> clazz)
NodeExtension
createService in interface NodeExtensionclazz - type of service
public MemberSocketInterceptor getMemberSocketInterceptor()
NodeExtension
getMemberSocketInterceptor in interface NodeExtensionpublic SocketChannelWrapperFactory getSocketChannelWrapperFactory()
NodeExtension
getSocketChannelWrapperFactory in interface NodeExtension
public PacketReader createPacketReader(TcpIpConnection connection,
IOService ioService)
NodeExtension
createPacketReader in interface NodeExtensionconnection - tcp-ip connectionioService - IOService
public PacketWriter createPacketWriter(TcpIpConnection connection,
IOService ioService)
NodeExtension
createPacketWriter in interface NodeExtensionconnection - tcp-ip connectionioService - IOService
public void onThreadStart(Thread thread)
NodeExtension
onThreadStart in interface NodeExtensionthread - thread startingpublic void onThreadStop(Thread thread)
NodeExtensionNodeExtension.onThreadStart(Thread).
onThreadStop in interface NodeExtensionthread - thread stoppingpublic MemoryStats getMemoryStats()
NodeExtension
getMemoryStats in interface NodeExtensionpublic void destroy()
NodeExtension
destroy in interface NodeExtension
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||