All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.Ensemble.Hot_Ensemble

java.lang.Object
   |
   +----JavaGroups.Ensemble.Hot_Ensemble

public class Hot_Ensemble
extends Object
implements Runnable

Variable Index

 o HOT_ENS_MSG_SEND_CURRENT_VIEW
 o HOT_ENS_MSG_SEND_NEXT_VIEW
 o HOT_ENS_MSG_SEND_UNSPECIFIED_VIEW

Constructor Index

 o Hot_Ensemble()
Constructs a Hot_Ensemble object starting the Ensemble Outboard process on a random port between 5000 and 8000
 o Hot_Ensemble(int)
Constructs a Hot_Ensemble object starting the Ensemble Outboard process on the specified port.

Method Index

 o Cast(Hot_GroupContext, Hot_Message, int[])
Broadcast a Hot_Message to the group specified in the Hot_GroupContext
 o ChangeProperties(Hot_GroupContext, String)
Change the properties of the group specified by the Hot_GroupContext to the properties specified by the String
 o ChangeProtocol(Hot_GroupContext, String)
Change the protocol used by the group specified by the Hot_GroupContext to the protocol specified by the String
 o destroyOutboard()
Destroys the associated outboard process.
 o Join(Hot_JoinOps, Hot_GroupContext[])
Join the Ensemble group specified in the Hot_JoinOps structure
 o Leave(Hot_GroupContext)
Leave the Ensemble group specified in the Hot_GroupContext
 o Panic(String)
Halts the application with the error specified by the String
 o RequestNewView(Hot_GroupContext)
Request a new view in the group specified by the Hot_GroupContext
 o run()
Mainloop of the process
 o Send(Hot_GroupContext, Hot_Endpoint, Hot_Message, int[])
Send a Hot_Message to member specified by the Hot_Endpoint in the group specified by the Hot_GroupContext
 o setDebug(boolean)
Set whether or not to display lots of debug information.
 o Suspect(Hot_GroupContext, Hot_Endpoint[])
NOT SUPPORTED CURRENTLY IN THE ML
 o trace(String)
Prints (or does not print) the specified string to standard error based upon the debug flag

Variables

 o HOT_ENS_MSG_SEND_UNSPECIFIED_VIEW
 public final int HOT_ENS_MSG_SEND_UNSPECIFIED_VIEW
 o HOT_ENS_MSG_SEND_NEXT_VIEW
 public final int HOT_ENS_MSG_SEND_NEXT_VIEW
 o HOT_ENS_MSG_SEND_CURRENT_VIEW
 public final int HOT_ENS_MSG_SEND_CURRENT_VIEW

Constructors

 o Hot_Ensemble
 public Hot_Ensemble()
Constructs a Hot_Ensemble object starting the Ensemble Outboard process on a random port between 5000 and 8000

 o Hot_Ensemble
 public Hot_Ensemble(int port)
Constructs a Hot_Ensemble object starting the Ensemble Outboard process on the specified port. If you use this version of the constructor, you are expected to make sure the port is not already in use. You can check for successful startup by invoking isOutboardStarted();

Methods

 o destroyOutboard
 public void destroyOutboard()
Destroys the associated outboard process. All instances of Hot_Ensemble (in an instance of the VM) use the same outboard process (currently). So, if you destroy the outboard process for one instance, it gets destroyed for all instances. A future version of Ensemble/Java will change this restriction.

 o setDebug
 public void setDebug(boolean b)
Set whether or not to display lots of debug information. Default: false

 o Join
 public Hot_Error Join(Hot_JoinOps jops,
                       Hot_GroupContext gctx[])
Join the Ensemble group specified in the Hot_JoinOps structure

 o Leave
 public Hot_Error Leave(Hot_GroupContext gc)
Leave the Ensemble group specified in the Hot_GroupContext

 o Cast
 public Hot_Error Cast(Hot_GroupContext gc,
                       Hot_Message orig_msg,
                       int send_view[])
Broadcast a Hot_Message to the group specified in the Hot_GroupContext

 o Send
 public Hot_Error Send(Hot_GroupContext gc,
                       Hot_Endpoint dest,
                       Hot_Message orig_msg,
                       int send_view[])
Send a Hot_Message to member specified by the Hot_Endpoint in the group specified by the Hot_GroupContext

 o Suspect
 public Hot_Error Suspect(Hot_GroupContext gc,
                          Hot_Endpoint suspects[])
NOT SUPPORTED CURRENTLY IN THE ML

 o ChangeProtocol
 public Hot_Error ChangeProtocol(Hot_GroupContext gc,
                                 String protocol)
Change the protocol used by the group specified by the Hot_GroupContext to the protocol specified by the String

 o ChangeProperties
 public Hot_Error ChangeProperties(Hot_GroupContext gc,
                                   String properties)
Change the properties of the group specified by the Hot_GroupContext to the properties specified by the String

 o RequestNewView
 public Hot_Error RequestNewView(Hot_GroupContext gc)
Request a new view in the group specified by the Hot_GroupContext

 o run
 public void run()
Mainloop of the process

 o Panic
 public static void Panic(String s)
Halts the application with the error specified by the String

 o trace
 public static void trace(String s)
Prints (or does not print) the specified string to standard error based upon the debug flag


All Packages  Class Hierarchy  This Package  Previous  Next  Index