Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy Class Reference

Inheritance diagram for cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy:

Inheritance graph
[legend]
Collaboration diagram for cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AlarmSystemInterfaceProxy (String sourceName) throws ASIException
void setSourceName (String newSourceName)
String getSourceName ()
void close ()
void onException (MOMException e)
void pull (PullEvent event) throws PullException
void push (FaultState state) throws ASIException
void push (Collection states) throws ASIException
void pushActiveList (Collection active) throws ASIException

Protected Member Functions

void finalize () throws Throwable

Private Member Functions

void publish (Collection states, boolean backup) throws Exception

Private Attributes

ASIConfiguration configuration
Publisher publisher
String hostName
String sourceName = "UNDEFINED"
SynchroBuffer buffer
boolean connected

Static Private Attributes

Category cat = Category.getInstance(AlarmSystemInterfaceProxy.class.getName())

Detailed Description

This class is the implementation of the interface between an alarm source and the alarm system. It provides the functionality defined in the interface AlarmSystemInterface.

Author:
fracalde
Version:
1.0


Constructor & Destructor Documentation

cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::AlarmSystemInterfaceProxy String  sourceName  )  throws ASIException [inline]
 

Create a new instance of AlarmSystemInterfaceProxy

Parameters:
sourceName the name of the alarm source


Member Function Documentation

void cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::close  )  [inline]
 

Close the instance.

Implements cern::laser::source::alarmsysteminterface::AlarmSystemInterface.

void cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::finalize  )  throws Throwable [inline, protected]
 

Properly close all the resources.

Exceptions:
Throwable a Throwable exception

String cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::getSourceName  )  [inline]
 

Get the source name.

Returns:
the source name.

Implements cern::laser::source::alarmsysteminterface::AlarmSystemInterface.

void cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::onException MOMException  e  )  [inline]
 

The exception handler called in case of communication exception

Parameters:
e the MOMException caught

void cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::publish Collection  states,
boolean  backup
throws Exception [inline, private]
 

Publish a collection of fault states.

Parameters:
states the fault states collection to publish
backup the type of fault states to publish (backup or not)
Exceptions:
Exception if publishing fails

void cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::pull PullEvent  event  )  throws PullException [inline]
 

Implement the SysnchroBufferListener interface.

Parameters:
event the alarm message collection pulled from the buffer
Exceptions:
PullException if the messages can not be published

void cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::push Collection  states  )  throws ASIException [inline]
 

Push an fault states collection.

Parameters:
states the fault states collection to push

Implements cern::laser::source::alarmsysteminterface::AlarmSystemInterface.

void cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::push FaultState  state  )  throws ASIException [inline]
 

Push a fault state.

Parameters:
state the fault state to push

Implements cern::laser::source::alarmsysteminterface::AlarmSystemInterface.

void cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::pushActiveList Collection  active  )  throws ASIException [inline]
 

Push the source active list forcing a backup

Parameters:
active the source active list

Implements cern::laser::source::alarmsysteminterface::AlarmSystemInterface.

void cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::setSourceName String  newSourceName  )  [inline]
 

Set the source name.

Parameters:
newSourceName the source name.

Implements cern::laser::source::alarmsysteminterface::AlarmSystemInterface.


Member Data Documentation

SynchroBuffer cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::buffer [private]
 

the local buffer for packing alarm messages

Category cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::cat = Category.getInstance(AlarmSystemInterfaceProxy.class.getName()) [static, private]
 

logging category

ASIConfiguration cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::configuration [private]
 

configuration

boolean cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::connected [private]
 

MOM connection flag

String cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::hostName [private]
 

the hostname

Publisher cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::publisher [private]
 

the publisher

String cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::sourceName = "UNDEFINED" [private]
 

the source name


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:09:46 2009 for ACS Java API by doxygen 1.3.8