Core API 7.13

net.juniper.smgt.sae.scriptservice
Class EventPublisher

java.lang.Object
  extended by net.juniper.smgt.sae.scriptservice.EventPublisher

public class EventPublisher
extends java.lang.Object

EventPublisher.java This class will be used by scripting service for service tracking event to register/unregister external plug-in and can publish the tracking-start, tracking-stop and tracking-interim events. Publishing events uses ScriptServiceTrackingPluginEvent. This class was introduced in SRC 4.4. Created: Wed Nov 02 16:00:53 2012

Version:

Constructor Summary
EventPublisher()
          constructor used by the script service to instantiate.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventPublisher

public EventPublisher()
constructor used by the script service to instantiate.

Method Detail

register

public void register(java.lang.String pluginName)
              throws ScriptServiceException
External plug-in will be configured through CLI, but not registered with in CLI. This method is used to register the plug-in with the service tracking event publisher using script service when required.

Parameters:
pluginName - - plug-in name to register in order to publish events
Throws:
ScriptServiceException

unregister

public void unregister(java.lang.String pluginName)
                throws ScriptServiceException
This method is used to unregister the plug-in with the service tracking event publisher using script Service when required.

Parameters:
pluginName- - plugin name to un-register
Throws:
ScriptServiceException

publishTrackingEvent

public void publishTrackingEvent(int eventType,
                                 ScriptServiceTrackingPluginEvent serviceTrackingPluginEvent)
                          throws ScriptServiceException
This method is used to publish the events to the service tracking event based on the event type when required.

Parameters:
serviceTrackingPluginEvent- - event to be published
eventType: - 0- Start event, 1- Stop event, 2- Interim event
Throws:
ScriptServiceException

Core API 7.13