| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdist1.acb.CBL.Replica
Replica
| Constructor Summary | |
| Replica(java.lang.String login,
        RequestUpdate request)Creates a new instance of Replica | |
| Method Summary | |
| static void | applyReplicas(Replica[] replicas,
              UpdatesExecutor executor)Applies replicas for current server using provided executor | 
|  boolean | equals(java.lang.Object obj)Indicates whether some other object is "equal to" this one. | 
|  Id | getId()Getter for property id. | 
|  java.lang.String | getLogin()Getter for property login. | 
| static java.util.LinkedList | getMissingReplicas(java.util.List replicas,
                   Id lastReplicaId)Returns missing list from replicas | 
| static Id | getNextId()Getter for property nextId. | 
|  RequestUpdate | getRequest()Getter for property request. | 
| static boolean | isBContinueOfA(java.util.LinkedList a,
               java.util.LinkedList b)Checks if list of replicas B is continue of list A | 
| static void | resetId()Reset counter of IDs to start point | 
|  void | setLogin(java.lang.String login)Setter for property login. | 
|  void | setRequest(RequestUpdate request)Setter for property request. | 
|  java.lang.String | toString()Returns string description of the object | 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public Replica(java.lang.String login,
               RequestUpdate request)
login - Login of the user which initiate the updaterequest - Request for update| Method Detail | 
public boolean equals(java.lang.Object obj)
obj - the reference object with which to compare
public static boolean isBContinueOfA(java.util.LinkedList a,
                                     java.util.LinkedList b)
a - List Ab - List B
public static java.util.LinkedList getMissingReplicas(java.util.List replicas,
                                                      Id lastReplicaId)
replicas - "Full list"lastReplicaId - last present replica
java.util.NoSuchElementException - if the replicas which is needed was not
         foundpublic static void resetId()
public void setLogin(java.lang.String login)
login - New value of property login.public java.lang.String getLogin()
public static Id getNextId()
public Id getId()
public void setRequest(RequestUpdate request)
request - New value of property request.public RequestUpdate getRequest()
public static void applyReplicas(Replica[] replicas,
                                 UpdatesExecutor executor)
                          throws java.lang.Exception
replicas - An arrany of replicas to executeexecutor - Real executor of replicas
java.lang.Exception - if an error has occured during applying the replicaspublic java.lang.String toString()
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||