All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.SetPortAction

java.lang.Object
   |
   +----ncsa.habanero.HabaneroAction
           |
           +----ncsa.habanero.SetPortAction

public class SetPortAction
extends HabaneroAction
The SetPortAction is generated by a server to inform a replay session where the port is located.


Variable Index

 o nCollobjectNumber
 o portNumber

Constructor Index

 o SetPortAction()
This should only be called if the next call will be a marshall()
 o SetPortAction(int, int)

Method Index

 o act(Targetable)
Since this particular action is supposed to act only at the server, this method should not be called.
 o describe()
 o sendToEveryone()
Write the Collobject name to the output.

Variables

 o nCollobjectNumber
 protected int nCollobjectNumber
 o portNumber
 protected int portNumber

Constructors

 o SetPortAction
 public SetPortAction(int nCollobj,
                      int nPort)
Parameters:
arbitratorName - the name of the arbitrator
nIndex - the index of the collobject
add - whether this needs a specific stream
Returns:
Initialize the SetPortAction with the name of the Collobject it should initiate and the type of Arbitrator the Collobject should have.
 o SetPortAction
 public SetPortAction()
This should only be called if the next call will be a marshall()

Methods

 o act
 public void act(Targetable target)
Since this particular action is supposed to act only at the server, this method should not be called.

Overrides:
act in class HabaneroAction
 o sendToEveryone
 public boolean sendToEveryone()
Write the Collobject name to the output. //public void marshallSelf(MarshallOutput out) throws IOException { super.marshallSelf(out); out.writeInt(nCollobjectNumber); out.writeInt(portNumber); } /** Read the Collobject name from the input. //public void unmarshallSelf(MarshallInput in) throws IOException { super.unmarshallSelf(in); nCollobjectNumber = in.readInt(); portNumber = in.readInt(); }

 o describe
 public String describe()
Returns:
a description of SetPortAction
Overrides:
describe in class HabaneroAction

All Packages  Class Hierarchy  This Package  Previous  Next  Index