Class DSCMessage
- java.lang.Object
-
- com.sun.enterprise.ee.cms.impl.common.DSCMessage
-
- All Implemented Interfaces:
java.io.Serializable
public class DSCMessage extends java.lang.Object implements java.io.SerializableThis is a wrapper Serializable dedicated to support the DistributedStateCache such that the message ncapsulates the operation for which the message is intended at the receivers end.- Version:
- $Revision$
- Author:
- Shreedhar Ganapathy Date: May 9, 2005
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDSCMessage.OPERATION
-
Constructor Summary
Constructors Constructor Description DSCMessage(com.sun.enterprise.ee.cms.core.GMSCacheable key, java.lang.Object value, java.lang.String operation)This constructor expects a GMSCacheable object representing the composite key comprising component, member id, and the state specific key, followed by the value.DSCMessage(java.util.concurrent.ConcurrentHashMap<com.sun.enterprise.ee.cms.core.GMSCacheable,java.lang.Object> cache, java.lang.String operation, boolean isCoordinator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.ConcurrentHashMap<com.sun.enterprise.ee.cms.core.GMSCacheable,java.lang.Object>getCache()com.sun.enterprise.ee.cms.core.GMSCacheablegetKey()java.lang.StringgetOperation()java.lang.ObjectgetValue()booleanisCoordinator()
-
-
-
Constructor Detail
-
DSCMessage
public DSCMessage(com.sun.enterprise.ee.cms.core.GMSCacheable key, java.lang.Object value, java.lang.String operation)This constructor expects a GMSCacheable object representing the composite key comprising component, member id, and the state specific key, followed by the value. The value object should strictly be only a byte[] or a Serializable Object.- Parameters:
key- the keyvalue- the object valueoperation- the type of operation
-
DSCMessage
public DSCMessage(java.util.concurrent.ConcurrentHashMap<com.sun.enterprise.ee.cms.core.GMSCacheable,java.lang.Object> cache, java.lang.String operation, boolean isCoordinator)
-
-
Method Detail
-
getKey
public com.sun.enterprise.ee.cms.core.GMSCacheable getKey()
-
getValue
public java.lang.Object getValue()
-
getOperation
public java.lang.String getOperation()
-
getCache
public java.util.concurrent.ConcurrentHashMap<com.sun.enterprise.ee.cms.core.GMSCacheable,java.lang.Object> getCache()
-
isCoordinator
public boolean isCoordinator()
-
-