public class EventPublisher
extends java.lang.Object
Constructor and Description |
---|
EventPublisher()
constructor used by the script service to instantiate.
|
Modifier and Type | Method and Description |
---|---|
void |
publishTrackingEvent(int eventType,
ScriptServiceTrackingPluginEvent serviceTrackingPluginEvent)
This method is used to publish the events to the service tracking
event based on the event type when required.
|
void |
register(java.lang.String pluginName)
External plug-in will be configured through CLI, but not registered with in CLI.
|
void |
unregister(java.lang.String pluginName)
This method is used to unregister the plug-in with the service tracking
event publisher using script Service when required.
|
public EventPublisher()
public void register(java.lang.String pluginName) throws ScriptServiceException
pluginName
- - plug-in name to register in order to publish eventsScriptServiceException
public void unregister(java.lang.String pluginName) throws ScriptServiceException
pluginName-
- plugin name to un-registerScriptServiceException
public void publishTrackingEvent(int eventType, ScriptServiceTrackingPluginEvent serviceTrackingPluginEvent) throws ScriptServiceException
serviceTrackingPluginEvent-
- event to be publishedeventType:
- 0- Start event, 1- Stop event, 2- Interim eventScriptServiceException