|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dist1.acb.common.transport.Packet dist1.acb.common.transport.Response dist1.acb.CBL.concretePackets.ResponseHotJoinInfo
Response for request about a hot join
Field Summary | |
static byte |
BACKUP_NEEDS_REPLICAS
One of the possible values of the state: the primary must send replicas to the backup |
static byte |
PRIMARY_NEEDS_REPLICAS
One of the possible values of the state: the backup must send replicas to the primary |
static byte |
SYNCHRONIZED
One of the possible values of the state: the databases are synchronized, we can continue without additional steps |
Constructor Summary | |
ResponseHotJoinInfo(Request request,
java.net.InetSocketAddress primary)
Creates a new instance of ResponseHotJoinInfo state=SYNCHRONIZED |
|
ResponseHotJoinInfo(Request request,
java.net.InetSocketAddress primary,
Id lastReplicaId)
Creates a new instance of ResponseHotJoinInfo state=PRIMARY_NEEDS_REPLICAS |
|
ResponseHotJoinInfo(Request request,
java.net.InetSocketAddress primary,
java.util.LinkedList replicas)
Creates a new instance of ResponseHotJoinInfo state=BACKUP_NEEDS_REPLICAS |
Method Summary | |
Id |
getLastReplicaId()
Getter for property lastReplicaId. |
java.net.InetSocketAddress |
getPrimary()
Getter for property primary. |
java.util.LinkedList |
getReplicas()
Getter for property replicas. |
byte |
getState()
Getter for property state. |
void |
setLastReplicaId(Id lastReplicaId)
Setter for property lastReplicaId. |
void |
setPrimary(java.net.InetSocketAddress primary)
Setter for property primary. |
void |
setReplicas(java.util.LinkedList replicas)
Setter for property replicas. |
void |
setState(byte state)
Setter for property state. |
java.lang.String |
toString()
Returns string with description of the object |
Methods inherited from class dist1.acb.common.transport.Packet |
equals, getId |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte SYNCHRONIZED
public static final byte PRIMARY_NEEDS_REPLICAS
public static final byte BACKUP_NEEDS_REPLICAS
Constructor Detail |
public ResponseHotJoinInfo(Request request, java.net.InetSocketAddress primary)
request
- The response will be created for this request (it will
inherit the id). If request is null the id will be zero.primary
- Socket address of the Primarypublic ResponseHotJoinInfo(Request request, java.net.InetSocketAddress primary, Id lastReplicaId)
request
- The response will be created for this request (it will
inherit the id). If request is null the id will be zero.primary
- Socket address of the PrimarylastReplicaId
- Last replica which the Primary haspublic ResponseHotJoinInfo(Request request, java.net.InetSocketAddress primary, java.util.LinkedList replicas)
request
- The response will be created for this request (it will
inherit the id). If request is null the id will be zero.primary
- Socket address of the Primaryreplicas
- LinkedList of replicas for the backupMethod Detail |
public void setLastReplicaId(Id lastReplicaId)
lastReplicaId
- New value of property lastReplicaId.public Id getLastReplicaId()
public void setPrimary(java.net.InetSocketAddress primary)
primary
- New value of property primary.public java.net.InetSocketAddress getPrimary()
public void setReplicas(java.util.LinkedList replicas)
replicas
- New value of property replicas.public java.util.LinkedList getReplicas()
public void setState(byte state)
state
- New value of property state.public byte getState()
public java.lang.String toString()
toString
in class Packet
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |