All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.arcsinc.hardwarehost.datamgmt.ClientDataMgrImpl

java.lang.Object
   |
   +----com.arcsinc.hardwarehost.datamgmt.ClientDataMgrImpl

public class ClientDataMgrImpl
extends Object
implements ClientDataMgr, Runnable
The ClientDataMgrImpl class is the ARCSware standard implementation of the ClientDataMgr interface. This class sends data to its DataClient and the DataClient object controls when it receives data and how frequently in receives data via the member functions of this class.

See Also:
ClientClientDataMgr.html#_top_">ClientDataMgr, ExtVariableSpec

Method Index

 o addMonitoredParameter(ExtVariableSpec)
Adds an individual parameter for monitoring.
 o enableOnLineLogging(boolean)
Requests that on-line monitoring is started or stopped.
 o getAvailParams()
Returns a Vector of the available parameters.
 o getCurrentApp()
Returns the name of the current application.
 o getHostName()
Returns the host name.
 o getMonitoredParameters()
Gets the parameters currently being monitored.
 o getOnLineLoggingPeriod()
Gets the time between data refreshing by the manager.
 o getParameters(Vector)
The data client uses this function to do a one time get of the parameters requested.
 o removeMonitoredParameter(ExtVariableSpec)
Removes an individual parameter from monitoring.
 o run()
Utility function which retrieves data from the HostDataMgr and send it to the client
 o setMonitoredParameters(Vector)
Sets the parameters which a client desires to monitor (on-line).
 o setOnLineLoggingPeriod(int)
Sets the requested time between data refreshing by the manager.

Methods

 o run
 public void run()
Utility function which retrieves data from the HostDataMgr and send it to the client

 o getHostName
 public String getHostName()
Returns the host name. Currently, this function only returns ly, this function only returns "local".

Returns:
a String with the host name.
 o getCurrentApp
 public String getCurrentApp()
Returns the name of the current application.

Returns:
a String with the current application name.
 o getAvailParams
 public Vector getAvailParams()
Returns a Vector of the available parameters. The objects stored in the in the Vector are of type ExtVariableSpec.

Returns:
a Vector of ExtVariableSpec objects
 o setMonitoredParameters
 public boolean setMonitoredParameters(Vector params)
Sets the parameters which a client desires to monitor (on-line).

Parameters:
params - Vector of ExtVariableSpec(s) of ExtVariableSpec(s) which denote the desired parameters for monitoring.
Returns:
true if monitoring of parameters was successfully established, otherwise, false
 o getOnLineLoggingPeriod
 public int getOnLineLoggingPeriod()
Gets the time between data refreshing by the manager.

Returns:
the time between data refreshing in milliseconds.
 o setOnLineLoggingPeriod
 public boolean setOnLineLoggingPeriod(int milliseconds)
Sets the requested time between data refreshing by the manager. Note, the timing function is "soft". For precisely timed data, it is necessary to use the data acquisition system features. Also, there is a minimum time which will be accepted, @see com.arcsinc.hardwarehost.datamgmt.HostDataMgrImpl

Parameters:
milliseconds - time between updates.
Returns:
true is successfully called and desired time is accepted.
 o enableOnLineLogging
 public boolean enableOnLineLogging(boolean v)
Requests that on-line monitoring is started or stopped. Called with true, the manager wiler will send data to the client. Called with false, the manager will cease to send data.

Parameters:
v - true to send data or false to stop sending data.
Returns:
true if call was successful.
 o getMonitoredParameters
 public Vector getMonitoredParameters()
Gets the parameters currently being monitored.

Returns:
Vector of ExtVariableSpec(s) which are set to be monitored.
 o addMonitoredParameter
 public boolean addMonitoredParameter(ExtVariableSpec param)
Adds an individual parameter for monitoring. This function is not currently implemented.

Parameters:
param - to add to the list of monitored parameters.
Returns:
true if requested parameters was successfully added, otherwise, essfully added, otherwise, false
 o removeMonitoredParameter
 public boolean removeMonitoredParameter(ExtVariableSpec param)
Removes an individual parameter from monitoring. This function is not currently implemented.

Parameters:
param - to remove - to remove from the list of monitored parameters.
Returns:
true if requested parameters was successfully removed, otherwise, false
 o getParameters
 public boolean getParameters(Vector params)
The data client uses this function to do a one time get of the parameters requested. This function is not currently implemented.

Parameters:
params - is a Vector of ExtVariableSpec(s) which denote the desired parameters.
Returns:
true if request was successfully completed, otherwise, false.

All Packages  Class Hierarchy  This Package  Previous  Next  Index
/pre>