|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dist1.acb.CBL.CBL
CBL
Nested Class Summary | |
static class |
CBL.TransitiveStateException
Exection to indicate case when local server can not be retrieved after a timout |
Method Summary | |
static CBL |
getInstance()
Returns the only instance of the class |
static Primary |
getPrimaryServer()
Tries to retrieve local Primary server If current server is Backup calls to server.forceGetReplicas() |
java.lang.ThreadGroup |
getRootThreadGroup()
Returns thread group with all threads |
static Server |
getServer()
Tries to retrieve local server |
java.lang.String |
getServerName()
Retrns name of the server |
static void |
main(java.lang.String[] args)
Run the Application |
void |
pbBecomeHotPrimary(java.util.LinkedList replicasBackup)
Start the Primary using the Hot rotocol |
void |
rejoin(java.lang.String source,
java.lang.String reason)
Invoked by outside serveices in order to restart the application |
void |
shutdownApplicaton(java.lang.String source,
java.lang.String reason)
Invoked by outside serveices in order to shutdown the application |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static CBL getInstance()
public static Primary getPrimaryServer() throws CBL.TransitiveStateException
CBL.TransitiveStateException
- if we reached timeoutpublic java.lang.ThreadGroup getRootThreadGroup()
public static Server getServer() throws CBL.TransitiveStateException
CBL.TransitiveStateException
- if we reached timeoutpublic static void main(java.lang.String[] args)
args
- Command line argumentspublic java.lang.String getServerName()
public void pbBecomeHotPrimary(java.util.LinkedList replicasBackup) throws java.lang.Exception
replicasBackup
- List with replicas
CBL.TransitiveStateException
- if something wrong
java.lang.Exception
public void rejoin(java.lang.String source, java.lang.String reason)
source
- Initiator of shutdowningreason
- A reasonpublic void shutdownApplicaton(java.lang.String source, java.lang.String reason)
source
- Initiator of shutdowningreason
- A reason
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |