public interface ClientEngine extends Consumer<ClientMessage>
Modifier and Type | Method and Description |
---|---|
void |
addBackupListener(UUID clientUUID,
Consumer<Long> backupListener) |
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.
|
boolean |
deregisterBackupListener(UUID clientUUID) |
void |
dispatchBackupEvent(UUID clientUUID,
long clientCorrelationId) |
int |
getClientEndpointCount() |
ClientExceptions |
getClientExceptions() |
Collection<Client> |
getClients() |
Map<UUID,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) |
ClientPartitionListenerService |
getPartitionListenerService() |
IPartitionService |
getPartitionService() |
ProxyService |
getProxyService() |
SecurityContext |
getSecurityContext() |
Address |
getThisAddress() |
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.
|
void |
onClientAcquiredResource(UUID uuid)
Notify client engine that a client with given uuid required a resource (lock) on this member
|
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()
ClientEndpointManager getEndpointManager()
ClientExceptions getClientExceptions()
SecurityContext getSecurityContext()
TransactionManagerService getTransactionManagerService()
ClientPartitionListenerService getPartitionListenerService()
Map<ClientType,Integer> getConnectedClientStats()
Map<ClientType, Integer>
.Map<UUID,String> getClientStatistics()
<example.fastmap>
and ICache Named
<StatTestCacheName>
and assuming that the Near Cache is configured):
clientType clusterConnectionTimestamp credentials.principal clientAddress clientName enterprise lastStatisticsCollectionTime nearcache.<example\.fastmap>.creationTime nearcache.<example\.fastmap>.evictions nearcache.<example\.fastmap>.expirations nearcache.<example\.fastmap>.hits nearcache.<example\.fastmap>.lastPersistenceDuration nearcache.<example\.fastmap>.lastPersistenceFailure nearcache.<example\.fastmap>.lastPersistenceKeyCount nearcache.<example\.fastmap>.lastPersistenceTime nearcache.<example\.fastmap>.lastPersistenceWrittenBytes nearcache.<example\.fastmap>.misses nearcache.<example\.fastmap>.ownedEntryCount nearcache.<example\.fastmap>.ownedEntryMemoryCost nearcache.hz/<StatTestCacheName>.creationTime nearcache.hz/<StatTestCacheName>.evictions nearcache.hz/<StatTestCacheName>.expirations nearcache.hz/<StatTestCacheName>.hits nearcache.hz/<StatTestCacheName>.lastPersistenceDuration nearcache.hz/<StatTestCacheName>.lastPersistenceFailure nearcache.hz/<StatTestCacheName>.lastPersistenceKeyCount nearcache.hz/<StatTestCacheName>.lastPersistenceTime nearcache.hz/<StatTestCacheName>.lastPersistenceWrittenBytes nearcache.hz/<StatTestCacheName>.misses nearcache.hz/<StatTestCacheName>.ownedEntryCount nearcache.hz/<StatTestCacheName>.ownedEntryMemoryCost os.committedVirtualMemorySize os.freePhysicalMemorySize os.freeSwapSpaceSize os.maxFileDescriptorCount os.openFileDescriptorCount os.processCpuTime os.systemLoadAverage os.totalPhysicalMemorySize os.totalSwapSpaceSize runtime.availableProcessors runtime.freeMemory runtime.maxMemory runtime.totalMemory runtime.uptime runtime.usedMemory userExecutor.queueSizeNot: Please observe that the name for the ICache appears to be the hazelcast instance name "hz" followed by "/" and followed by the cache name provided which is StatTestCacheName.
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 membervoid onClientAcquiredResource(UUID uuid)
uuid
- client uuidboolean deregisterBackupListener(UUID clientUUID)
void dispatchBackupEvent(UUID clientUUID, long clientCorrelationId)
Copyright © 2019 Hazelcast, Inc.. All rights reserved.