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.
-
nCollobjectNumber
-
-
portNumber
-
-
SetPortAction()
- This should only be called if the next call will be a marshall()
-
SetPortAction(int, int)
-
-
act(Targetable)
- Since this particular action is supposed to act only at the server,
this method should not be called.
-
describe()
-
-
sendToEveryone()
- Write the Collobject name to the output.
nCollobjectNumber
protected int nCollobjectNumber
portNumber
protected int portNumber
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.
SetPortAction
public SetPortAction()
- This should only be called if the next call will be a marshall()
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
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();
}
describe
public String describe()
- Returns:
- a description of SetPortAction
- Overrides:
- describe in class HabaneroAction
All Packages Class Hierarchy This Package Previous Next Index