com.hazelcast.spi
Class AbstractDistributedObject<S extends RemoteService>

java.lang.Object
  extended by com.hazelcast.spi.AbstractDistributedObject<S>
All Implemented Interfaces:
DistributedObject

public abstract class AbstractDistributedObject<S extends RemoteService>
extends Object
implements DistributedObject

Author:
mdogan 1/14/13

Constructor Summary
protected AbstractDistributedObject(NodeEngine nodeEngine, S service)
           
 
Method Summary
 void destroy()
          Destroys this object cluster-wide.
 NodeEngine getNodeEngine()
           
 S getService()
           
abstract  String getServiceName()
          Returns the service name for this object.
protected  RuntimeException throwNotActiveException()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.core.DistributedObject
getId, getName
 

Constructor Detail

AbstractDistributedObject

protected AbstractDistributedObject(NodeEngine nodeEngine,
                                    S service)
Method Detail

destroy

public final void destroy()
Description copied from interface: DistributedObject
Destroys this object cluster-wide. Clears and releases all resources for this object.

Specified by:
destroy in interface DistributedObject

getNodeEngine

public final NodeEngine getNodeEngine()

throwNotActiveException

protected RuntimeException throwNotActiveException()

getService

public final S getService()

getServiceName

public abstract String getServiceName()
Description copied from interface: DistributedObject
Returns the service name for this object.

Specified by:
getServiceName in interface DistributedObject


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