|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.spi.AbstractDistributedObject<S>
S
- public abstract class AbstractDistributedObject<S extends RemoteService>
Abstract DistributedObject implementation. Useful to provide basic functionality.
Field Summary | |
---|---|
protected static PartitioningStrategy |
PARTITIONING_STRATEGY
|
Constructor Summary | |
---|---|
protected |
AbstractDistributedObject(NodeEngine nodeEngine,
S service)
|
Method Summary | |
---|---|
void |
destroy()
Destroys this object cluster-wide. |
boolean |
equals(Object o)
|
Object |
getId()
Deprecated. |
protected Data |
getNameAsPartitionAwareData()
|
NodeEngine |
getNodeEngine()
Gets the node engine. |
String |
getPartitionKey()
Returns the key of the partition that this DistributedObject is assigned to. |
S |
getService()
Gets the Service of this AbstractDistributedObject. |
abstract String |
getServiceName()
Returns the service name for this object. |
int |
hashCode()
|
void |
invalidate()
|
protected void |
postDestroy()
|
protected void |
throwNotActiveException()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.hazelcast.core.DistributedObject |
---|
getName |
Field Detail |
---|
protected static final PartitioningStrategy PARTITIONING_STRATEGY
Constructor Detail |
---|
protected AbstractDistributedObject(NodeEngine nodeEngine, S service)
Method Detail |
---|
protected Data getNameAsPartitionAwareData()
public String getPartitionKey()
DistributedObject
IAtomicLong
. For a partitioned data structure like an IMap
,
the returned value will not be null, but otherwise undefined.
getPartitionKey
in interface DistributedObject
public final void destroy()
DistributedObject
destroy
in interface DistributedObject
protected void postDestroy()
public final NodeEngine getNodeEngine()
HazelcastInstanceNotActiveException
- if NodeEngine not active or DistributedObject destroyed.protected void throwNotActiveException()
public final S getService()
HazelcastInstanceNotActiveException
- if object is destroyed or HazelcastInstance shutdown.public abstract String getServiceName()
DistributedObject
getServiceName
in interface DistributedObject
public final void invalidate()
@Deprecated public final Object getId()
DistributedObject
getId
in interface DistributedObject
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |