Package bftsmart.reconfiguration
Class ServerViewController
- java.lang.Object
-
- bftsmart.reconfiguration.ViewController
-
- bftsmart.reconfiguration.ServerViewController
-
public class ServerViewController extends ViewController
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADD_SERVER
static int
CHANGE_F
static int
REMOVE_SERVER
-
Fields inherited from class bftsmart.reconfiguration.ViewController
currentView, lastView
-
-
Constructor Summary
Constructors Constructor Description ServerViewController(int procId, KeyLoader loader)
ServerViewController(int procId, java.lang.String configHome, KeyLoader loader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TOMMessage[]
clearUpdates()
void
enqueueUpdate(TOMMessage up)
byte[]
executeUpdates(int cid)
int[]
getCurrentViewAcceptors()
int[]
getCurrentViewOtherAcceptors()
int
getQuorum()
int[]
getReplicasWithout(int[] replicas, int without)
TOMLayer
getTOMLayer()
boolean
hasUpdates()
boolean
isInCurrentView()
boolean
isInLastJoinSet(int id)
void
processJoinResult(ReconfigureReply r)
void
reconfigureTo(View newView)
void
setTomLayer(TOMLayer tomLayer)
-
Methods inherited from class bftsmart.reconfiguration.ViewController
getCurrentView, getCurrentViewF, getCurrentViewId, getCurrentViewN, getCurrentViewPos, getCurrentViewProcesses, getLastView, getRemoteAddress, getStaticConf, getViewStore, isCurrentViewMember
-
-
-
-
Field Detail
-
ADD_SERVER
public static final int ADD_SERVER
- See Also:
- Constant Field Values
-
REMOVE_SERVER
public static final int REMOVE_SERVER
- See Also:
- Constant Field Values
-
CHANGE_F
public static final int CHANGE_F
- See Also:
- Constant Field Values
-
-
Method Detail
-
setTomLayer
public void setTomLayer(TOMLayer tomLayer)
-
isInCurrentView
public boolean isInCurrentView()
-
getCurrentViewOtherAcceptors
public int[] getCurrentViewOtherAcceptors()
-
getReplicasWithout
public int[] getReplicasWithout(int[] replicas, int without)
-
getCurrentViewAcceptors
public int[] getCurrentViewAcceptors()
-
hasUpdates
public boolean hasUpdates()
-
enqueueUpdate
public void enqueueUpdate(TOMMessage up)
-
executeUpdates
public byte[] executeUpdates(int cid)
-
clearUpdates
public TOMMessage[] clearUpdates()
-
isInLastJoinSet
public boolean isInLastJoinSet(int id)
-
processJoinResult
public void processJoinResult(ReconfigureReply r)
-
reconfigureTo
public final void reconfigureTo(View newView)
- Overrides:
reconfigureTo
in classViewController
-
getQuorum
public int getQuorum()
-
getTOMLayer
public TOMLayer getTOMLayer()
-
-