|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.client.impl.ClientEngineImpl
public class ClientEngineImpl
Class that requests, listeners from client handled in node side.
| Field Summary | |
|---|---|
static String |
SERVICE_NAME
Service Name of clientEngine to be used in requests |
| Constructor Summary | |
|---|---|
ClientEngineImpl(Node node)
|
|
| Method Summary | |
|---|---|
void |
addOwnershipMapping(String clientUuid,
String ownerUuid)
|
void |
bind(ClientEndpoint endpoint)
|
void |
dispatchEvent(ClientEndpointImpl event,
ClientListener listener)
|
int |
getClientEndpointCount()
|
Collection<Client> |
getClients()
|
ClusterService |
getClusterService()
|
Config |
getConfig()
|
Map<ClientType,Integer> |
getConnectedClientStats()
Returns Map which contains number of connected clients to the cluster. |
ConnectionListener |
getConnectionListener()
|
ClientEndpointManager |
getEndpointManager()
|
EventService |
getEventService()
|
MemberImpl |
getLocalMember()
|
ILogger |
getLogger(Class clazz)
|
Address |
getMasterAddress()
|
InternalPartitionService |
getPartitionService()
|
Operation |
getPostJoinOperation()
Post join operations must be lock free, meaning no locks at all: no partition locks, no key-based locks, no service level locks, no database interaction! |
ProxyService |
getProxyService()
|
SecurityContext |
getSecurityContext()
|
Address |
getThisAddress()
|
TransactionManagerService |
getTransactionManagerService()
|
void |
handleClientMessage(ClientMessage clientMessage,
Connection connection)
|
void |
handlePacket(Packet 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 |
removeOwnershipMapping(String clientUuid)
|
void |
reset()
reset this ManagedService back to initial state. |
void |
sendResponse(ClientEndpoint endpoint,
Object key,
Object response,
int callId,
boolean isError,
boolean isEvent)
|
void |
shutdown(boolean terminate)
Shuts down this ManagedService. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SERVICE_NAME
| Constructor Detail |
|---|
public ClientEngineImpl(Node node)
| Method Detail |
|---|
public ConnectionListener getConnectionListener()
public int getClientEndpointCount()
getClientEndpointCount in interface ClientEnginepublic void handlePacket(Packet packet)
public void handleClientMessage(ClientMessage clientMessage,
Connection connection)
public InternalPartitionService getPartitionService()
getPartitionService in interface ClientEnginepublic ClusterService getClusterService()
getClusterService in interface ClientEnginepublic EventService getEventService()
getEventService in interface ClientEnginepublic ProxyService getProxyService()
getProxyService in interface ClientEngine
public void sendResponse(ClientEndpoint endpoint,
Object key,
Object response,
int callId,
boolean isError,
boolean isEvent)
public Address getMasterAddress()
getMasterAddress in interface ClientEnginepublic Address getThisAddress()
getThisAddress in interface ClientEnginepublic MemberImpl getLocalMember()
getLocalMember in interface ClientEnginepublic Config getConfig()
getConfig in interface ClientEnginepublic ILogger getLogger(Class clazz)
getLogger in interface ClientEnginepublic ClientEndpointManager getEndpointManager()
public SecurityContext getSecurityContext()
getSecurityContext in interface ClientEnginepublic void bind(ClientEndpoint endpoint)
public void dispatchEvent(ClientEndpointImpl event,
ClientListener listener)
dispatchEvent in interface EventPublishingService<ClientEndpointImpl,ClientListener>public void memberAdded(MembershipServiceEvent event)
MembershipAwareService
memberAdded in interface MembershipAwareServiceevent - the event for a new member added to the clusterpublic void memberRemoved(MembershipServiceEvent event)
MembershipAwareService
memberRemoved in interface MembershipAwareServiceevent - the event for an existing member leaving the clusterpublic void memberAttributeChanged(MemberAttributeServiceEvent event)
MembershipAwareService
memberAttributeChanged in interface MembershipAwareServiceevent - the event for a member attribute being changedpublic Collection<Client> getClients()
public void init(NodeEngine nodeEngine,
Properties properties)
ManagedService
init in interface ManagedServicenodeEngine - the NodeEngine that this ManagedService belongs to.properties - the Properties. Can be used to pass settings to the service.public void reset()
ManagedService
reset in interface ManagedServicepublic void shutdown(boolean terminate)
ManagedService
shutdown in interface ManagedServiceterminate - true to shut down the ManagedService
public void addOwnershipMapping(String clientUuid,
String ownerUuid)
public void removeOwnershipMapping(String clientUuid)
public TransactionManagerService getTransactionManagerService()
public Operation getPostJoinOperation()
PostJoinAwareServicePost join operations should return response, at least a null response.
getPostJoinOperation in interface PostJoinAwareServicepublic Map<ClientType,Integer> getConnectedClientStats()
ClientEngine
getConnectedClientStats in interface ClientEngine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||