orca.drivers
Class ActionOverlapTool

java.lang.Object
  extended by orca.drivers.ActionOverlapTool
Direct Known Subclasses:
LocalDiskOverlapTool, MachineOverlapTool, VmmOverlapTool

public abstract class ActionOverlapTool
extends java.lang.Object


Nested Class Summary
protected  class ActionOverlapTool.ActionWrapper
           
protected  class ActionOverlapTool.ThreadLocalAction
           
 
Field Summary
protected  LoggingTool logger
           
protected  ActionOverlapTool.ThreadLocalAction myAction
          Action the current thread is executing.
protected  java.util.Hashtable<java.lang.String,Action> pending
          Map of currently executing actions for a VM to the thread processing them
 
Constructor Summary
ActionOverlapTool()
          Creates a new instance of the tool.
 
Method Summary
 void actionFinish(int code, java.util.Properties out)
           
 int actionStart(java.lang.String actionKey, java.lang.Integer actionId)
          Handles an incoming action.
abstract  int handleOverlapAction(java.lang.String actionKey, Action previous, Action current)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myAction

protected ActionOverlapTool.ThreadLocalAction myAction
Action the current thread is executing.


pending

protected java.util.Hashtable<java.lang.String,Action> pending
Map of currently executing actions for a VM to the thread processing them


logger

protected LoggingTool logger
Constructor Detail

ActionOverlapTool

public ActionOverlapTool()
Creates a new instance of the tool.

Method Detail

actionStart

public int actionStart(java.lang.String actionKey,
                       java.lang.Integer actionId)
Handles an incoming action.

Parameters:
actionKey - key representing the action
Returns:
0, if the action should proceed, negative number if the action cannot proceed. If the result is negative, actionStop does not have to be called.

actionFinish

public void actionFinish(int code,
                         java.util.Properties out)

handleOverlapAction

public abstract int handleOverlapAction(java.lang.String actionKey,
                                        Action previous,
                                        Action current)


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.