jain.protocol.ss7.oam
Class OamUtility

java.lang.Object
  |
  +--jain.protocol.ss7.oam.OamUtility

public class OamUtility
extends java.lang.Object

This is a utility class providing some usefull methods for JAIN OAM. All methods are static and are specific to JAIN OAM.


Constructor Summary
OamUtility()
           
 
Method Summary
static void addAlarmListener(Mtp2LayerManager manager, Mtp2AlarmListener listener)
          Registers the specified MTP2 Alarm Listener with all of the Mtp2ManagedObjects of the specified MTP2 Layer Manager.
static void addAlarmListener(Mtp3LayerManager manager, Mtp3AlarmListener listener)
          Registers the specified MTP3 Alarm Listener with all of the Mtp3ManagedObjects of the specified MTP3 Layer Manager
static void addAlarmListener(SccpLayerManager manager, SccpAlarmListener listener)
          Registers the specified SCCP Alarm Listener with all of the SccpManagedObjects of the specified SCCP Layer Manager
static void addAlarmListener(TcapLayerManager manager, TcapAlarmListener listener)
          Registers the specified TCAP Alarm Listener with all of the TcapManagedObjects of the specified TCAP Layer Manager
static void addErrorListener(Mtp2LayerManager manager, Mtp2ErrorListener listener)
          Registers the specified MTP2 Error Listener with all of the Mtp2ManagedObjects of the specified MTP2 Layer Manager.
static void addErrorListener(Mtp3LayerManager manager, Mtp3ErrorListener listener)
          Registers the specified MTP3 Error Listener with all of the Mtp3ManagedObjects of the specified MTP3 Layer Manager
static void addErrorListener(SccpLayerManager manager, SccpErrorListener listener)
          Registers the specified SCCP Error Listener with all of the SccpManagedObjects of the specified SCCP Layer Manager
static void addErrorListener(TcapLayerManager manager, TcapErrorListener listener)
          Registers the specified TCAP Error Listener with all of the TcapManagedObjects of the specified TCAP Layer Manager
static java.util.Vector getAllMOs(Mtp2LayerManager manager)
          Returns a Vector containing all of the MTP2 MOs
static java.util.Vector getAllMOs(Mtp3LayerManager manager)
          Returns a Vector containing all of the MTP3 MOs
static java.util.Vector getAllMOs(SccpLayerManager manager)
          Returns a Vector containing all of the SCCP MOs
static java.util.Vector getAllMOs(TcapLayerManager manager)
          Returns a Vector containing all of the TCAP MOs
static void removeAlarmListener(Mtp2LayerManager manager, Mtp2AlarmListener listener)
          Removes the specified MTP2 Alarm Listener from listening to all of the Mtp2ManagedObjects of the specified MTP2 Layer Manager
static void removeAlarmListener(Mtp3LayerManager manager, Mtp3AlarmListener listener)
          Removes the specified MTP3 Alarm Listener from listening to all of the Mtp3ManagedObjects of the specified MTP3 Layer Manager
static void removeAlarmListener(SccpLayerManager manager, SccpAlarmListener listener)
          Removes the specified SCCP Alarm Listener from all of the SccpManagedObjects of the specified SCCP Layer Manager
static void removeAlarmListener(TcapLayerManager manager, TcapAlarmListener listener)
          Removes the specified TCAP Alarm Listener from all of the TcapManagedObjects of the specified TCAP Layer Manager
static void removeErrorListener(Mtp2LayerManager manager, Mtp2ErrorListener listener)
          Removes the specified MTP2 Error Listener from listening to all of the Mtp2ManagedObjects of the specified MTP2 Layer Manager
static void removeErrorListener(Mtp3LayerManager manager, Mtp3ErrorListener listener)
          Removes the specified MTP3 Error Listener from listening to all of the Mtp3ManagedObjects of the specified MTP3 Layer Manager
static void removeErrorListener(SccpLayerManager manager, SccpErrorListener listener)
          Removes the specified SCCP Error Listener from all of the SccpManagedObjects of the specified SCCP Layer Manager
static void removeErrorListener(TcapLayerManager manager, TcapErrorListener listener)
          Removes the specified TCAP Error Listener from all of the TcapManagedObjects of the specified TCAP Layer Manager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OamUtility

public OamUtility()
Method Detail

addAlarmListener

public static void addAlarmListener(Mtp2LayerManager manager,
                                    Mtp2AlarmListener listener)
                             throws java.util.TooManyListenersException,
                                    java.lang.NullPointerException
Registers the specified MTP2 Alarm Listener with all of the Mtp2ManagedObjects of the specified MTP2 Layer Manager.
Parameters:
manager - the LayerManager containing all the MOs
listener - the AlarmListner to be registered with all of the MOs
Throws:
java.util.TooManyListenersException - - if the listener cannot register with any of the MOs as a result of there being the maximum number of Listeners already registered.
NOTE: If this method fails, and this tooManyListenersException is thrown, then the listener will be removed from all of the MOs that he has been added to.
java.lang.NullPointerException - if any of the supplied Objects are null

addAlarmListener

public static void addAlarmListener(Mtp3LayerManager manager,
                                    Mtp3AlarmListener listener)
                             throws java.util.TooManyListenersException,
                                    java.lang.NullPointerException
Registers the specified MTP3 Alarm Listener with all of the Mtp3ManagedObjects of the specified MTP3 Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the AlarmListner to be registered with all of the MOs
Throws:
java.lang.NullPointerException - if any of the supplied objects are null

addAlarmListener

public static void addAlarmListener(SccpLayerManager manager,
                                    SccpAlarmListener listener)
                             throws java.util.TooManyListenersException,
                                    java.lang.NullPointerException
Registers the specified SCCP Alarm Listener with all of the SccpManagedObjects of the specified SCCP Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the AlarmListner to be registered with all of the MOs
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

addAlarmListener

public static void addAlarmListener(TcapLayerManager manager,
                                    TcapAlarmListener listener)
                             throws java.util.TooManyListenersException,
                                    java.lang.NullPointerException
Registers the specified TCAP Alarm Listener with all of the TcapManagedObjects of the specified TCAP Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the AlarmListner to be registered with all of the MOs
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

removeAlarmListener

public static void removeAlarmListener(Mtp2LayerManager manager,
                                       Mtp2AlarmListener listener)
                                throws java.lang.NullPointerException
Removes the specified MTP2 Alarm Listener from listening to all of the Mtp2ManagedObjects of the specified MTP2 Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the AlarmListener to be removed
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

removeAlarmListener

public static void removeAlarmListener(Mtp3LayerManager manager,
                                       Mtp3AlarmListener listener)
                                throws java.lang.NullPointerException
Removes the specified MTP3 Alarm Listener from listening to all of the Mtp3ManagedObjects of the specified MTP3 Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the AlarmListener to be removed
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

removeAlarmListener

public static void removeAlarmListener(SccpLayerManager manager,
                                       SccpAlarmListener listener)
                                throws java.lang.NullPointerException
Removes the specified SCCP Alarm Listener from all of the SccpManagedObjects of the specified SCCP Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the AlarmListner to be removed
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

removeAlarmListener

public static void removeAlarmListener(TcapLayerManager manager,
                                       TcapAlarmListener listener)
                                throws java.lang.NullPointerException
Removes the specified TCAP Alarm Listener from all of the TcapManagedObjects of the specified TCAP Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the AlarmListner to be removed
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

addErrorListener

public static void addErrorListener(Mtp2LayerManager manager,
                                    Mtp2ErrorListener listener)
                             throws java.util.TooManyListenersException,
                                    java.lang.NullPointerException
Registers the specified MTP2 Error Listener with all of the Mtp2ManagedObjects of the specified MTP2 Layer Manager.
Parameters:
manager - the LayerManager containing all the MOs
listener - the ErrorListner to be registered with all of the MOs
Throws:
java.util.TooManyListenersException - - if the listener cannot register with any of the MOs as a result of there being the maximum number of Listeners already registered.
NOTE: If this method fails, and this tooManyListenersException is thrown, then the listener will be removed from all of the MOs that he has been added to.
java.lang.NullPointerException - if any of the supplied Objects are null

addErrorListener

public static void addErrorListener(Mtp3LayerManager manager,
                                    Mtp3ErrorListener listener)
                             throws java.util.TooManyListenersException,
                                    java.lang.NullPointerException
Registers the specified MTP3 Error Listener with all of the Mtp3ManagedObjects of the specified MTP3 Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the ErrorListner to be registered with all of the MOs
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

addErrorListener

public static void addErrorListener(SccpLayerManager manager,
                                    SccpErrorListener listener)
                             throws java.util.TooManyListenersException,
                                    java.lang.NullPointerException
Registers the specified SCCP Error Listener with all of the SccpManagedObjects of the specified SCCP Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the ErrorListner to be registered with all of the MOs
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

addErrorListener

public static void addErrorListener(TcapLayerManager manager,
                                    TcapErrorListener listener)
                             throws java.util.TooManyListenersException,
                                    java.lang.NullPointerException
Registers the specified TCAP Error Listener with all of the TcapManagedObjects of the specified TCAP Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the ErrorListner to be registered with all of the MOs
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

removeErrorListener

public static void removeErrorListener(Mtp2LayerManager manager,
                                       Mtp2ErrorListener listener)
                                throws java.lang.NullPointerException
Removes the specified MTP2 Error Listener from listening to all of the Mtp2ManagedObjects of the specified MTP2 Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the ErrorListener to be removed
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

removeErrorListener

public static void removeErrorListener(Mtp3LayerManager manager,
                                       Mtp3ErrorListener listener)
                                throws java.lang.NullPointerException
Removes the specified MTP3 Error Listener from listening to all of the Mtp3ManagedObjects of the specified MTP3 Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the ErrorListener to be removed
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

removeErrorListener

public static void removeErrorListener(SccpLayerManager manager,
                                       SccpErrorListener listener)
                                throws java.lang.NullPointerException
Removes the specified SCCP Error Listener from all of the SccpManagedObjects of the specified SCCP Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the ErrorListner to be removed
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

removeErrorListener

public static void removeErrorListener(TcapLayerManager manager,
                                       TcapErrorListener listener)
                                throws java.lang.NullPointerException
Removes the specified TCAP Error Listener from all of the TcapManagedObjects of the specified TCAP Layer Manager
Parameters:
manager - the LayerManager containing all the MOs
listener - the ErrorListner to be removed
Throws:
java.lang.NullPointerException - if any of the supplied Objects are null

getAllMOs

public static java.util.Vector getAllMOs(Mtp2LayerManager manager)
                                  throws java.lang.NullPointerException
Returns a Vector containing all of the MTP2 MOs
Throws:
java.lang.NullPointerException - if manager is null

getAllMOs

public static java.util.Vector getAllMOs(Mtp3LayerManager manager)
                                  throws java.lang.NullPointerException
Returns a Vector containing all of the MTP3 MOs
Throws:
java.lang.NullPointerException - if manager is null

getAllMOs

public static java.util.Vector getAllMOs(SccpLayerManager manager)
                                  throws java.lang.NullPointerException
Returns a Vector containing all of the SCCP MOs
Throws:
java.lang.NullPointerException - if manager is null

getAllMOs

public static java.util.Vector getAllMOs(TcapLayerManager manager)
                                  throws java.lang.NullPointerException
Returns a Vector containing all of the TCAP MOs
Throws:
java.lang.NullPointerException - if manager is null


06 January 2000
If you have any comments or queries, please mail them to Colm Hayden [JAIN SS7 OAM Edit Lead]

Copyright - 2000 Sun Microsystems