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

cern::laser::business::cache::AlarmCache Interface Reference

List of all members.

Public Member Functions

void initializeAlarmCache (Map alarms, Map activeLists)
Alarm getCopy (String identifier) throws AlarmCacheException
Alarm getReference (String identifier) throws AlarmCacheException
void replace (Alarm alarm) throws AlarmCacheException
void put (Alarm alarm) throws AlarmCacheException
void invalidate (String identifier) throws AlarmCacheException
CategoryActiveList getActiveListReference (Integer identifier) throws AlarmCacheException
void close ()
void removeActiveList (Integer identifier) throws AlarmCacheException

Detailed Description

AlarmImpl cache service class. It defines the interface for the alarm cache which holds alarm plain objects loaded and persisted via the alarm entity beans. Changes to the objects in the cache are propagated and published to the clients.

Author:
fracalde


Member Function Documentation

void cern::laser::business::cache::AlarmCache::close  ) 
 

Close and deallocate the resources.

CategoryActiveList cern::laser::business::cache::AlarmCache::getActiveListReference Integer  identifier  )  throws AlarmCacheException
 

Returns a reference to the active list for a category.

Parameters:
identifier the active list private identifier
Returns:
the reference to the active list object.
Exceptions:
Exception if the operation can not be performed

Alarm cern::laser::business::cache::AlarmCache::getCopy String  identifier  )  throws AlarmCacheException
 

Returns a clone of the cached alarm.

Parameters:
identifier the alarm private identifier
Returns:
the cloned alarm object.
Exceptions:
Exception if the operation can not be performed

Alarm cern::laser::business::cache::AlarmCache::getReference String  identifier  )  throws AlarmCacheException
 

Returns a reference to the cached alarm.

Parameters:
identifier the alarm private identifier
Returns:
the reference to the alarm object
Exceptions:
AlarmCacheException if the operation cannot be performed

void cern::laser::business::cache::AlarmCache::initializeAlarmCache Map  alarms,
Map  activeLists
 

Initializes the alarm cache. Can only be called once.

void cern::laser::business::cache::AlarmCache::invalidate String  identifier  )  throws AlarmCacheException
 

Invalidate the cached object. Subsequent accesses to that object will cause the object to be loaded again from the ejb.

Parameters:
identifier the alarm private identifier
Exceptions:
Exception if the operation can not be performed

void cern::laser::business::cache::AlarmCache::put Alarm  alarm  )  throws AlarmCacheException
 

Puts an object in the cache. If that object was already in the cache it is replaced. This method combines the methods replace, and release alarm the new alarm object Exception if the operation can not be performed

void cern::laser::business::cache::AlarmCache::removeActiveList Integer  identifier  )  throws AlarmCacheException
 

Remove the active list associated with the given category id.

Parameters:
identifier the id of the active list to destroy (=category id)
Exceptions:
Exception if the operation cannot be performed

void cern::laser::business::cache::AlarmCache::replace Alarm  alarm  )  throws AlarmCacheException
 

Puts alarm in the cache. This method must be called after as the alarm need to be locked. alarm object to put in cache AlarmCacheException if the operation cannot be performed. However, the lock is released.


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