public class NoOpClientEngine extends Object implements ClientEngine
| Constructor and Description |
|---|
NoOpClientEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ClientMessage clientMessage)
Performs this operation on the given argument.
|
void |
applySelector(ClientSelector selector)
Only Clients that can pass through filter are allowed to connect to cluster.
|
boolean |
bind(ClientEndpoint endpoint)
Registers client endpoint to endpointManager.
|
Address |
clientAddressOf(Address clientAddress)
Locates the client address of the given member address.
|
int |
getClientEndpointCount() |
ClientExceptions |
getClientExceptions() |
Collection<Client> |
getClients() |
Map<String,String> |
getClientStatistics()
The statistics is a String that is composed of key=value pairs separated by ',' .
|
ClusterService |
getClusterService() |
Map<ClientType,Integer> |
getConnectedClientStats()
Returns Map which contains number of connected clients to the cluster.
|
ClientEndpointManager |
getEndpointManager() |
EventService |
getEventService() |
ILogger |
getLogger(Class clazz) |
String |
getOwnerUuid(String clientUuid) |
ClientPartitionListenerService |
getPartitionListenerService() |
IPartitionService |
getPartitionService() |
ProxyService |
getProxyService() |
SecurityContext |
getSecurityContext() |
Address |
getThisAddress() |
String |
getThisUuid() |
TransactionManagerService |
getTransactionManagerService() |
boolean |
isClientAllowed(Client client) |
Address |
memberAddressOf(Address clientAddress)
Locates the cluster member that has the provided client address and returns its member address,
to be used for intra-cluster communication.
|
public boolean bind(ClientEndpoint endpoint)
ClientEngineClientEngine.applySelector(com.hazelcast.client.impl.ClientSelector)bind in interface ClientEngineendpoint - to be registered to client enginepublic Collection<Client> getClients()
getClients in interface ClientEnginepublic int getClientEndpointCount()
getClientEndpointCount in interface ClientEnginepublic IPartitionService getPartitionService()
getPartitionService in interface ClientEnginepublic ClusterService getClusterService()
getClusterService in interface ClientEnginepublic EventService getEventService()
getEventService in interface ClientEnginepublic ProxyService getProxyService()
getProxyService in interface ClientEnginepublic ILogger getLogger(Class clazz)
getLogger in interface ClientEnginepublic Address getThisAddress()
getThisAddress in interface ClientEngineNode.getThisAddress()public String getThisUuid()
getThisUuid in interface ClientEnginepublic ClientEndpointManager getEndpointManager()
getEndpointManager in interface ClientEnginepublic ClientExceptions getClientExceptions()
getClientExceptions in interface ClientEnginepublic SecurityContext getSecurityContext()
getSecurityContext in interface ClientEnginepublic TransactionManagerService getTransactionManagerService()
getTransactionManagerService in interface ClientEnginepublic ClientPartitionListenerService getPartitionListenerService()
getPartitionListenerService in interface ClientEnginepublic Map<ClientType,Integer> getConnectedClientStats()
ClientEnginegetConnectedClientStats in interface ClientEnginepublic Map<String,String> getClientStatistics()
ClientEnginegetClientStatistics in interface ClientEnginepublic String getOwnerUuid(String clientUuid)
getOwnerUuid in interface ClientEnginepublic boolean isClientAllowed(Client client)
isClientAllowed in interface ClientEngineclient - to check if allowed through current ClientSelectorpublic void applySelector(ClientSelector selector)
ClientEngineapplySelector in interface ClientEngineselector - to select a client or group of clients to act uponpublic void accept(ClientMessage clientMessage)
Consumeraccept in interface Consumer<ClientMessage>clientMessage - the input argumentpublic Address memberAddressOf(Address clientAddress)
ClientEngineTargetNotMemberException when no member with the
provided client address can be located.memberAddressOf in interface ClientEngineclientAddress - the client address of the memberpublic Address clientAddressOf(Address clientAddress)
ClientEngineClientEngine.memberAddressOf(Address).clientAddressOf in interface ClientEngineclientAddress - the member address of the memberCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.