public interface EventEngine
Modifier and Type | Method and Description |
---|---|
void |
end()
Called at the end of the recording.
|
void |
init(Framework framework,
java.net.URL eventsURL)
Initialize the engine.
|
void |
invoke(NamespaceKey service,
int id,
ModuleKey fromModule)
Called when one invocation event must be recorded.
|
boolean |
isActive()
Return true if the engine is active.
|
void |
notified(NamespaceKey service,
int id,
ModuleKey fromModule,
ModuleKey toModule)
Called when one notification event must be recorded.
|
default void |
receivedFromNetwork(NamespaceKey service)
Called when one invocation event from the network must be recorded.
|
default void |
sendToNetwork(NamespaceKey service)
Called when one invocation event to the network must be recorded.
|
void |
setStartTimeStamp(long startTimeStamp)
Called when the engine must be started.
|
void |
start()
Called when the engine must be started.
|
void |
stop()
Called when the engine must be stopped.
|
void init(Framework framework, java.net.URL eventsURL)
framework
- the frameworkeventsURL
- the events URL to generatevoid setStartTimeStamp(long startTimeStamp)
startTimeStamp
- the starting time stampvoid start()
boolean isActive()
void invoke(NamespaceKey service, int id, ModuleKey fromModule)
service
- the service keyid
- the event idfromModule
- the key of the module which invokes the eventdefault void sendToNetwork(NamespaceKey service)
service
- the service keyvoid notified(NamespaceKey service, int id, ModuleKey fromModule, ModuleKey toModule)
service
- the service keyid
- the event idfromModule
- the key of the module which invokes the eventtoModule
- the key of the module which is notified from the eventdefault void receivedFromNetwork(NamespaceKey service)
service
- the service keyvoid stop()
void end()
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence