

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 |
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.
| alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::AlarmServiceUtils | ( | ORB | orb, | |
| AcsLogger | theLogger | |||
| ) | [inline] |
| alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::AlarmServiceUtils | ( | ContainerServicesBase | containerServices | ) | [inline] |
Constructor
| containerServices | The container services |
References alma::acs::container::ContainerServicesBase::getAdvancedContainerServices(), alma::acs::container::ContainerServicesBase::getLogger(), logger, and orb.
| alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::AlarmServiceUtils | ( | AcsLogger | theLogger | ) | [inline] |
| AlarmService alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::getAcsAlarmService | ( | ) | throws Exception [inline] |
Get a reference to the CERNAlarmService.
References getAlarmService(), and alma::alarmsystem::AlarmServiceOperations::isACSAlarmService().
| AlarmService alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::getAlarmService | ( | ) | throws Exception [inline] |
Get a reference to the AlarmService.
References getNamingContext(), logger, and orb.
Referenced by getAcsAlarmService(), alma::demo::test::DemoTest::getAlarmServiceComponent(), getAlarmServiceType(), alma::alarmsystem::corbaservice::CernAlarmServiceUtils::getCernAlarmService(), main(), alma::acs::lasercore::test::IDLSendAlarmTest::setUp(), alma::acs::lasercore::test::CoreCDBAlarmTest::shutdownAS(), and alma::acs::lasercore::test::CoreCDBAlarmTest::startAS().
| boolean alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::getAlarmServiceType | ( | ) | throws Exception [inline] |
Return the type of the alarm service in use
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] |
| ORB alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::initORB | ( | ) | [inline, private] |
| static void alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::main | ( | String[] | args | ) | [inline, static] |
The main method
| args |
References AlarmServiceUtils(), getAlarmService(), alma::acs::logging::AcsLogger::log(), printUsage(), alma::alarmsystem::AlarmServiceOperations::shutdown(), and shutdownORB().
| static void alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::printUsage | ( | ) | [inline, static] |
Referenced by main().
| void alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::shutdownORB | ( | ) | [inline] |
The logger
Referenced by AlarmServiceUtils(), and getAlarmService().
final ORB alma::acs::alarmsystem::corbaservice::AlarmServiceUtils::orb [private] |
The ORB
Referenced by AlarmServiceUtils(), getAlarmService(), getNamingContext(), and shutdownORB().
1.6.2