BEAST
eu.baltrad.beast.system.SystemSupervisor Class Reference

A system supervisor. More...

Inheritance diagram for eu.baltrad.beast.system.SystemSupervisor:
eu.baltrad.beast.system.ISystemSupervisor

Public Member Functions

void add (SystemMessage message)
 
List< SystemMessagegetMessages ()
 
SystemMessage createMessage (String module, String code, MessageSeverity severity, String message, String solution)
 Creates a new system message.
 
void register (String name, ISystemStatusReporter reporter)
 Registers a reporter with specified name.
 
void setReporters (Map< String, ISystemStatusReporter > reporters)
 Sets all reporters used by this supervisor.
 
Set< String > getSupportedAttributes (String component)
 
Set< SystemStatusgetStatus (String component, Map< String, Object > values)
 
boolean supportsMappableStatus (String component)
 
Map< String, Map< Object, SystemStatus > > getMappedStatus (String component, Map< String, Object > values)
 

Detailed Description

A system supervisor.

Keeps tracks of the reported alerts.

Author
Anders Henja

Member Function Documentation

◆ add()

void eu.baltrad.beast.system.SystemSupervisor.add ( SystemMessage message)
inline

◆ createMessage()

SystemMessage eu.baltrad.beast.system.SystemSupervisor.createMessage ( String module,
String code,
MessageSeverity severity,
String message,
String solution )
inline

Creates a new system message.

Parameters
codethe error code
argsthe argument list
Returns
the created system message

◆ getMappedStatus()

Map< String, Map< Object, SystemStatus > > eu.baltrad.beast.system.SystemSupervisor.getMappedStatus ( String component,
Map< String, Object > values )
inline

◆ getMessages()

List< SystemMessage > eu.baltrad.beast.system.SystemSupervisor.getMessages ( )
inline

◆ getStatus()

Set< SystemStatus > eu.baltrad.beast.system.SystemSupervisor.getStatus ( String component,
Map< String, Object > values )
inline
See also
eu.baltad.beast.system.ISystemSupervisor.getStatus(java.lang.String, java.util.Map)

Implements eu.baltrad.beast.system.ISystemSupervisor.

◆ getSupportedAttributes()

Set< String > eu.baltrad.beast.system.SystemSupervisor.getSupportedAttributes ( String component)
inline
See also
eu.baltad.beast.system.ISystemSupervisor.getSupportedAttributes(java.lang.String)

Implements eu.baltrad.beast.system.ISystemSupervisor.

◆ register()

void eu.baltrad.beast.system.SystemSupervisor.register ( String name,
ISystemStatusReporter reporter )
inline

Registers a reporter with specified name.

Parameters
namethe name that the reporter should be found by
reporterthe reporter

◆ setReporters()

void eu.baltrad.beast.system.SystemSupervisor.setReporters ( Map< String, ISystemStatusReporter > reporters)
inline

Sets all reporters used by this supervisor.

Parameters
reporters

◆ supportsMappableStatus()

boolean eu.baltrad.beast.system.SystemSupervisor.supportsMappableStatus ( String component)
inline

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