Static Public Member Functions

alma.alarmsystem.source.ACSAlarmSystemInterfaceFactory Class Reference

List of all members.

Static Public Member Functions

static void init (ContainerServicesBase containerServices) throws AcsJContainerServicesEx
static void done ()
static synchronized
ACSAlarmSystemInterface 
createSource (String sourceName) throws ACSASFactoryNotInitedEx, SourceCreationErrorEx
static ACSAlarmSystemInterface createSource () throws ACSASFactoryNotInitedEx, SourceCreationErrorEx
static synchronized ACSFaultState createFaultState () throws ACSASFactoryNotInitedEx, FaultStateCreationErrorEx
static ACSFaultState createFaultState (String family, String member, int code) throws ACSASFactoryNotInitedEx, FaultStateCreationErrorEx
static boolean usingACSAlarmSystem () throws ACSASFactoryNotInitedEx

Detailed Description

ACSAlarmSystemInterfaceFactory extends the CERN AlarmSystemInterfaceFactory to create sources with different implementations depending on the actual configuration in the CDB.

The type of implementation is in AlarmSystemConfiguration.xml: a property named Implementation. CERN implementation is used only if the property is CERN. If the property is not found, is ACS or the CDB record does not exist the ACS implementation for sources is used.

Author:
acaproni

Member Function Documentation

static synchronized ACSFaultState alma.alarmsystem.source.ACSAlarmSystemInterfaceFactory.createFaultState (  )  throws ACSASFactoryNotInitedEx, FaultStateCreationErrorEx [static]

Factory method for creating ACSFaultState instances.

Returns:
a new ACSFaultState instance.

Referenced by alma.alarmsystem.source.ACSAlarmSystemInterfaceFactory.createFaultState().

static ACSFaultState alma.alarmsystem.source.ACSAlarmSystemInterfaceFactory.createFaultState ( String  family,
String  member,
int  code 
) throws ACSASFactoryNotInitedEx, FaultStateCreationErrorEx [static]

Factory method for creating ACSFaultState instances.

Returns:
a new ACSFaultState instance.
Parameters:
family the fault family.
member the fault member.
code the fault code.

References alma.alarmsystem.source.ACSAlarmSystemInterfaceFactory.createFaultState(), alma.alarmsystem.source.ACSFaultState.setCode(), alma.alarmsystem.source.ACSFaultState.setFamily(), and alma.alarmsystem.source.ACSFaultState.setMember().

static synchronized ACSAlarmSystemInterface alma.alarmsystem.source.ACSAlarmSystemInterfaceFactory.createSource ( String  sourceName  )  throws ACSASFactoryNotInitedEx, SourceCreationErrorEx [static]

Create a new instance of an alarm system interface.

Parameters:
sourceName the source name.
Returns:
the interface instance.
Exceptions:
ASIException if the AlarmSystemInterface instance can not be created.
static ACSAlarmSystemInterface alma.alarmsystem.source.ACSAlarmSystemInterfaceFactory.createSource (  )  throws ACSASFactoryNotInitedEx, SourceCreationErrorEx [static]

Create a new instance of an alarm system interface without binding it to any source.

Returns:
the interface instance.
Exceptions:
ASIException if the AlarmSystemInterface instance can not be created.
static void alma.alarmsystem.source.ACSAlarmSystemInterfaceFactory.done (  )  [static]

Cleanup the class. This method has to be called outside of the class and performs all the necessary clean up

static void alma.alarmsystem.source.ACSAlarmSystemInterfaceFactory.init ( ContainerServicesBase  containerServices  )  throws AcsJContainerServicesEx [static]

Init the static variables of the class This method has to be called before executing any other method.

Parameters:
logger The logger
dal The DAL to init the AS with CERN or ACS implementation
Exceptions:
AcsJContainerServicesEx 

References alma.acs.container.ContainerServicesBase.getCDB(), and alma.acs.container.ContainerServicesBase.getLogger().

static boolean alma.alarmsystem.source.ACSAlarmSystemInterfaceFactory.usingACSAlarmSystem (  )  throws ACSASFactoryNotInitedEx [static]

Return the type of AS used

Returns:
True if ACS AS is used, false otherwise
Exceptions:
IllegalStateException If the factory has not been initialized yet

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties