
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, SampObj > | samplingObjects = 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 |
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
| 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().
| 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.
| managerDef | ampling detail requested. |
References samplingObjects.
| void cl::utfsm::samplingSystemUI::core::SamplingManager::finalize | ( | ) | [inline, protected] |
Finalizes the usage of all Components taken over by the Manager
References cl::utfsm::samplingSystemUI::core::AcsInformation::getContainerServices(), info, managerName, and alma::acs::container::ContainerServices::releaseComponent().
| static synchronized SamplingManager cl::utfsm::samplingSystemUI::core::SamplingManager::getInstance | ( | ) | [inline, static] |
Returns the last sampling manager referenced by getInstance(String).
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.
| managerName | The sampling managercomponent |
| 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.
| managerDef | Sampling detail requested. |
| 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] |
Gets a reference to the sampling manager and returns it As of ACS-7.0 the following call throws AcsJContainerServicesEx instead of returnin null
| SamplingManagerException |
References _acssamp_instance, alma::ACS::ACSComponentOperations::componentState(), cl::utfsm::samplingSystemUI::core::AcsInformation::getContainerServices(), info, managerName, and alma::acs::container::ContainerServices::releaseComponent().
Referenced by cl::utfsm::samplingSystemUI::SamplingSystemGUI::checkSamplingManager(), getSamplingObj(), and cl::utfsm::samplingSystemUITestCase::SamplingManagerTest::testGetSamplingObj().
Referenced by getSampReference(), and SamplingManager().
HashMap<String,SamplingManager> cl::utfsm::samplingSystemUI::core::SamplingManager::_instances = null [static, private] |
Referenced by getInstance().
SamplingManager cl::utfsm::samplingSystemUI::core::SamplingManager::_last_referenced = null [static, private] |
Referenced by getInstance().
AcsInformation cl::utfsm::samplingSystemUI::core::SamplingManager::info = null [package] |
Referenced by finalize(), getSamplingObj(), getSampReference(), and SamplingManager().
String cl::utfsm::samplingSystemUI::core::SamplingManager::managerName = "" [private] |
Referenced by finalize(), getInstance(), getSampReference(), and SamplingManager().
Hashtable<SampDetail,SampObj> cl::utfsm::samplingSystemUI::core::SamplingManager::samplingObjects = null [package] |
Referenced by checkObj(), getSamplingObj(), and SamplingManager().
1.6.2