public class AcsAlarmSystem
extends AlarmServicePOA
| Modifier and Type | Class and Description |
|---|---|
class |
AcsAlarmSystem.AcsComponentTerminator
A class to terminate the alarm service asynchronously.
|
| Constructor and Description |
|---|
AcsAlarmSystem(AlarmSystemCorbaServer corbaServer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
LogLevels |
get_default_logLevels()
Gets the log levels of the default logging configuration.
|
java.lang.String[] |
get_logger_names()
Gets the names of all loggers, to allow configuring their levels
individually.
|
LogLevels |
get_logLevels(java.lang.String logger_name)
Gets log levels for a particular named logger.
|
boolean |
isACSAlarmService()
Return the type of alarm system
|
void |
refresh_logging_config()
Commands the container or manager to read in again the logging
configuration from the CDB and to reconfigure the loggers accordingly.
|
void |
set_default_logLevels(LogLevels levels)
Sets the log levels of the default logging configuration.
|
void |
set_logLevels(java.lang.String logger_name,
LogLevels levels)
Sets log levels for a particular named logger.
|
void |
shutdown()
Shutdown the alarm service
|
void |
submitAlarm(Triplet triplet,
boolean active,
java.lang.String sourceHostName,
java.lang.String sourceName,
long timestamp,
Property[] alarmProperties)
IDL method: submit an alarm without.
|
public AcsAlarmSystem(AlarmSystemCorbaServer corbaServer) throws java.lang.Exception
java.lang.Exceptionpublic boolean isACSAlarmService()
truepublic void shutdown()
public void submitAlarm(Triplet triplet,
boolean active,
java.lang.String sourceHostName,
java.lang.String sourceName,
long timestamp,
Property[] alarmProperties)
throws BadParameterEx,
UnexpectedExceptionEx
Build a message to sent to the AlarmMessageProcessorImpl#process(Message).
triplet - The triplet of the alarmactive - if true the alarm is activesourceHostName - The name of the host of the sourcetimestamp - The timestamp of the sourcealarmProperties - Additional user-defined properties of the alarmBadParameterExUnexpectedExceptionExpublic LogLevels get_default_logLevels()
public void set_default_logLevels(LogLevels levels)
throws IllegalLogLevelsEx
IllegalLogLevelsExpublic java.lang.String[] get_logger_names()
The returned logger names are randomly ordered.
public LogLevels get_logLevels(java.lang.String logger_name)
throws LoggerDoesNotExistEx
For possible convenience, the default levels are returned in addition to
setting LogLevels#useDefault to true.
LoggerDoesNotExistExpublic void set_logLevels(java.lang.String logger_name,
LogLevels levels)
throws LoggerDoesNotExistEx,
IllegalLogLevelsEx
LoggerDoesNotExistExIllegalLogLevelsExpublic void refresh_logging_config()
Note that unlike for the logging initialization in #initialize(),
now we give precedence to the CDB values over any previous settings.