public class ClientEngineImpl extends Object implements ClientEngine, CoreService, ManagedService, MembershipAwareService, EventPublishingService<ClientEndpoint,ClientListener>
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME
Service Name of clientEngine to be used in requests
|
Constructor and Description |
---|
ClientEngineImpl(com.hazelcast.instance.Node node) |
Modifier and Type | Method and Description |
---|---|
void |
dispatchEvent(ClientEndpoint event,
ClientListener listener) |
int |
getClientEndpointCount() |
Collection<Client> |
getClients() |
ClusterService |
getClusterService() |
Config |
getConfig() |
com.hazelcast.nio.ConnectionListener |
getConnectionListener() |
ClientEndpointManager |
getEndpointManager() |
EventService |
getEventService() |
com.hazelcast.instance.MemberImpl |
getLocalMember() |
com.hazelcast.logging.ILogger |
getLogger(Class clazz) |
com.hazelcast.nio.Address |
getMasterAddress() |
com.hazelcast.partition.InternalPartitionService |
getPartitionService() |
ProxyService |
getProxyService() |
SecurityContext |
getSecurityContext() |
com.hazelcast.nio.Address |
getThisAddress() |
TransactionManagerService |
getTransactionManagerService() |
void |
handlePacket(com.hazelcast.nio.ClientPacket packet) |
void |
init(NodeEngine nodeEngine,
Properties properties)
Initializes this ManagedService
|
void |
memberAdded(MembershipServiceEvent event)
Invoked when a new member is added to the cluster.
|
void |
memberAttributeChanged(MemberAttributeServiceEvent event)
Invoked when a member attribute is changed.
|
void |
memberRemoved(MembershipServiceEvent event)
Invoked when an existing member leaves the cluster.
|
void |
reset()
reset this ManagedService back to initial state.
|
void |
shutdown(boolean terminate)
Shuts down this ManagedService.
|
public static final String SERVICE_NAME
public com.hazelcast.nio.ConnectionListener getConnectionListener()
public int getClientEndpointCount()
getClientEndpointCount
in interface ClientEngine
public void handlePacket(com.hazelcast.nio.ClientPacket packet)
public com.hazelcast.partition.InternalPartitionService getPartitionService()
getPartitionService
in interface ClientEngine
public ClusterService getClusterService()
getClusterService
in interface ClientEngine
public EventService getEventService()
getEventService
in interface ClientEngine
public ProxyService getProxyService()
getProxyService
in interface ClientEngine
public TransactionManagerService getTransactionManagerService()
getTransactionManagerService
in interface ClientEngine
public com.hazelcast.nio.Address getMasterAddress()
getMasterAddress
in interface ClientEngine
public com.hazelcast.nio.Address getThisAddress()
getThisAddress
in interface ClientEngine
public com.hazelcast.instance.MemberImpl getLocalMember()
getLocalMember
in interface ClientEngine
public Config getConfig()
getConfig
in interface ClientEngine
public com.hazelcast.logging.ILogger getLogger(Class clazz)
getLogger
in interface ClientEngine
public ClientEndpointManager getEndpointManager()
public SecurityContext getSecurityContext()
getSecurityContext
in interface ClientEngine
public void dispatchEvent(ClientEndpoint event, ClientListener listener)
dispatchEvent
in interface EventPublishingService<ClientEndpoint,ClientListener>
public void memberAdded(MembershipServiceEvent event)
MembershipAwareService
memberAdded
in interface MembershipAwareService
public void memberRemoved(MembershipServiceEvent event)
MembershipAwareService
memberRemoved
in interface MembershipAwareService
public void memberAttributeChanged(MemberAttributeServiceEvent event)
MembershipAwareService
memberAttributeChanged
in interface MembershipAwareService
public Collection<Client> getClients()
public void init(NodeEngine nodeEngine, Properties properties)
ManagedService
init
in interface ManagedService
nodeEngine
- the NodeEngine this ManagedService belongs to.properties
- the Properties. Can be used to pass settings to the service.public void reset()
ManagedService
reset
in interface ManagedService
public void shutdown(boolean terminate)
ManagedService
shutdown
in interface ManagedService
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.