cl::utfsm::samplingSystemUI::core::SamplingManager Class Reference

Collaboration diagram for cl::utfsm::samplingSystemUI::core::SamplingManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Samp getSampReference () throws SamplingManagerException
synchronized SampObj getSamplingObj (SampDetail managerDef) throws CouldntAccessComponentEx, TypeNotSupportedEx, AcsJContainerServicesEx, CouldntAccessPropertyEx, CORBAProblemEx, CouldntCreateObjectEx, MemoryFaultEx, OutOfBoundsEx, SamplingManagerException
synchronized Boolean checkObj (SampDetail managerDef)

Static Public Member Functions

static synchronized SamplingManager getInstance (String managerName) throws SamplingManagerException
static synchronized SamplingManager getInstance ()

Protected Member Functions

void finalize ()

Static Package Functions

 [static initializer]

Package Attributes

Hashtable< SampDetail, SampObjsamplingObjects = null
AcsInformation info = null

Private Member Functions

 SamplingManager (String managerName) throws SamplingManagerException

Private Attributes

String managerName = ""
Samp _acssamp_instance = null

Static Private Attributes

static HashMap< String,
SamplingManager
_instances = null
static SamplingManager _last_referenced = null

Detailed Description

Probaly this class should have another name, but it does manage the sampling system within this application. This class is a per-manager singleton. And holds references for each ACS sampling object. Each one of this objects is associated in hashTable with a sampling detail

See also:
SampDetail
SampObj

Constructor & Destructor Documentation

cl::utfsm::samplingSystemUI::core::SamplingManager::SamplingManager ( String  managerName  )  throws SamplingManagerException [inline, private]

Private constructor. This may only be called from within this class. This is done beacause this class is a singleton, so just one instance should be allowed per sampling manager.

References _acssamp_instance, cl::utfsm::samplingSystemUI::core::AcsInformation::componentExists(), cl::utfsm::samplingSystemUI::core::AcsInformation::getInstance(), info, managerName, and samplingObjects.

Referenced by getInstance().


Member Function Documentation

cl::utfsm::samplingSystemUI::core::SamplingManager::[static initializer] (  )  [inline, static, package]
synchronized Boolean cl::utfsm::samplingSystemUI::core::SamplingManager::checkObj ( SampDetail  managerDef  )  [inline]

Check for a sampling detail, and return true if it a sampling object has been created for it.

Parameters:
managerDef ampling detail requested.
Returns:
true if it exists, or false if it does not.

References samplingObjects.

void cl::utfsm::samplingSystemUI::core::SamplingManager::finalize (  )  [inline, protected]
static synchronized SamplingManager cl::utfsm::samplingSystemUI::core::SamplingManager::getInstance (  )  [inline, static]

Returns the last sampling manager referenced by getInstance(String).

Returns:
The last sampling manager singleton referenced by the system.

References _last_referenced.

static synchronized SamplingManager cl::utfsm::samplingSystemUI::core::SamplingManager::getInstance ( String  managerName  )  throws SamplingManagerException [inline, static]

Singleton creator. This member calls the contructor and verifies that only one instance is allowed for the given sampling manager.

Parameters:
managerName The sampling managercomponent
Returns:
A singleton for this sampling manager
Exceptions:
SamplingManagerException If something goes wrong in the creation of the singleton

References _instances, _last_referenced, managerName, and SamplingManager().

Referenced by cl::utfsm::samplingSystemUI::core::PropertySamp::PropertySamp(), cl::utfsm::samplingSystemUITestCase::SamplingManagerTest::testGetSamplingObj(), cl::utfsm::samplingSystemUITestCase::SamplingManagerTest::testGetSampObj(), and cl::utfsm::samplingSystemUITestCase::SamplingManagerTest::testSingleton().

synchronized SampObj cl::utfsm::samplingSystemUI::core::SamplingManager::getSamplingObj ( SampDetail  managerDef  )  throws CouldntAccessComponentEx, TypeNotSupportedEx, AcsJContainerServicesEx, CouldntAccessPropertyEx, CORBAProblemEx, CouldntCreateObjectEx, MemoryFaultEx, OutOfBoundsEx, SamplingManagerException [inline]

Get or create a new Sampling object. This member will create a new sampling object for each distinc sampling detail. If the sampling detail already existes it will return the already created dampling object.

Parameters:
managerDef Sampling detail requested.
Returns:
a sampling object SampObj.
Exceptions:
CouldntAccessComponentEx 
TypeNotSupportedEx 
AcsJContainerServicesEx 
CouldntAccessPropertyEx 
CORBAProblemEx 
CouldntCreateObjectEx 
MemoryFaultEx 
OutOfBoundsEx 
SamplingManagerException 

References cl::utfsm::samplingSystemUI::core::AcsInformation::getContainerServices(), alma::acs::container::ContainerServicesBase::getLogger(), getSampReference(), info, alma::acssamp::SampOperations::initSampObj(), alma::ACSErr::NameValue::name, samplingObjects, and alma::ACSErr::NameValue::value.

Referenced by cl::utfsm::samplingSystemUI::core::PropertySamp::run(), cl::utfsm::samplingSystemUITestCase::SamplingManagerTest::testGetSampObj(), and cl::utfsm::samplingSystemUITestCase::SamplingManagerTest::testGetSampObjExceptions().

Samp cl::utfsm::samplingSystemUI::core::SamplingManager::getSampReference (  )  throws SamplingManagerException [inline]

Member Data Documentation

Referenced by getInstance().

Referenced by getInstance().


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

Generated by  doxygen 1.6.2