planet.scribe.messaging
Class ReplicaSetMessage
java.lang.Object
planet.scribe.messaging.ReplicaSetMessage
- All Implemented Interfaces:
- Message, java.io.Serializable
- public class ReplicaSetMessage
- extends java.lang.Object
- implements Message
Message of data to be send a request of the replica set of an another node
- Author:
- Ruben Mondejar, Jordi Pujol
Date: 02/07/2004
- See Also:
- Serialized Form
Constructor Summary |
ReplicaSetMessage(Id sourceId,
int maxRank)
Builds the message to inform the maximum number of replica
set that is required. |
ReplicaSetMessage(Id sourceId,
java.util.Vector replicaSet)
Builds the message to inform the required replica set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ReplicaSetMessage
public ReplicaSetMessage(Id sourceId,
int maxRank)
- Builds the message to inform the maximum number of replica
set that is required.
- Parameters:
sourceId
- Key from which to find the replica set.maxRank
- Maximum number of the replica set.
ReplicaSetMessage
public ReplicaSetMessage(Id sourceId,
java.util.Vector replicaSet)
- Builds the message to inform the required replica set.
- Parameters:
sourceId
- Key from which to find the replica set.replicaSet
- Replica set for this key.
getMessageKey
public Id getMessageKey()
- Returns:
- Returns the messageKey.
setMessageKey
public void setMessageKey(Id messageKey)
- Parameters:
messageKey
- The messageKey to set.
isRequest
public boolean isRequest()
- Returns:
- Returns true if is request type.
setRequest
public void setRequest(boolean request)
- Parameters:
request
- true if is request type.
getReplicaSet
public java.util.Vector getReplicaSet()
- Returns:
- Returns the replicaSet.
setReplicaSet
public void setReplicaSet(java.util.Vector replicaSet)
- Parameters:
replicaSet
- Node replica set.
toString
public java.lang.String toString()
getMaxRank
public int getMaxRank()
- Returns:
- Returns the maxRank.
setMaxRank
public void setMaxRank(int maxRank)
- Parameters:
maxRank
- The maxRank to set.