All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.replay.ArbitratorState

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----java.awt.AWTEvent
                   |
                   +----ncsa.habanero.ServerMessage
                           |
                           +----ncsa.habanero.replay.ArbitratorState

public class ArbitratorState
extends ServerMessage
implements Answerable
CaptureAnnounce.java Announces to everyone that someone is capturing the session


Variable Index

 o session
 o streamVector

Constructor Index

 o ArbitratorState(Arbitrator, String)

Method Index

 o answer()
 o describe()
 o dispatch()
 o expectAnswer()
 o getByteArray(int)
 o getIndexOfFile(String, int)
 o targetSharable()

Variables

 o streamVector
 protected Vector streamVector
 o session
 protected Session session

Constructors

 o ArbitratorState
 public ArbitratorState(Arbitrator arb,
                        String strTag)
Parameters:
arb - the arbitrator that has access to the desired information
strTag - the tag for the factory
Returns:
creates a capture announce message

Methods

 o dispatch
 public void dispatch()
Returns:
prints a message to std out about the information
Overrides:
dispatch in class ServerMessage
 o describe
 public String describe()
Returns:
a string that describes this object
 o getIndexOfFile
 protected int getIndexOfFile(String strName,
                              int nStartAt)
Parameters:
strName - the name of the string we want
nStartAt - the index to start searching at
Returns:
the index of the file
 o getByteArray
 protected byte[] getByteArray(int nIndex)
Parameters:
nIndex - the index to start searching at
Returns:
a byte array that is named appropriately
 o targetSharable
 public Sharable targetSharable()
Returns:
the session which we are headed for
 o answer
 public ServerMessage answer()
Returns:
do something when you arrive at the server
 o expectAnswer
 public boolean expectAnswer()
Returns:
false since we never send anything back

All Packages  Class Hierarchy  This Package  Previous  Next  Index