Static Protected Member Functions | |
static void | spinUp (String clientName, String managerName) throws AcsInformationException, SamplingManagerException, AcsJContainerEx |
static void | startSample (SampDetail sDetail) throws CouldntAccessComponentEx, TypeNotSupportedEx, CouldntAccessPropertyEx, SamplingManagerException |
static void | stopSample (SampDetail sDetail) |
static void | deleteSample (SampDetail sDetail) |
static void | tearDown () throws Exception |
static void | hashPrint () |
static boolean | componentExists (String componentName) |
static boolean | propertyExists (String componentName, String propertyName) |
Static Protected Attributes | |
static AcsInformation | info = null |
The class is a base class for sampling tools. A tool must extend this class and implement a static main. Usage of the sampling system must only be done through the member provided by this class.
static boolean cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.componentExists | ( | String | componentName | ) | [static, protected] |
Wraper that checks if a component exists.
componetName | the name of the component. |
References cl.utfsm.samplingSystemUI.core.AcsInformation.componentExists(), and cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.info.
Referenced by cl.utfsm.example.SampTool.main().
static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.deleteSample | ( | SampDetail | sDetail | ) | [static, protected] |
Stop and delete from the internal structures the sampling identified by a SampDetail.
References cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.stopSample().
static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.hashPrint | ( | ) | [static, protected] |
static boolean cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.propertyExists | ( | String | componentName, | |
String | propertyName | |||
) | [static, protected] |
Wraper that checks if a property exists given a component.
componetName | the name of the component. | |
propertyName | the name of the property. |
References cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.info, and cl.utfsm.samplingSystemUI.core.AcsInformation.propertyExists().
Referenced by cl.utfsm.example.SampTool.main().
static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.spinUp | ( | String | clientName, | |
String | managerName | |||
) | throws AcsInformationException, SamplingManagerException, AcsJContainerEx [static, protected] |
Prepares the conection to the ACS infrastructure. This member creates two objects, an AcsInformation and a SamplingManager. This two are the links with the ACS infrastructure.
clientName | string tha contains the name with which the tool will register with ACS. | |
managerName | string that contains the name of the sampling manager in the container. This manager is specified in the CDB. |
AcsJContainerEx |
References cl.utfsm.samplingSystemUI.core.AcsInformation.getInstance(), and cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.info.
Referenced by cl.utfsm.example.SampTool.main(), and cl.utfsm.samplingSystemUI.DataPrinter.startSample().
static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.startSample | ( | SampDetail | sDetail | ) | throws CouldntAccessComponentEx, TypeNotSupportedEx, CouldntAccessPropertyEx, SamplingManagerException [static, protected] |
Start the sampling of a property. This member will start a PropertySamp object, which will run in a separeted Thread.
sDetail | a SampDetail object that contains the specification for the sampling. |
CouldntAccessComponentEx | ||
TypeNotSupportedEx | ||
CouldntAccessPropertyEx | ||
SamplingManagerException |
Referenced by cl.utfsm.example.SampTool.main().
static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.stopSample | ( | SampDetail | sDetail | ) | [static, protected] |
Stop the sampling of a property identified by a SampDetail.
Referenced by cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.deleteSample().
static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.tearDown | ( | ) | throws Exception [static, protected] |
Shutdown all the sampling operation. Stop every sampling, and disconnects from the ACS manager.
References cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.info, and cl.utfsm.samplingSystemUI.core.AcsInformation.shutDown().
Referenced by cl.utfsm.samplingSystemUI.DataPrinter.finalize(), cl.utfsm.samplingSystemUI.SampTool.main(), and cl.utfsm.example.SampTool.main().
AcsInformation cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.info = null [static, protected] |
Referenced by cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.componentExists(), cl.utfsm.samplingSystemUI.SampTool.getPropsForComponent(), cl.utfsm.samplingSystemUI.SampTool.initializeComponents(), cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.propertyExists(), cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.spinUp(), and cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.tearDown().