alma::ACS::MasterComponentImpl::SubsysResourceMonitor::ComponentChecker< T extends ACSComponent > Class Reference

Inheritance diagram for alma::ACS::MasterComponentImpl::SubsysResourceMonitor::ComponentChecker< T extends ACSComponent >:
Inheritance graph
[legend]
Collaboration diagram for alma::ACS::MasterComponentImpl::SubsysResourceMonitor::ComponentChecker< T extends ACSComponent >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

String checkState ()
getResource ()
String getResourceName ()

Package Functions

 ComponentChecker (T comp)

Private Attributes

final T comp
String compName

Detailed Description

Implementation of ResourceChecker for ACS components. Calls ACSComponentOperations#componentState() to determine responsiveness and state of the component resource.


Constructor & Destructor Documentation

alma::ACS::MasterComponentImpl::SubsysResourceMonitor::ComponentChecker< T extends ACSComponent >::ComponentChecker ( comp  )  [inline, package]

Member Function Documentation

String alma::ACS::MasterComponentImpl::SubsysResourceMonitor::ComponentChecker< T extends ACSComponent >::checkState (  )  [inline]

This method tries to connect to the monitored resource and check its state if applicable. If this call does not return within a certain time, then resource unavailability will be assumed.

Returns:
name of an offending state or status if one is found, otherwise null.

Implements alma::ACS::MasterComponentImpl::SubsysResourceMonitor::ResourceChecker< T >.

References alma::ACS::ComponentStates::toString(), and alma::ACS::ComponentStates::value.

T alma::ACS::MasterComponentImpl::SubsysResourceMonitor::ComponentChecker< T extends ACSComponent >::getResource (  )  [inline]
String alma::ACS::MasterComponentImpl::SubsysResourceMonitor::ComponentChecker< T extends ACSComponent >::getResourceName (  )  [inline]

Returns a name that identifies the resource. The name is used for log messages. It should be unique within a master component, although currently no use is made of uniqueness.

Implements alma::ACS::MasterComponentImpl::SubsysResourceMonitor::ResourceChecker< T >.


Member Data Documentation

final T alma::ACS::MasterComponentImpl::SubsysResourceMonitor::ComponentChecker< T extends ACSComponent >::comp [private]
String alma::ACS::MasterComponentImpl::SubsysResourceMonitor::ComponentChecker< T extends ACSComponent >::compName [private]

We keep the component name separately because later when there are problems it may no longer be possible to obtain it remotely.


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

Generated by  doxygen 1.6.2