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 |
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.[static initializer] | ( | ) | [static, package] |
synchronized Boolean cl.utfsm.samplingSystemUI.core.SamplingManager.checkObj | ( | SampDetail | managerDef | ) |
Check for a sampling detail, and return true if it a sampling object has been created for it.
managerDef | ampling detail requested. |
References cl.utfsm.samplingSystemUI.core.SamplingManager.samplingObjects.
void cl.utfsm.samplingSystemUI.core.SamplingManager.finalize | ( | ) | [protected] |
Finalizes the usage of all Components taken over by the Manager
References cl.utfsm.samplingSystemUI.core.AcsInformation.getContainerServices(), cl.utfsm.samplingSystemUI.core.SamplingManager.info, and alma.acs.container.ContainerServices.releaseComponent().
static synchronized SamplingManager cl.utfsm.samplingSystemUI.core.SamplingManager.getInstance | ( | String | managerName | ) | throws SamplingManagerException [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 |
Referenced by cl.utfsm.samplingSystemUI.core.PropertySamp.PropertySamp().
static synchronized SamplingManager cl.utfsm.samplingSystemUI.core.SamplingManager.getInstance | ( | ) | [static] |
Returns the last sampling manager referenced by getInstance(String).
synchronized SampObj cl.utfsm.samplingSystemUI.core.SamplingManager.getSamplingObj | ( | SampDetail | managerDef | ) | throws CouldntAccessComponentEx, TypeNotSupportedEx, AcsJContainerServicesEx, CouldntAccessPropertyEx, CORBAProblemEx, CouldntCreateObjectEx, MemoryFaultEx, OutOfBoundsEx, SamplingManagerException |
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(), cl.utfsm.samplingSystemUI.core.SamplingManager.getSampReference(), cl.utfsm.samplingSystemUI.core.SamplingManager.info, and cl.utfsm.samplingSystemUI.core.SamplingManager.samplingObjects.
Referenced by cl.utfsm.samplingSystemUI.core.PropertySamp.run().
Samp cl.utfsm.samplingSystemUI.core.SamplingManager.getSampReference | ( | ) | throws SamplingManagerException |
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 cl.utfsm.samplingSystemUI.core.AcsInformation.getContainerServices(), cl.utfsm.samplingSystemUI.core.SamplingManager.info, and alma.acs.container.ContainerServices.releaseComponent().
Referenced by cl.utfsm.samplingSystemUI.core.SamplingManager.getSamplingObj().
AcsInformation cl.utfsm.samplingSystemUI.core.SamplingManager.info = null [package] |
Hashtable<SampDetail,SampObj> cl.utfsm.samplingSystemUI.core.SamplingManager.samplingObjects = null [package] |