com.hazelcast.client
Class ClientEngineImpl

java.lang.Object
  extended by com.hazelcast.client.ClientEngineImpl
All Implemented Interfaces:
ClientEngine, CoreService, EventPublishingService<ClientEndpoint,ClientListener>, ManagedService, MembershipAwareService

public class ClientEngineImpl
extends Object
implements ClientEngine, CoreService, ManagedService, MembershipAwareService, EventPublishingService<ClientEndpoint,ClientListener>


Field Summary
static int DESTROY_ENDPOINT_DELAY_MS
           
static int ENDPOINT_REMOVE_DELAY_MS
           
static int RIDICULOUS_THREADS_PER_CORE
           
static String SERVICE_NAME
           
static int THREADS_PER_CORE
           
 
Constructor Summary
ClientEngineImpl(com.hazelcast.instance.Node node)
           
 
Method Summary
 void dispatchEvent(ClientEndpoint event, ClientListener listener)
           
 int getClientEndpointCount()
           
 Collection<Client> getClients()
           
 ClientService getClientService()
           
 ClusterService getClusterService()
           
 Config getConfig()
           
 com.hazelcast.nio.ConnectionListener getConnectionListener()
           
 EventService getEventService()
           
 com.hazelcast.instance.MemberImpl getLocalMember()
           
 com.hazelcast.logging.ILogger getLogger(Class clazz)
           
 com.hazelcast.logging.ILogger getLogger(String className)
           
 com.hazelcast.nio.Address getMasterAddress()
           
 com.hazelcast.partition.InternalPartitionService getPartitionService()
           
 ProxyService getProxyService()
           
 SecurityContext getSecurityContext()
           
 SerializationService getSerializationService()
           
 com.hazelcast.nio.Address getThisAddress()
           
 TransactionManagerService getTransactionManagerService()
           
 void handlePacket(com.hazelcast.nio.ClientPacket packet)
           
 void init(NodeEngine nodeEngine, Properties properties)
          Initializes the ManagedService
 void memberAdded(MembershipServiceEvent event)
          Invoked when a new member is added to the cluster.
 void memberAttributeChanged(MemberAttributeServiceEvent event)
          Invoked when a member attribute is changed.
 void memberRemoved(MembershipServiceEvent event)
          Invoked when an existing member leaves the cluster.
 void reset()
          reset service, back to initial state
 void shutdown(boolean terminate)
          Shuts down the ManagedService.
 Data toData(Object obj)
           
 Object toObject(Data data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final String SERVICE_NAME
See Also:
Constant Field Values

DESTROY_ENDPOINT_DELAY_MS

public static final int DESTROY_ENDPOINT_DELAY_MS
See Also:
Constant Field Values

ENDPOINT_REMOVE_DELAY_MS

public static final int ENDPOINT_REMOVE_DELAY_MS
See Also:
Constant Field Values

THREADS_PER_CORE

public static final int THREADS_PER_CORE
See Also:
Constant Field Values

RIDICULOUS_THREADS_PER_CORE

public static final int RIDICULOUS_THREADS_PER_CORE
See Also:
Constant Field Values
Constructor Detail

ClientEngineImpl

public ClientEngineImpl(com.hazelcast.instance.Node node)
Method Detail

getConnectionListener

public com.hazelcast.nio.ConnectionListener getConnectionListener()

getClientEndpointCount

public int getClientEndpointCount()
Specified by:
getClientEndpointCount in interface ClientEngine

handlePacket

public void handlePacket(com.hazelcast.nio.ClientPacket packet)

toObject

public Object toObject(Data data)
Specified by:
toObject in interface ClientEngine

toData

public Data toData(Object obj)
Specified by:
toData in interface ClientEngine

getPartitionService

public com.hazelcast.partition.InternalPartitionService getPartitionService()
Specified by:
getPartitionService in interface ClientEngine

getClusterService

public ClusterService getClusterService()
Specified by:
getClusterService in interface ClientEngine

getSerializationService

public SerializationService getSerializationService()
Specified by:
getSerializationService in interface ClientEngine

getEventService

public EventService getEventService()
Specified by:
getEventService in interface ClientEngine

getProxyService

public ProxyService getProxyService()
Specified by:
getProxyService in interface ClientEngine

getTransactionManagerService

public TransactionManagerService getTransactionManagerService()
Specified by:
getTransactionManagerService in interface ClientEngine

getMasterAddress

public com.hazelcast.nio.Address getMasterAddress()
Specified by:
getMasterAddress in interface ClientEngine

getThisAddress

public com.hazelcast.nio.Address getThisAddress()
Specified by:
getThisAddress in interface ClientEngine

getLocalMember

public com.hazelcast.instance.MemberImpl getLocalMember()
Specified by:
getLocalMember in interface ClientEngine

getConfig

public Config getConfig()
Specified by:
getConfig in interface ClientEngine

getLogger

public com.hazelcast.logging.ILogger getLogger(Class clazz)
Specified by:
getLogger in interface ClientEngine

getLogger

public com.hazelcast.logging.ILogger getLogger(String className)
Specified by:
getLogger in interface ClientEngine

getSecurityContext

public SecurityContext getSecurityContext()
Specified by:
getSecurityContext in interface ClientEngine

dispatchEvent

public void dispatchEvent(ClientEndpoint event,
                          ClientListener listener)
Specified by:
dispatchEvent in interface EventPublishingService<ClientEndpoint,ClientListener>

memberAdded

public void memberAdded(MembershipServiceEvent event)
Description copied from interface: MembershipAwareService
Invoked when a new member is added to the cluster.

Specified by:
memberAdded in interface MembershipAwareService

memberRemoved

public void memberRemoved(MembershipServiceEvent event)
Description copied from interface: MembershipAwareService
Invoked when an existing member leaves the cluster.

Specified by:
memberRemoved in interface MembershipAwareService

memberAttributeChanged

public void memberAttributeChanged(MemberAttributeServiceEvent event)
Description copied from interface: MembershipAwareService
Invoked when a member attribute is changed.

Specified by:
memberAttributeChanged in interface MembershipAwareService

getClientService

public ClientService getClientService()

getClients

public Collection<Client> getClients()

init

public void init(NodeEngine nodeEngine,
                 Properties properties)
Description copied from interface: ManagedService
Initializes the ManagedService

Specified by:
init in interface ManagedService
Parameters:
nodeEngine - the NodeEngine this ManagedService is initialized with.
properties - the Properties

reset

public void reset()
Description copied from interface: ManagedService
reset service, back to initial state

Specified by:
reset in interface ManagedService

shutdown

public void shutdown(boolean terminate)
Description copied from interface: ManagedService
Shuts down the ManagedService.

Specified by:
shutdown in interface ManagedService


Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.