|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
gr.uoa.di.madgik.execution.event.ExecutionStateEvent
gr.uoa.di.madgik.execution.event.ExecutionProgressReportStateEvent
public class ExecutionProgressReportStateEvent
Event signaling the progress of the execution of a plan element. This event can either just contain a message that is emitted back to the client or it can also report a progress indication.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class gr.uoa.di.madgik.execution.event.ExecutionStateEvent |
|---|
ExecutionStateEvent.EventName |
| Constructor Summary | |
|---|---|
ExecutionProgressReportStateEvent()
Instantiates a new execution progress report state event. |
|
ExecutionProgressReportStateEvent(String ID,
int CurrentStep,
int TotalSteps)
Instantiates a new execution progress report state event. |
|
ExecutionProgressReportStateEvent(String ID,
int CurrentStep,
int TotalSteps,
String Message)
Instantiates a new execution progress report state event. |
|
ExecutionProgressReportStateEvent(String ID,
int SuccessfulNodes,
int TotalNodes,
String Message,
boolean ReportsNodeStatus)
Instantiates a new execution progress report state event. |
|
ExecutionProgressReportStateEvent(String ID,
int CurrentStep,
int TotalSteps,
String Message,
String NodeName,
String NodeHostName,
int NodePort)
Instantiates a new execution progress report state event. |
|
ExecutionProgressReportStateEvent(String ID,
String Message)
Instantiates a new execution progress report state event. |
|
| Method Summary | |
|---|---|
void |
Decode(byte[] buf)
Decode. |
boolean |
DoesReportNodeProgress()
Does report node progress. |
boolean |
DoesReportNodeStatus()
Does report node status. |
boolean |
DoesReportProgress()
Does report progress. |
void |
DoesReportProgress(boolean ReportsProgress)
Does report progress. |
byte[] |
Encode()
Encode. |
int |
GetCurrentStep()
Gets the current step. |
long |
GetEmitTimestamp()
Gets the timestamp the event was emitted. |
ExecutionStateEvent.EventName |
GetEventName()
Gets the event name. |
String |
GetID()
Gets the id. |
String |
GetMessage()
Gets the message. |
String |
GetNodeHostName()
Gets the node host name. |
String |
GetNodeName()
Gets the node name. |
int |
GetNodePort()
Gets the node port. |
int |
GetTotalSteps()
Gets the total steps. |
void |
SetCurrentStep(int CurrentStep)
Sets the current step. |
void |
SetMessage(String Message)
Sets the message. |
void |
SetTotalSteps(int TotalSteps)
Sets the total steps. |
| Methods inherited from class gr.uoa.di.madgik.execution.event.ExecutionStateEvent |
|---|
SetChanged |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutionProgressReportStateEvent()
public ExecutionProgressReportStateEvent(String ID,
String Message)
ID - the iD of the plan element emitting the eventMessage - the message
public ExecutionProgressReportStateEvent(String ID,
int CurrentStep,
int TotalSteps)
ID - the iD of the plan element emitting the eventCurrentStep - the current step the current step of the executionTotalSteps - the total steps the total steps of the execution
public ExecutionProgressReportStateEvent(String ID,
int CurrentStep,
int TotalSteps,
String Message)
ID - the iD of the plan element emitting the eventCurrentStep - the current step the current step of the executionTotalSteps - the total steps the total steps of the executionMessage - the message
public ExecutionProgressReportStateEvent(String ID,
int SuccessfulNodes,
int TotalNodes,
String Message,
boolean ReportsNodeStatus)
ID - the iD of the plan element emitting the eventSuccessfulNodes - the number of nodes which completed execution successfullyTotalNodes - the total number of nodes in the executionReportsNodeStatus - should be true to enable node status retrievalMessage - the message
public ExecutionProgressReportStateEvent(String ID,
int CurrentStep,
int TotalSteps,
String Message,
String NodeName,
String NodeHostName,
int NodePort)
ID - the iD of the plan element emitting the eventCurrentStep - the current step the current step of the executionTotalSteps - the total steps the total steps of the executionNodeName - NodeHostName - NodePort - Message - the message| Method Detail |
|---|
public String GetID()
public boolean DoesReportProgress()
public boolean DoesReportNodeProgress()
public boolean DoesReportNodeStatus()
public void DoesReportProgress(boolean ReportsProgress)
ReportsProgress - the reports progresspublic int GetCurrentStep()
public void SetCurrentStep(int CurrentStep)
CurrentStep - the current steppublic int GetTotalSteps()
public void SetTotalSteps(int TotalSteps)
TotalSteps - the total stepspublic String GetMessage()
public String GetNodeName()
public String GetNodeHostName()
public int GetNodePort()
public void SetMessage(String Message)
Message - the messagepublic ExecutionStateEvent.EventName GetEventName()
ExecutionStateEvent
GetEventName in class ExecutionStateEventpublic long GetEmitTimestamp()
ExecutionStateEvent
GetEmitTimestamp in class ExecutionStateEvent
public void Decode(byte[] buf)
throws ExecutionSerializationException
ExecutionStateEvent
Decode in class ExecutionStateEventbuf - the byte array containing the encoded event as serialized by ExecutionStateEvent.Encode()
ExecutionSerializationException - A serialization error occurred
public byte[] Encode()
throws ExecutionSerializationException
ExecutionStateEvent
Encode in class ExecutionStateEventExecutionSerializationException - A serialization error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||