it.eng.spagobi.analiticalmodel.document.handlers
Class ExecutionManager

java.lang.Object
  extended by it.eng.spagobi.analiticalmodel.document.handlers.ExecutionManager

public class ExecutionManager
extends java.lang.Object


Constructor Summary
ExecutionManager()
          Instantiates a new execution manager.
 
Method Summary
 java.util.List getBIObjectsExecutionFlow(java.lang.String flowId)
          Gets the bI objects execution flow.
 ExecutionInstance getExecution(java.lang.String executionId)
          Gets the execution.
 java.lang.String getLastExecutionId(java.lang.String flowId)
          Gets the last execution id.
 ExecutionInstance getLastExecutionInstance(java.lang.String flowId)
          Gets the last execution instance.
 BIObject getLastExecutionObject(java.lang.String flowId)
          Gets the last execution object.
 boolean isBeingReexecuteing(java.lang.String flowId, BIObject obj)
          Checks if is being reexecuteing.
 ExecutionInstance recoverExecution(java.lang.String flowId, java.lang.String executionId)
          Recover execution.
 void registerExecution(ExecutionInstance instance)
          Registers execution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionManager

public ExecutionManager()
Instantiates a new execution manager.

Method Detail

registerExecution

public void registerExecution(ExecutionInstance instance)
Registers execution

Parameters:
instance - The ExecutionInstance to be registered

getExecution

public ExecutionInstance getExecution(java.lang.String executionId)
Gets the execution.

Parameters:
executionId - the execution id
Returns:
the execution

recoverExecution

public ExecutionInstance recoverExecution(java.lang.String flowId,
                                          java.lang.String executionId)
Recover execution.

Parameters:
flowId - the flow id
executionId - the execution id
Returns:
the execution instance

isBeingReexecuteing

public boolean isBeingReexecuteing(java.lang.String flowId,
                                   BIObject obj)
Checks if is being reexecuteing.

Parameters:
flowId - the flow id
obj - the obj
Returns:
true, if is being reexecuteing

getLastExecutionObject

public BIObject getLastExecutionObject(java.lang.String flowId)
Gets the last execution object.

Parameters:
flowId - the flow id
Returns:
the last execution object

getLastExecutionId

public java.lang.String getLastExecutionId(java.lang.String flowId)
Gets the last execution id.

Parameters:
flowId - the flow id
Returns:
the last execution id

getLastExecutionInstance

public ExecutionInstance getLastExecutionInstance(java.lang.String flowId)
Gets the last execution instance.

Parameters:
flowId - the flow id
Returns:
the last execution instance

getBIObjectsExecutionFlow

public java.util.List getBIObjectsExecutionFlow(java.lang.String flowId)
Gets the bI objects execution flow.

Parameters:
flowId - the flow id
Returns:
the bI objects execution flow