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.


Constructor Index

 o ActionRequest()
The constructor does nothing.

Method Index

 o action()
The single action decided upon.
 o answer()
 o arbitrate()
Send this object to the arbitrator.
 o attemptToGrant()
 o blocks()
 o expectAnswer()
 o getKey()
 o requestGranted()
 o sendDirectly(Arbitrator)
 o target()
The target of the requested action.
 o targetSharable()
The target sharable of the requested action.

Constructors

 o ActionRequest
 protected ActionRequest()
The constructor does nothing.

Methods

 o target
 public abstract Specifiable target()
The target of the requested action.

 o targetSharable
 public Sharable targetSharable()
The target sharable of the requested action. That is, either the Session or Collobject which own the target.

 o action
 public abstract Action action()
The single action decided upon.

 o 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.

 o getKey
 public Key getKey()
 o requestGranted
 public boolean requestGranted()
 o blocks
 public boolean blocks()
 o sendDirectly
 public abstract void sendDirectly(Arbitrator a)
 o attemptToGrant
 public final synchronized boolean attemptToGrant()
 o answer
 public ServerMessage answer()
 o expectAnswer
 public boolean expectAnswer()

All Packages  Class Hierarchy  This Package  Previous  Next  Index