Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Package Functions | Package Attributes

cl.utfsm.samplingSystemUI.core.SamplingManager Class Reference

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, SampObj > samplingObjects = null
AcsInformation info = 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

Member Function Documentation

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.

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

References cl.utfsm.samplingSystemUI.core.SamplingManager.samplingObjects.

void cl.utfsm.samplingSystemUI.core.SamplingManager.finalize (  )  [protected]
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.

Parameters:
managerName The sampling managercomponent
Returns:
A singleton for this sampling manager
Exceptions:
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).

Returns:
The last sampling manager singleton referenced by the system.
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.

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(), 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

Returns:
alma.acssamp.Samp
Exceptions:
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().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties