|
||||||||||
| 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
public abstract class ExecutionStateEvent
Base class for every object that can be used to be registered by an Observer or send as Event. Event handling must follow well known guidelines. The most important of all as it could have a dramatic effect on the framework usage is the processing of a caught event. When an event is caught the processing to be performed should be kept minimal.
| Nested Class Summary | |
|---|---|
static class |
ExecutionStateEvent.EventName
The typed name of event |
| Constructor Summary | |
|---|---|
ExecutionStateEvent()
|
|
| Method Summary | |
|---|---|
abstract void |
Decode(byte[] buf)
Decode. |
abstract byte[] |
Encode()
Encode. |
abstract long |
GetEmitTimestamp()
Gets the timestamp the event was emitted. |
abstract ExecutionStateEvent.EventName |
GetEventName()
Gets the event name. |
void |
SetChanged()
Sets that the event is carrying updated information. |
| 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 ExecutionStateEvent()
| Method Detail |
|---|
public void SetChanged()
public abstract ExecutionStateEvent.EventName GetEventName()
public abstract long GetEmitTimestamp()
public abstract byte[] Encode()
throws ExecutionSerializationException
ExecutionSerializationException - A serialization error occurred
public abstract void Decode(byte[] buf)
throws ExecutionSerializationException
buf - the byte array containing the encoded event as serialized by Encode()
ExecutionSerializationException - A serialization error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||