Class DSCMessage

  • All Implemented Interfaces:
    java.io.Serializable

    public class DSCMessage
    extends java.lang.Object
    implements java.io.Serializable
    This 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 class  DSCMessage.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.GMSCacheable getKey()  
      java.lang.String getOperation()  
      java.lang.Object getValue()  
      boolean isCoordinator()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 key
        value - the object value
        operation - 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()