Class ASProxy

java.lang.Object
com.nt.common.util.ServerAPI
com.nt.udc.admin.server.AdminServerAPI
com.nt.udc.admin.server.ASProxy
All Implemented Interfaces:
AdminServerAPIInterface, TNCEventReceiverIfc, AcctEventListener, Serializable, Remote, EventListener

public class ASProxy extends AdminServerAPI
See Also:
  • Constructor Details

    • ASProxy

      public ASProxy(String inIPAddress, String inPort) throws com.nt.common.exceptions.APIException
      Throws:
      com.nt.common.exceptions.APIException
    • ASProxy

      public ASProxy(String inIPAddres, int inPort) throws com.nt.common.exceptions.APIException
      Throws:
      com.nt.common.exceptions.APIException
  • Method Details

    • getInstance

      public static com.nt.common.util.ServerAPI getInstance(String ip, String prt) throws com.nt.common.exceptions.APIException
      Throws:
      com.nt.common.exceptions.APIException
    • getInstance

      public static com.nt.common.util.ServerAPI getInstance(String ip, int port) throws com.nt.common.exceptions.APIException
      Throws:
      com.nt.common.exceptions.APIException
    • killInstance

      public static void killInstance(String ip, String prt)
    • getNMList

      public Vector getNMList() throws com.nt.common.exceptions.APIException
      Description copied from interface: AdminServerAPIInterface
      Returns a vector of NMItem objects which represents all node managers known to the Admin Server.
      Specified by:
      getNMList in interface AdminServerAPIInterface
      Overrides:
      getNMList in class AdminServerAPI
      Throws:
      com.nt.common.exceptions.APIException
    • getNodeList

      public Vector getNodeList()
      Description copied from interface: AdminServerAPIInterface
      Returns a vector of NodeInfo objects which represents all nodes known to the Admin Server.
      Specified by:
      getNodeList in interface AdminServerAPIInterface
      Overrides:
      getNodeList in class AdminServerAPI
    • getNodeList

      public Vector getNodeList(String inIPAddress, int inPort) throws com.nt.common.exceptions.APIException
      Description copied from interface: AdminServerAPIInterface
      Returns a vector of NodeInfo objects which represents all nodes controlled by the node manager at the specified IP Address/Port.
      Specified by:
      getNodeList in interface AdminServerAPIInterface
      Overrides:
      getNodeList in class AdminServerAPI
      Throws:
      com.nt.common.exceptions.APIException
    • getOutputNodes

      public Vector getOutputNodes(String inNodeId) throws com.nt.common.exceptions.APIException
      Description copied from interface: AdminServerAPIInterface
      Returns a vector of ChannelInfo objects which represents all nodes that receive output from the specified node.
      Specified by:
      getOutputNodes in interface AdminServerAPIInterface
      Overrides:
      getOutputNodes in class AdminServerAPI
      Throws:
      com.nt.common.exceptions.APIException
    • nodesAdded

      public void nodesAdded(com.nt.udc.admin.NMItem nmItem)
      Description copied from interface: AcctEventListener
      Indicates that a Node has been added to a particular Node Manager.
      Specified by:
      nodesAdded in interface AcctEventListener
      Overrides:
      nodesAdded in class AdminServerAPI
      Parameters:
      nmItem - NMItem object which represents the Node Manager managing the node that was added. The Vector associated with nodeManager will contain only the node that was added.
    • nodeChanged

      public void nodeChanged(com.nt.udc.admin.NMItem nmItem)
      Description copied from interface: AcctEventListener
      Indicates that the properties of a Node have changed.
      Specified by:
      nodeChanged in interface AcctEventListener
      Overrides:
      nodeChanged in class AdminServerAPI
      Parameters:
      nmItem - NMItem object which represents the Node Manager whose node changed. The Vector associated with nodeManager will contain the node that changed.
    • nodesRemoved

      public void nodesRemoved(com.nt.udc.admin.NMItem nmItem)
      Description copied from interface: AcctEventListener
      Indicates that a Node has been removed from a particular Node Manager.
      Specified by:
      nodesRemoved in interface AcctEventListener
      Overrides:
      nodesRemoved in class AdminServerAPI
      Parameters:
      nmItem - NMItem object which represents the Node Manager managing the node that was removed. The Vector associated with nodeManager will contain only the node(s) that was(were) removed.
    • nodeManagersAdded

      public void nodeManagersAdded(Vector nmList)
      Description copied from interface: AcctEventListener
      Indicates that one or more NodeManagers were added. The Vector associated with each NMItem object will represent all the nodes that are being managed by that Node Manager.
      Specified by:
      nodeManagersAdded in interface AcctEventListener
      Overrides:
      nodeManagersAdded in class AdminServerAPI
    • nodeManagerChanged

      public void nodeManagerChanged(com.nt.udc.admin.NMItem nmItem)
      Description copied from interface: AcctEventListener
      Indicates that the properties of a Node Manager have changed.
      Specified by:
      nodeManagerChanged in interface AcctEventListener
      Overrides:
      nodeManagerChanged in class AdminServerAPI
      Parameters:
      nmItem - NMItem object representing the Node Manager that changed.
    • nodeManagersRemoved

      public void nodeManagersRemoved(Vector nmList)
      Description copied from interface: AcctEventListener
      Indicates that one or more NodeManagers were removed.
      Specified by:
      nodeManagersRemoved in interface AcctEventListener
      Overrides:
      nodeManagersRemoved in class AdminServerAPI
      Parameters:
      nmList - Vector of NMItem objects representing the Node Managers that were removed.
    • systemUpdate

      public void systemUpdate(SystemModel model)
      Description copied from interface: AcctEventListener
      Indicates that the system has substantially changed.
      Specified by:
      systemUpdate in interface AcctEventListener
      Overrides:
      systemUpdate in class AdminServerAPI
      Parameters:
      model - SystemModel representing the current state of the system.
    • nodePerformanceUpdate

      public void nodePerformanceUpdate(Vector perfs)
      Description copied from interface: AcctEventListener
      Indicates that node performance information was updated.
      Specified by:
      nodePerformanceUpdate in interface AcctEventListener
      Overrides:
      nodePerformanceUpdate in class AdminServerAPI
      Parameters:
      perfs - Vector of node performance objects
    • fileChanged

      public void fileChanged(com.nt.udc.admin.FileItem file)
      Description copied from interface: AcctEventListener
      Indicates that a system file changed.
      Specified by:
      fileChanged in interface AcctEventListener
      Overrides:
      fileChanged in class AdminServerAPI
      Parameters:
      file - FileItem object representing the system file that changed.
    • adminServerChanged

      public void adminServerChanged(StatusMessage sm)
      Description copied from interface: AcctEventListener
      Indicates that the properties of an Admin Server have changed.
      Specified by:
      adminServerChanged in interface AcctEventListener
      Overrides:
      adminServerChanged in class AdminServerAPI
      Parameters:
      sm - StatusMessage object representing the change in the AdminServer.