public interface ClientEngine extends Consumer<ClientMessage>
Modifier and Type | Method and Description |
---|---|
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 memberAddress)
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.
|
boolean bind(ClientEndpoint endpoint)
applySelector(com.hazelcast.client.impl.ClientSelector)
endpoint
- to be registered to client engineCollection<Client> getClients()
int getClientEndpointCount()
IPartitionService getPartitionService()
ClusterService getClusterService()
EventService getEventService()
ProxyService getProxyService()
Address getThisAddress()
Node.getThisAddress()
String getThisUuid()
ClientEndpointManager getEndpointManager()
ClientExceptions getClientExceptions()
SecurityContext getSecurityContext()
TransactionManagerService getTransactionManagerService()
ClientPartitionListenerService getPartitionListenerService()
Map<ClientType,Integer> getConnectedClientStats()
Map<String,String> getClientStatistics()
boolean isClientAllowed(Client client)
client
- to check if allowed through current ClientSelectorvoid applySelector(ClientSelector selector)
selector
- to select a client or group of clients to act uponAddress memberAddressOf(Address clientAddress)
TargetNotMemberException
when no member with the
provided client address can be located.clientAddress
- the client address of the memberAddress clientAddressOf(Address memberAddress)
memberAddressOf(Address)
.memberAddress
- the member address of the memberCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.