gr.uoa.di.madgik.execution.event
Class ExecutionPerformanceReportStateEvent

java.lang.Object
  extended by java.util.Observable
      extended by gr.uoa.di.madgik.execution.event.ExecutionStateEvent
          extended by gr.uoa.di.madgik.execution.event.ExecutionPerformanceReportStateEvent

public class ExecutionPerformanceReportStateEvent
extends ExecutionStateEvent

Event signaling some performance related measurements after the completion of some plan element.

Author:
gpapanikos

Nested Class Summary
 
Nested classes/interfaces inherited from class gr.uoa.di.madgik.execution.event.ExecutionStateEvent
ExecutionStateEvent.EventName
 
Constructor Summary
ExecutionPerformanceReportStateEvent()
          Instantiates a new execution performance report state event.
ExecutionPerformanceReportStateEvent(String ID)
          Instantiates a new execution performance report state event.
ExecutionPerformanceReportStateEvent(String ID, long TotalTime, long InitializationTime, long FinilizationTime, long ChildrenTotalTime, int SubCalls, long CallTotalTime)
          Instantiates a new execution performance report state event.
 
Method Summary
 void Decode(byte[] buf)
          Decode.
 byte[] Encode()
          Encode.
 long GetChildrenTotalTime()
          Gets the children total time.
 long GetEmitTimestamp()
          Gets the timestamp the event was emitted.
 ExecutionStateEvent.EventName GetEventName()
          Gets the event name.
 long GetFinilizationTime()
          Gets the finalization time.
 String GetID()
          Gets the id.
 long GetInitializationTime()
          Gets the initialization time.
 int GetSubCalls()
          Gets the sub calls.
 long GetSubCallTotalTime()
          Gets the sub call total time.
 long GetTotalTime()
          Gets the total time.
 void SetChildrenTotalTime(long ChildrenTotalTime)
          Sets the children total time.
 void SetFinilizationTime(long FinilizationTime)
          Sets the finalization time.
 void SetInitializationTime(long InitializationTime)
          Sets the initialization time.
 void SetSubCalls(int SubCalls)
          Sets the sub calls.
 void SetSubCallTotalTime(long CallTotalTime)
          Sets the sub call total time.
 void SetTotalTime(long TotalTime)
          Sets the total time.
 
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

ExecutionPerformanceReportStateEvent

public ExecutionPerformanceReportStateEvent()
Instantiates a new execution performance report state event.


ExecutionPerformanceReportStateEvent

public ExecutionPerformanceReportStateEvent(String ID)
Instantiates a new execution performance report state event.

Parameters:
ID - the iD of the3 plan element reporting its performance indicators

ExecutionPerformanceReportStateEvent

public ExecutionPerformanceReportStateEvent(String ID,
                                            long TotalTime,
                                            long InitializationTime,
                                            long FinilizationTime,
                                            long ChildrenTotalTime,
                                            int SubCalls,
                                            long CallTotalTime)
Instantiates a new execution performance report state event.

Parameters:
ID - the iD of the3 plan element reporting its performance indicators
TotalTime - the total time
InitializationTime - the initialization time
FinilizationTime - the finalization time
ChildrenTotalTime - the children total time
SubCalls - the number of sub calls
CallTotalTime - the total time of the sub calls
Method Detail

GetID

public String GetID()
Gets the id.

Returns:
the string

GetTotalTime

public long GetTotalTime()
Gets the total time.

Returns:
the long

SetTotalTime

public void SetTotalTime(long TotalTime)
Sets the total time.

Parameters:
TotalTime - the total time

GetInitializationTime

public long GetInitializationTime()
Gets the initialization time.

Returns:
the long

SetInitializationTime

public void SetInitializationTime(long InitializationTime)
Sets the initialization time.

Parameters:
InitializationTime - the initialization time

GetFinilizationTime

public long GetFinilizationTime()
Gets the finalization time.

Returns:
the long

SetFinilizationTime

public void SetFinilizationTime(long FinilizationTime)
Sets the finalization time.

Parameters:
FinilizationTime - the finalization time

GetChildrenTotalTime

public long GetChildrenTotalTime()
Gets the children total time.

Returns:
the long

SetChildrenTotalTime

public void SetChildrenTotalTime(long ChildrenTotalTime)
Sets the children total time.

Parameters:
ChildrenTotalTime - the children total time

GetSubCallTotalTime

public long GetSubCallTotalTime()
Gets the sub call total time.

Returns:
the long

SetSubCallTotalTime

public void SetSubCallTotalTime(long CallTotalTime)
Sets the sub call total time.

Parameters:
CallTotalTime - the call total time

GetSubCalls

public int GetSubCalls()
Gets the sub calls.

Returns:
the int

SetSubCalls

public void SetSubCalls(int SubCalls)
Sets the sub calls.

Parameters:
SubCalls - the sub calls

GetEventName

public ExecutionStateEvent.EventName GetEventName()
Description copied from class: ExecutionStateEvent
Gets the event name.

Specified by:
GetEventName in class ExecutionStateEvent
Returns:
the event name

GetEmitTimestamp

public long GetEmitTimestamp()
Description copied from class: ExecutionStateEvent
Gets the timestamp the event was emitted.

Specified by:
GetEmitTimestamp in class ExecutionStateEvent
Returns:
the long

Decode

public void Decode(byte[] buf)
            throws ExecutionSerializationException
Description copied from class: ExecutionStateEvent
Decode.

Specified by:
Decode in class ExecutionStateEvent
Parameters:
buf - the byte array containing the encoded event as serialized by ExecutionStateEvent.Encode()
Throws:
ExecutionSerializationException - A serialization error occurred

Encode

public byte[] Encode()
              throws ExecutionSerializationException
Description copied from class: ExecutionStateEvent
Encode.

Specified by:
Encode in class ExecutionStateEvent
Returns:
the byte array containing the encoded event
Throws:
ExecutionSerializationException - A serialization error occurred


Copyright © 2012. All Rights Reserved.