|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.execution.engine.ExecutionHandle
public class ExecutionHandle
The Class ExecutionHandle.
| Nested Class Summary | |
|---|---|
static class |
ExecutionHandle.HandleState
The state of the plan |
| Constructor Summary | |
|---|---|
ExecutionHandle(ExecutionPlan Plan,
String hostingNodeInfo)
Instantiates a new execution handle. |
|
| Method Summary | |
|---|---|
void |
AddContextHandler(NozzleHandler Handler)
Adds the context handler. |
void |
Cancel()
Cancel. |
void |
CleanUpStorageSystem()
|
void |
DecreaseActionsRunning()
Decrease actions running. |
void |
Dispose()
Dispose this instance, unregisters from registered events, and disposes the context nozzles that were requested to be kept alive until the execution of the handle was completed. |
void |
EmitEvent(ExecutionStateEvent Event)
Emit event. |
void |
FinalizeIsolation()
Finalize isolation. |
void |
ForceRecheckOfPendingActions()
Force re-check of pending actions. |
int |
GetActionsRunning()
Gets the number of actions running. |
ExecutionException |
GetCompletionError()
Gets the completion error. |
ExecutionStateEvent |
GetEvent(ExecutionStateEvent.EventName Event)
Gets the event. |
Collection<ExecutionStateEvent> |
GetEvents()
Gets the events. |
ExecutionHandle.HandleState |
GetHandleState()
Gets the handle state. |
String |
getHostingNodeInfo()
|
File |
GetIsolatedFile(File original)
Gets the isolated file. |
BoundaryIsolationInfo |
GetIsolationInfo()
Gets the isolation info. |
ExecutionPlan |
GetPlan()
Gets the plan. |
Object |
GetSynchActionsRunning()
Gets the synch actions running synchronization object |
void |
IncreaseActionsRunning()
Increase actions running. |
void |
InitializeIsolation()
Initialize isolation. |
boolean |
IsCompleted()
Checks if is completed. |
boolean |
IsCompletedWithError()
Checks if is completed with error. |
boolean |
IsCompletedWithSuccess()
Checks if is completed with success. |
boolean |
IsIsolationRequested()
Checks if is isolation requested. |
void |
Pause()
Pause. |
protected void |
PlanCompleted()
Plan completed. |
protected void |
PlanRunning()
Plan running. |
void |
RegisterObserver(Observer HandleObserver)
Register observer for the events the handle emits |
void |
Resume()
Resume. |
protected void |
SetCompletionError(ExecutionException CompletionError)
Sets the completion error. |
protected void |
SetIsCompleted(boolean IsCompleted)
Sets the is completed. |
protected void |
SetIsCompletedWithError(boolean IsCompletedWithError)
Sets the is completed with error. |
protected void |
SetIsCompletedWithSuccess(boolean IsCompletedWithSuccess)
Sets the is completed with success. |
void |
SetIsolationInfo(BoundaryIsolationInfo IsolationInfo)
Sets the isolation info. |
void |
update(Observable o,
Object arg)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutionHandle(ExecutionPlan Plan,
String hostingNodeInfo)
Plan - the plan| Method Detail |
|---|
public String getHostingNodeInfo()
public void IncreaseActionsRunning()
public void DecreaseActionsRunning()
public void ForceRecheckOfPendingActions()
public Object GetSynchActionsRunning()
public int GetActionsRunning()
public boolean IsCompleted()
public void AddContextHandler(NozzleHandler Handler)
Handler - the handlerpublic File GetIsolatedFile(File original)
original - the original
public boolean IsIsolationRequested()
public void SetIsolationInfo(BoundaryIsolationInfo IsolationInfo)
IsolationInfo - the isolation infopublic BoundaryIsolationInfo GetIsolationInfo()
public void InitializeIsolation()
throws ExecutionValidationException,
ExecutionRunTimeException
ExecutionValidationException - A validation error occurred
ExecutionRunTimeException - A runtime error occurred
public void FinalizeIsolation()
throws ExecutionValidationException,
ExecutionRunTimeException
ExecutionValidationException - An execution validation error occurred
ExecutionRunTimeException - An runtime error occurredprotected void SetIsCompleted(boolean IsCompleted)
IsCompleted - the is completedpublic boolean IsCompletedWithSuccess()
protected void SetIsCompletedWithSuccess(boolean IsCompletedWithSuccess)
IsCompletedWithSuccess - the is completed with successpublic boolean IsCompletedWithError()
protected void SetIsCompletedWithError(boolean IsCompletedWithError)
IsCompletedWithError - the is completed with errorpublic ExecutionException GetCompletionError()
protected void SetCompletionError(ExecutionException CompletionError)
CompletionError - the completion errorpublic void RegisterObserver(Observer HandleObserver)
HandleObserver - the handle observerpublic void EmitEvent(ExecutionStateEvent Event)
Event - the eventpublic ExecutionStateEvent GetEvent(ExecutionStateEvent.EventName Event)
Event - the event
public Collection<ExecutionStateEvent> GetEvents()
public ExecutionPlan GetPlan()
public ExecutionHandle.HandleState GetHandleState()
protected void PlanRunning()
protected void PlanCompleted()
public void Pause()
public void Resume()
public void Cancel()
public void update(Observable o,
Object arg)
update in interface Observerpublic void Dispose()
public void CleanUpStorageSystem()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||