cern::laser::client::services::selection::AlarmSelectionHandler Class Reference

Inheritance diagram for cern::laser::client::services::selection::AlarmSelectionHandler:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::client::services::selection::AlarmSelectionHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

abstract Selection createSelection ()
abstract Map select (Selection selection, AlarmSelectionListener listener) throws LaserException, LaserTimeOutException
abstract void resetSelection () throws LaserException
abstract void close () throws LaserException
abstract void search (Selection selection, int nbOfRows, AlarmSearchListener searchListener) throws LaserException, LaserTimeOutException

Static Public Member Functions

static AlarmSelectionHandler get () throws LaserConnectionException, LaserException

Static Private Attributes

static final Logger LOGGER = Logger.getLogger(AlarmSelectionHandler.class.getName())
static final ThreadLocal alarmSelectionHandler = new ThreadLocal()

Detailed Description

Provides the services to define and perform an alarm selection.

Author:
F.Calderini
See also:
cern.laser.client.services.browsing.AlarmBrowsingHandler
cern.laser.client.services.browsing.CategoryBrowsingHandler
cern.laser.client.services.reduction.AlarmReductionHandler

Member Function Documentation

abstract void cern::laser::client::services::selection::AlarmSelectionHandler::close (  )  throws LaserException [pure virtual]

Close and deallocate resources.

Exceptions:
LaserException if the system is unable to close properly

Implemented in cern::laser::client::impl::services::selection::AlarmSelectionHandlerImpl.

Referenced by alma::alarmsystem::clients::CategoryClient::close().

abstract Selection cern::laser::client::services::selection::AlarmSelectionHandler::createSelection (  )  [pure virtual]
static AlarmSelectionHandler cern::laser::client::services::selection::AlarmSelectionHandler::get (  )  throws LaserConnectionException, LaserException [inline, static]
abstract void cern::laser::client::services::selection::AlarmSelectionHandler::resetSelection (  )  throws LaserException [pure virtual]
abstract void cern::laser::client::services::selection::AlarmSelectionHandler::search ( Selection  selection,
int  nbOfRows,
AlarmSearchListener  searchListener 
) throws LaserException, LaserTimeOutException [pure virtual]

Starts the asynchronous alarm search. The found alarms will be asynchronously received.

Parameters:
selection the alarm selection instance
nbOfRows the number of rows to return
searchListener the search listener instance
Exceptions:
LaserConnectionException if the client cannot connect to the BL
LaserTimeOutException if the selection times out
LaserException if the system is unable to perform the selection

Implemented in cern::laser::client::impl::services::selection::AlarmSelectionHandlerImpl.

Referenced by cern::laser::guiplatform::windows::search::SearchWindow::searchButtonActionPerformed(), and cern::laser::client::TestSearch::TestSearch().

abstract Map cern::laser::client::services::selection::AlarmSelectionHandler::select ( Selection  selection,
AlarmSelectionListener  listener 
) throws LaserException, LaserTimeOutException [pure virtual]

Starts the asynchronous alarm selection. The selected alarms which are currently active will be asynchronously received as well as any change that may occur to their status.

Parameters:
selection the alarm selection instance
listener the selection listener instance
Returns:
the selected alarms currently active
Exceptions:
LaserConnectionException if the client cannot connect to the BL
LaserTimeOutException if the selection times out
LaserException if the system is unable to perform the selection

Implemented in cern::laser::client::impl::services::selection::AlarmSelectionHandlerImpl.

Referenced by cern::laser::guiplatform::windows::configuration::ConsoleConfigurationPanel::applyButtonActionPerformed(), alma::alarmsystem::clients::CategoryClient::connect(), cern::laser::guiplatform::windows::login::AlarmConsoleLoginWindow::login(), cern::laser::guiplatform::windows::AlarmStatisticInfoPanel::onException(), cern::laser::test::TestSelection::TestSelection(), cern::laser::client::TestSelection::TestSelection(), and cern::laser::test::TestSelectionAndConfiguration::TestSelectionAndConfiguration().


Member Data Documentation

final ThreadLocal cern::laser::client::services::selection::AlarmSelectionHandler::alarmSelectionHandler = new ThreadLocal() [static, private]

Referenced by get().

final Logger cern::laser::client::services::selection::AlarmSelectionHandler::LOGGER = Logger.getLogger(AlarmSelectionHandler.class.getName()) [static, private]

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

Generated by  doxygen 1.6.2