All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.habanero.granted.ActionGranted
java.lang.Object
|
+----java.util.EventObject
|
+----java.awt.AWTEvent
|
+----ncsa.habanero.ServerMessage
|
+----ncsa.habanero.granted.ActionGranted
- public class ActionGranted
- extends ServerMessage
- implements Describable
The ActionGranted is a wrapper class which is created by the Arbitrator
after it has determined that an Action is allowable. It is the class
which is actually routed to the other clients. It contains the Action
to be executed and the Ticket which determined when the Action can be
executed
-
action
-
-
ticket
-
-
ActionGranted(Action, Ticket, Specifiable)
- Create the ActionGranted.
-
ActionGranted(ActionRequest, Ticket, Specifiable)
- Create the ActionGranted.
-
describe()
-
-
dispatch()
- The Serializer calls this method to send the action to the target
-
getAction()
-
-
getTicket()
- Return the ticket object
-
inOrder()
-
-
inPast()
-
-
isSerialized()
- read the Ticket, then find the Arbitrator from
its Specifier.
-
messageToSend(RequestHandler, Session)
-
-
toString()
-
action
protected Action action
ticket
protected Ticket ticket
ActionGranted
protected ActionGranted(ActionRequest req,
Ticket tk,
Specifiable arb)
- Create the ActionGranted. Theoretically, only an Arbitrator can
do this.
- Parameters:
- req - The Action is extracted from this ActionRequest
ActionGranted
protected ActionGranted(Action ac,
Ticket tk,
Specifiable arb)
- Create the ActionGranted. Theoretically, only an Arbitrator can
do this. This constructor is used when a CentralArbitrator is
directly creating new Actions to be propagated and therefore there
is no request.
- Parameters:
- req - The Action is extracted from this ActionRequest
dispatch
public void dispatch()
- The Serializer calls this method to send the action to the target
- Overrides:
- dispatch in class ServerMessage
isSerialized
public boolean isSerialized()
- read the Ticket, then find the Arbitrator from
its Specifier.
- Overrides:
- isSerialized in class ServerMessage
getTicket
public Ticket getTicket()
- Return the ticket object
- Overrides:
- getTicket in class ServerMessage
getAction
public Action getAction()
- Returns:
- the action associated with this data
inOrder
public boolean inOrder()
- Returns:
- true if this action's time is now
inPast
public boolean inPast()
- Returns:
- true if the collobject has already processed this action
describe
public String describe()
- Returns:
- a string that describes this object
toString
public String toString()
- Returns:
- a string that represents the action granted
- Overrides:
- toString in class AWTEvent
messageToSend
public ServerMessage messageToSend(RequestHandler toWhere,
Session s)
All Packages Class Hierarchy This Package Previous Next Index