Package org.apache.catalina.tribes.tipis
Class AbstractReplicatedMap.MapMessage
- java.lang.Object
-
- org.apache.catalina.tribes.tipis.AbstractReplicatedMap.MapMessage
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
- Enclosing class:
- AbstractReplicatedMap<K,V>
public static class AbstractReplicatedMap.MapMessage extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMSG_ACCESSstatic intMSG_BACKUPstatic intMSG_COPYstatic intMSG_INITstatic intMSG_NOTIFY_MAPMEMBERstatic intMSG_PINGstatic intMSG_PROXYstatic intMSG_REMOVEstatic intMSG_RETRIEVE_BACKUPstatic intMSG_STARTstatic intMSG_STATEstatic intMSG_STATE_COPYstatic intMSG_STOP
-
Constructor Summary
Constructors Constructor Description MapMessage(byte[] mapId, int msgtype, boolean diff, java.io.Serializable key, java.io.Serializable value, byte[] diffvalue, Member primary, Member[] nodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractReplicatedMap.MapMessageclone()shallow clonevoiddeserialize(java.lang.ClassLoader[] cls)Member[]getBackupNodes()byte[]getDiffValue()java.io.SerializablegetKey()byte[]getKeyData()byte[]getMapId()intgetMsgType()MembergetPrimary()java.lang.StringgetTypeDesc()java.io.SerializablegetValue()byte[]getValueData()booleanisDiff()java.io.Serializablekey(java.lang.ClassLoader[] cls)voidsetKey(java.io.Serializable key)voidsetValue(java.io.Serializable value)java.lang.StringtoString()java.io.Serializablevalue(java.lang.ClassLoader[] cls)
-
-
-
Field Detail
-
MSG_BACKUP
public static final int MSG_BACKUP
- See Also:
- Constant Field Values
-
MSG_RETRIEVE_BACKUP
public static final int MSG_RETRIEVE_BACKUP
- See Also:
- Constant Field Values
-
MSG_PROXY
public static final int MSG_PROXY
- See Also:
- Constant Field Values
-
MSG_REMOVE
public static final int MSG_REMOVE
- See Also:
- Constant Field Values
-
MSG_STATE
public static final int MSG_STATE
- See Also:
- Constant Field Values
-
MSG_START
public static final int MSG_START
- See Also:
- Constant Field Values
-
MSG_STOP
public static final int MSG_STOP
- See Also:
- Constant Field Values
-
MSG_INIT
public static final int MSG_INIT
- See Also:
- Constant Field Values
-
MSG_COPY
public static final int MSG_COPY
- See Also:
- Constant Field Values
-
MSG_STATE_COPY
public static final int MSG_STATE_COPY
- See Also:
- Constant Field Values
-
MSG_ACCESS
public static final int MSG_ACCESS
- See Also:
- Constant Field Values
-
MSG_NOTIFY_MAPMEMBER
public static final int MSG_NOTIFY_MAPMEMBER
- See Also:
- Constant Field Values
-
MSG_PING
public static final int MSG_PING
- See Also:
- Constant Field Values
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getTypeDesc
public java.lang.String getTypeDesc()
-
deserialize
public void deserialize(java.lang.ClassLoader[] cls) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
getMsgType
public int getMsgType()
-
isDiff
public boolean isDiff()
-
getKey
public java.io.Serializable getKey()
-
key
public java.io.Serializable key(java.lang.ClassLoader[] cls) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
getKeyData
public byte[] getKeyData()
-
getValue
public java.io.Serializable getValue()
-
value
public java.io.Serializable value(java.lang.ClassLoader[] cls) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
getValueData
public byte[] getValueData()
-
getDiffValue
public byte[] getDiffValue()
-
getBackupNodes
public Member[] getBackupNodes()
-
getPrimary
public Member getPrimary()
-
getMapId
public byte[] getMapId()
-
setValue
public void setValue(java.io.Serializable value)
-
setKey
public void setKey(java.io.Serializable key)
-
clone
public AbstractReplicatedMap.MapMessage clone()
shallow clone- Overrides:
clonein classjava.lang.Object- Returns:
- Object
-
-