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)
ClientEngine
ClientEngine.applySelector(com.hazelcast.client.impl.ClientSelector)
bind
in interface ClientEngine
endpoint
- to be registered to client enginepublic Collection<Client> getClients()
getClients
in interface ClientEngine
public int getClientEndpointCount()
getClientEndpointCount
in interface ClientEngine
public IPartitionService 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 ILogger getLogger(Class clazz)
getLogger
in interface ClientEngine
public Address getThisAddress()
getThisAddress
in interface ClientEngine
Node.getThisAddress()
public String getThisUuid()
getThisUuid
in interface ClientEngine
public ClientEndpointManager getEndpointManager()
getEndpointManager
in interface ClientEngine
public ClientExceptions getClientExceptions()
getClientExceptions
in interface ClientEngine
public SecurityContext getSecurityContext()
getSecurityContext
in interface ClientEngine
public TransactionManagerService getTransactionManagerService()
getTransactionManagerService
in interface ClientEngine
public ClientPartitionListenerService getPartitionListenerService()
getPartitionListenerService
in interface ClientEngine
public Map<ClientType,Integer> getConnectedClientStats()
ClientEngine
getConnectedClientStats
in interface ClientEngine
public Map<String,String> getClientStatistics()
ClientEngine
getClientStatistics
in interface ClientEngine
public String getOwnerUuid(String clientUuid)
getOwnerUuid
in interface ClientEngine
public boolean isClientAllowed(Client client)
isClientAllowed
in interface ClientEngine
client
- to check if allowed through current ClientSelectorpublic void applySelector(ClientSelector selector)
ClientEngine
applySelector
in interface ClientEngine
selector
- to select a client or group of clients to act uponpublic void accept(ClientMessage clientMessage)
Consumer
accept
in interface Consumer<ClientMessage>
clientMessage
- the input argumentpublic Address memberAddressOf(Address clientAddress)
ClientEngine
TargetNotMemberException
when no member with the
provided client address can be located.memberAddressOf
in interface ClientEngine
clientAddress
- the client address of the memberpublic Address clientAddressOf(Address clientAddress)
ClientEngine
ClientEngine.memberAddressOf(Address)
.clientAddressOf
in interface ClientEngine
clientAddress
- the member address of the memberCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.