alma::acs::alarmsystem::corbaservice::AlarmServiceUtils Class Reference

Inheritance diagram for alma::acs::alarmsystem::corbaservice::AlarmServiceUtils:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::alarmsystem::corbaservice::AlarmServiceUtils:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AlarmServiceUtils (ORB orb, AcsLogger theLogger)
 AlarmServiceUtils (ContainerServicesBase containerServices)
 AlarmServiceUtils (AcsLogger theLogger)
AlarmService getAlarmService () throws Exception
boolean getAlarmServiceType () throws Exception
AlarmService getAcsAlarmService () throws Exception
void shutdownORB ()

Static Public Member Functions

static void main (String[] args)
static void printUsage ()

Private Member Functions

NamingContext getNamingContext () throws InvalidName
ORB initORB ()

Private Attributes

final ORB orb
final AcsLogger logger

Detailed Description

An helper class with a set of useful methods.

Some of the methods of this class can be used through a script.

AlarmServiceUtils needs a ORB that can be passed in the constructor directly or through an instance of ContainerServicesBase.
If the empty constructor is used, a new ORB is instantiated.

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::AlarmServiceUtils ( ORB  orb,
AcsLogger  theLogger 
) [inline]

Constructor

Parameters:
orb The ORB
theLogger The logger

References logger.

Referenced by main().

alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::AlarmServiceUtils ( ContainerServicesBase  containerServices  )  [inline]
alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::AlarmServiceUtils ( AcsLogger  theLogger  )  [inline]

Constructor

Parameters:
theLogger The logger; if null a new logger is instantiated

References initORB(), logger, and orb.


Member Function Documentation

AlarmService alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::getAcsAlarmService (  )  throws Exception [inline]
AlarmService alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::getAlarmService (  )  throws Exception [inline]
boolean alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::getAlarmServiceType (  )  throws Exception [inline]

Return the type of the alarm service in use

Returns:
true if the alarm system implementation is ACS, false otherwise

References getAlarmService(), and alma::alarmsystem::AlarmServiceOperations::isACSAlarmService().

Referenced by alma::acsplugins::alarmsystem::gui::AlarmPanel::initAlarmServiceType().

NamingContext alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::getNamingContext (  )  throws InvalidName [inline, private]

Get the NamingContext

Returns:
The NamingContext

References orb.

Referenced by getAlarmService().

ORB alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::initORB (  )  [inline, private]

Instantiate the ORB

Returns:
the ORB

Referenced by AlarmServiceUtils().

static void alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::main ( String[]  args  )  [inline, static]
static void alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::printUsage (  )  [inline, static]

Referenced by main().

void alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::shutdownORB (  )  [inline]

Shutdown the orb.

This method must be called if a new ORB is created by an object of this class.

References orb.

Referenced by main().


Member Data Documentation

The logger

Referenced by AlarmServiceUtils(), and getAlarmService().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2