com.hazelcast.client
Class ClientEngineImpl

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

public class ClientEngineImpl
extends Object
implements ClientEngine, com.hazelcast.nio.ConnectionListener, CoreService, ManagedService, MembershipAwareService, EventPublishingService<ClientEndpoint,ClientListener>

Author:
mdogan 2/20/13

Field Summary
static String SERVICE_NAME
           
 
Constructor Summary
ClientEngineImpl(com.hazelcast.instance.Node node)
           
 
Method Summary
 void connectionAdded(com.hazelcast.nio.Connection connection)
           
 void connectionRemoved(com.hazelcast.nio.Connection connection)
           
 void dispatchEvent(ClientEndpoint event, ClientListener listener)
           
 ClientService getClientService()
           
 ClusterService getClusterService()
           
 Config getConfig()
           
 Collection<Client> getEndpoints()
           
 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.PartitionService getPartitionService()
           
 ProxyService getProxyService()
           
 SerializationService getSerializationService()
           
 com.hazelcast.nio.Address getThisAddress()
           
 TransactionManagerService getTransactionManagerService()
           
 void handlePacket(com.hazelcast.nio.ClientPacket packet)
           
 void init(NodeEngine nodeEngine, Properties properties)
           
 void memberAdded(MembershipServiceEvent event)
          Invoked when a new member is added to the cluster.
 void memberRemoved(MembershipServiceEvent event)
          Invoked when an existing member leaves the cluster.
 void reset()
          reset service, back to initial state
 void sendResponse(ClientEndpoint endpoint, Object response)
           
 void shutdown()
          shutdown service
 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
Constructor Detail

ClientEngineImpl

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

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.PartitionService 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

sendResponse

public void sendResponse(ClientEndpoint endpoint,
                         Object response)
Specified by:
sendResponse 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

connectionAdded

public void connectionAdded(com.hazelcast.nio.Connection connection)
Specified by:
connectionAdded in interface com.hazelcast.nio.ConnectionListener

connectionRemoved

public void connectionRemoved(com.hazelcast.nio.Connection connection)
Specified by:
connectionRemoved in interface com.hazelcast.nio.ConnectionListener

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

getClientService

public ClientService getClientService()

getEndpoints

public Collection<Client> getEndpoints()

init

public void init(NodeEngine nodeEngine,
                 Properties properties)
Specified by:
init in interface ManagedService

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()
Description copied from interface: ManagedService
shutdown service

Specified by:
shutdown in interface ManagedService


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