org.apache.catalina.tribes.tipis
Class AbstractReplicatedMap.MapMessage
java.lang.Object
org.apache.catalina.tribes.tipis.AbstractReplicatedMap.MapMessage
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- AbstractReplicatedMap
public static class AbstractReplicatedMap.MapMessage
- extends Object
- implements Serializable
- See Also:
- Serialized Form
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
AbstractReplicatedMap.MapMessage
public AbstractReplicatedMap.MapMessage()
AbstractReplicatedMap.MapMessage
public AbstractReplicatedMap.MapMessage(byte[] mapId,
int msgtype,
boolean diff,
Serializable key,
Serializable value,
byte[] diffvalue,
Member primary,
Member[] nodes)
toString
public String toString()
- Overrides:
toString
in class Object
getTypeDesc
public String getTypeDesc()
deserialize
public void deserialize(ClassLoader[] cls)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
getMsgType
public int getMsgType()
isDiff
public boolean isDiff()
getKey
public Serializable getKey()
key
public Serializable key(ClassLoader[] cls)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
getKeyData
public byte[] getKeyData()
getValue
public Serializable getValue()
value
public Serializable value(ClassLoader[] cls)
throws IOException,
ClassNotFoundException
- Throws:
IOException
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(Serializable value)
setKey
public void setKey(Serializable key)
readMembers
protected Member[] readMembers(ObjectInput in)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
writeMembers
protected void writeMembers(ObjectOutput out,
Member[] members)
throws IOException
- Throws:
IOException
clone
public Object clone()
- shallow clone
- Overrides:
clone
in class Object
- Returns:
- Object
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.