org.apache.catalina.tribes.tipis

Class AbstractReplicatedMap.MapMessage

public static class AbstractReplicatedMap.MapMessage extends Object implements Serializable

Field Summary
static intMSG_BACKUP
static intMSG_COPY
static intMSG_INIT
static intMSG_PROXY
static intMSG_REMOVE
static intMSG_RETRIEVE_BACKUP
static intMSG_START
static intMSG_STATE
static intMSG_STATE_COPY
static intMSG_STOP
Constructor Summary
MapMessage()
MapMessage(byte[] mapId, int msgtype, boolean diff, Serializable key, Serializable value, byte[] diffvalue, Member primary, Member[] nodes)
Method Summary
Objectclone()
shallow clone
voiddeserialize(ClassLoader[] cls)
Member[]getBackupNodes()
byte[]getDiffValue()
SerializablegetKey()
byte[]getKeyData()
byte[]getMapId()
intgetMsgType()
MembergetPrimary()
StringgetTypeDesc()
SerializablegetValue()
byte[]getValueData()
booleanisDiff()
Serializablekey(ClassLoader[] cls)
protected Member[]readMembers(ObjectInput in)
voidsetKey(Serializable key)
voidsetValue(Serializable value)
StringtoString()
Serializablevalue(ClassLoader[] cls)
protected voidwriteMembers(ObjectOutput out, Member[] members)

Field Detail

MSG_BACKUP

public static final int MSG_BACKUP

MSG_COPY

public static final int MSG_COPY

MSG_INIT

public static final int MSG_INIT

MSG_PROXY

public static final int MSG_PROXY

MSG_REMOVE

public static final int MSG_REMOVE

MSG_RETRIEVE_BACKUP

public static final int MSG_RETRIEVE_BACKUP

MSG_START

public static final int MSG_START

MSG_STATE

public static final int MSG_STATE

MSG_STATE_COPY

public static final int MSG_STATE_COPY

MSG_STOP

public static final int MSG_STOP

Constructor Detail

MapMessage

public MapMessage()

MapMessage

public MapMessage(byte[] mapId, int msgtype, boolean diff, Serializable key, Serializable value, byte[] diffvalue, Member primary, Member[] nodes)

Method Detail

clone

public Object clone()
shallow clone

Returns: Object

deserialize

public void deserialize(ClassLoader[] cls)

getBackupNodes

public Member[] getBackupNodes()

getDiffValue

public byte[] getDiffValue()

getKey

public Serializable getKey()

getKeyData

public byte[] getKeyData()

getMapId

public byte[] getMapId()

getMsgType

public int getMsgType()

getPrimary

public Member getPrimary()

getTypeDesc

public String getTypeDesc()

getValue

public Serializable getValue()

getValueData

public byte[] getValueData()

isDiff

public boolean isDiff()

key

public Serializable key(ClassLoader[] cls)

readMembers

protected Member[] readMembers(ObjectInput in)

setKey

public void setKey(Serializable key)

setValue

public void setValue(Serializable value)

toString

public String toString()

value

public Serializable value(ClassLoader[] cls)

writeMembers

protected void writeMembers(ObjectOutput out, Member[] members)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.