All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.habanero.granted.ActionRequest
java.lang.Object
|
+----ncsa.habanero.granted.ActionRequest
- public abstract class ActionRequest
- extends Object
- implements Answerable
The ActionRequest is the base class for a hierarchy of classes
which present a request to the Arbitrator to execute an Action.
The base class asserts that there is a target and an action,
but does not allocate storage for either. This allows for cases
in which the ActionRequest does not explicitly store a single action
or target, such as when there are a number of possible actions, or when
the action itself references the target.
-
ActionRequest()
- The constructor does nothing.
-
action()
- The single action decided upon.
-
answer()
-
-
arbitrate()
- Send this object to the arbitrator.
-
attemptToGrant()
-
-
blocks()
-
-
expectAnswer()
-
-
getKey()
-
-
requestGranted()
-
-
sendDirectly(Arbitrator)
-
-
target()
- The target of the requested action.
-
targetSharable()
- The target sharable of the requested action.
ActionRequest
protected ActionRequest()
- The constructor does nothing.
target
public abstract Specifiable target()
- The target of the requested action.
targetSharable
public Sharable targetSharable()
- The target sharable of the requested action. That is, either the
Session or Collobject which own the target.
action
public abstract Action action()
- The single action decided upon.
arbitrate
protected void arbitrate()
- Send this object to the arbitrator. This should be called in the
the constructor of a final subclass, and thus is declared protected.
getKey
public Key getKey()
requestGranted
public boolean requestGranted()
blocks
public boolean blocks()
sendDirectly
public abstract void sendDirectly(Arbitrator a)
attemptToGrant
public final synchronized boolean attemptToGrant()
answer
public ServerMessage answer()
expectAnswer
public boolean expectAnswer()
All Packages Class Hierarchy This Package Previous Next Index