public class EventLoggerFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
EventEngine |
createEngine()
Create the engine, using the
getEngineURL() URL. |
java.net.URL |
getEngineURL()
Return the URL of the engine.
|
static EventLoggerFactory |
getInstance() |
static boolean |
hasFactory()
Return true if the factory is not null.
|
static void |
invoke(NamespaceKey service,
int id,
ModuleKey fromModule)
Called when one invocation event must be recorded.
|
static boolean |
isActive()
Return true if the factory is not null and its engine is active.
|
boolean |
isAutoStart()
Return true if the engine must be autostarted.
|
static void |
notified(NamespaceKey service,
int id,
ModuleKey fromModule,
ModuleKey toModule)
Called when one notification event must be recorded.
|
void |
setAutoStart(boolean autoStart)
Called if the engine must be autostarted at the start of the framework.
|
void |
setEngineURL(java.net.URL url)
Set the URL of the engine.
|
void |
setEventsURL(java.net.URL url)
Set the events URL.
|
void |
setFramework(Framework framework)
Set the framework.
|
static void |
setStartTimeStamp(long startTimeStamp)
Called when the engine must be started.
|
static void |
start()
Called when the engine must be started.
|
static void |
stop()
Called when the engine must be stopped.
|
public static EventLoggerFactory getInstance()
public static boolean hasFactory()
public static boolean isActive()
public static void setStartTimeStamp(long startTimeStamp)
startTimeStamp
- the starting time stamppublic void setAutoStart(boolean autoStart)
autoStart
- true if the engine must be autostarted at the start of the frameworkpublic boolean isAutoStart()
public static void start()
public static void stop()
public static void invoke(NamespaceKey service, int id, ModuleKey fromModule)
service
- the service keyid
- the event idfromModule
- the key of the module which invokes the eventpublic static void 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 eventpublic void setFramework(Framework framework)
framework
- the frameworkpublic void setEventsURL(java.net.URL url)
url
- the URLpublic void setEngineURL(java.net.URL url)
EventEngine
interface.url
- the URLpublic java.net.URL getEngineURL()
public EventEngine createEngine()
getEngineURL()
URL.Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence