ACP API

net.juniper.smgt.acp.application
Interface CongestionPointInfo


public interface CongestionPointInfo

An instance of this interface is passed to the init() method of every ActionCongestionPoint implementation. It provides access to information that may be needed by ActionCongestionPoints. (An ActionCongestionPoint can be thought of as an ACP plug-in that runs inside the ACP's Java Virtual Machine.)


Method Summary
 CongestionPointChecker getCongestionPointChecker()
          Returns an object that provides the means to obtain references to specific network congestion points known to the ACP.
 net.juniper.smgt.lib.logging.LogWriter getDebugLog()
          Returns a LogWriter object that can be used to print messages to the DEBUG log.
 net.juniper.smgt.lib.logging.LogWriter getErrorLog()
          Returns a LogWriter object that can be used to print messages to the ERROR log.
 java.lang.String getId()
          Returns the ID of the newly created ActionCongestionPoint.
 net.juniper.smgt.lib.logging.LogWriter getInfoLog()
          Returns a LogWriter object that can be used to print messages to the INFO log.
 net.juniper.smgt.gateway.gal.NIC getNICProxy(java.lang.String name)
          If the CLI was used to define one or more NIC proxies under the ACP configuration, then those NIC proxies may be obtained by passing their name to this method.
 org.omg.CORBA.ORB getOrb()
          Returns a reference to the ORB used by the ACP.
 

Method Detail

getCongestionPointChecker

CongestionPointChecker getCongestionPointChecker()
Returns an object that provides the means to obtain references to specific network congestion points known to the ACP.


getOrb

org.omg.CORBA.ORB getOrb()
Returns a reference to the ORB used by the ACP. Typically this would be used to obtain a CORBA reference to an SAE, or to other systems.


getNICProxy

net.juniper.smgt.gateway.gal.NIC getNICProxy(java.lang.String name)
If the CLI was used to define one or more NIC proxies under the ACP configuration, then those NIC proxies may be obtained by passing their name to this method.

Parameters:
name - The name of the NIC proxy. This is always the name specified on the CLI for when defining a new NIC proxy under an ACP configuration.

getId

java.lang.String getId()
Returns the ID of the newly created ActionCongestionPoint. This is the value returned by the congestion point expression that triggered the creation of the action congestion point. It is of the form "deviceName/interfaceName/instanceID".


getDebugLog

net.juniper.smgt.lib.logging.LogWriter getDebugLog()
Returns a LogWriter object that can be used to print messages to the DEBUG log. The LogWriter provides two methods: public void println(String message); public void println(String message, Throwable x); The latter of these two methods will print the Throwable's stacktrace, as well as the message.


getInfoLog

net.juniper.smgt.lib.logging.LogWriter getInfoLog()
Returns a LogWriter object that can be used to print messages to the INFO log. The LogWriter provides two methods: public void println(String message); public void println(String message, Throwable x); The latter of these two methods will print the Throwable's stacktrace, as well as the message.


getErrorLog

net.juniper.smgt.lib.logging.LogWriter getErrorLog()
Returns a LogWriter object that can be used to print messages to the ERROR log. The LogWriter provides two methods: public void println(String message); public void println(String message, Throwable x); The latter of these two methods will print the Throwable's stacktrace, as well as the message.


ACP API