planet.scribe.messaging
Class ReplicaSetMessage

java.lang.Object
  extended byplanet.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.
 
Method Summary
 int getMaxRank()
           
 Id getMessageKey()
           
 java.util.Vector getReplicaSet()
           
 boolean isRequest()
           
 void setMaxRank(int maxRank)
           
 void setMessageKey(Id messageKey)
           
 void setReplicaSet(java.util.Vector replicaSet)
           
 void setRequest(boolean request)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.


EF="#method_detail">METHOD