public class ClientEngineImpl extends Object implements ClientEngine, CoreService, PreJoinAwareService, ManagedService, MembershipAwareService, EventPublishingService<ClientEvent,ClientListener>
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME
Service name to be used in requests.
|
| Constructor and Description |
|---|
ClientEngineImpl(Node node) |
public static final String SERVICE_NAME
public ClientEngineImpl(Node node)
public ExecutorService getClientManagementExecutor()
public ConnectionListener getConnectionListener()
public SerializationService getSerializationService()
ClientEnginegetSerializationService in interface ClientEnginepublic int getClientEndpointCount()
getClientEndpointCount in interface ClientEnginepublic void accept(ClientMessage clientMessage)
Consumeraccept in interface Consumer<ClientMessage>clientMessage - the input argumentpublic IPartitionService getPartitionService()
getPartitionService in interface ClientEnginepublic ClusterService getClusterService()
getClusterService in interface ClientEnginepublic EventService getEventService()
getEventService in interface ClientEnginepublic ProxyService getProxyService()
getProxyService in interface ClientEnginepublic Address getMasterAddress()
getMasterAddress in interface ClientEnginepublic Address getThisAddress()
getThisAddress in interface ClientEnginepublic String getThisUuid()
getThisUuid 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 ClientExceptions getClientExceptions()
public SecurityContext getSecurityContext()
getSecurityContext in interface ClientEnginepublic void bind(ClientEndpoint endpoint)
public void dispatchEvent(ClientEvent event, ClientListener listener)
EventPublishingServicedispatchEvent in interface EventPublishingService<ClientEvent,ClientListener>event - the published eventlistener - the listener registered for this eventpublic void memberAdded(MembershipServiceEvent event)
MembershipAwareServicememberAdded in interface MembershipAwareServiceevent - the event for a new member added to the clusterpublic void memberRemoved(MembershipServiceEvent event)
MembershipAwareServicememberRemoved in interface MembershipAwareServiceevent - the event for an existing member leaving the clusterpublic void memberAttributeChanged(MemberAttributeServiceEvent event)
MembershipAwareServicememberAttributeChanged in interface MembershipAwareServiceevent - the event for a member attribute being changedpublic Collection<Client> getClients()
public void init(NodeEngine nodeEngine, Properties properties)
ManagedServiceinit in interface ManagedServicenodeEngine - the NodeEngine that this service belongs toproperties - the Properties (can be used to pass settings to the service)public void reset()
ManagedServiceTODO: what is the purpose of reset
reset in interface ManagedServicepublic void shutdown(boolean terminate)
ManagedServiceTODO: what is the purpose of the terminate variable
shutdown in interface ManagedServiceterminate - true to shut down this servicepublic boolean trySetLastAuthenticationCorrelationId(String clientUuid, long newCorrelationId)
public String getOwnerUuid(String clientUuid)
getOwnerUuid in interface ClientEnginepublic TransactionManagerService getTransactionManagerService()
public ClientPartitionListenerService getPartitionListenerService()
public Operation getPreJoinOperation()
PreJoinAwareServicePostJoinAwareService.getPostJoinOperation()s, no partition locks, no key-based locks, no service level
locks, no database interaction are allowed. Additionally, a pre-join operation is executed while the cluster
lock is being held on the joining member, so it is important that the operation finishes quickly and does not
interact with other locks.
The Operation.getPartitionId() method should return a negative value.
This means that the operations should not implement PartitionAwareOperation.
Pre join operations should return response, which may also be a null response.
getPreJoinOperation in interface PreJoinAwareServicenull.public Map<ClientType,Integer> getConnectedClientStats()
ClientEnginegetConnectedClientStats in interface ClientEnginepublic Map<String,String> getClientStatistics()
ClientEnginegetClientStatistics in interface ClientEngineCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.