org.opends.testqa.monitoringclient
Class Data

java.lang.Object
  extended by org.opends.testqa.monitoringclient.Data

public class Data
extends java.lang.Object

The classe Data represent an attribute monitored by a producer.


Constructor Summary
Data(java.lang.String attribute, java.util.Properties parameters)
          Create a data without value and timer.
 
Method Summary
 java.lang.String getAttribute()
          Return the name of the attribute monitored.
 java.util.Properties getParameters()
          Return the parameters of the data.
 java.lang.String getProtocol()
          Return the name of the protocol used to retrieve the data.
 int getTimer()
          Return the timer of the data.
 java.lang.String getValue()
          Return the value of the attribute monitored.
 boolean hasEmptyValue()
          Test if the data has no value.
 boolean isProtocol(java.lang.String protocol)
          Test is the specified protocol is the protocol of the data.
 void reset()
          Reset a data.
 void setTimer(int timer)
          Set the timer of the data.
 void setValue(java.lang.String value)
          Sets the value of the attribute monitored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Data

public Data(java.lang.String attribute,
            java.util.Properties parameters)
Create a data without value and timer.

Parameters:
attribute - the name of the attibute monitored.
parameters - the parameters to monitor the attribute.
Method Detail

reset

public void reset()
Reset a data.


getAttribute

public java.lang.String getAttribute()
Return the name of the attribute monitored.

Returns:
The name of the attribute monitored.

getParameters

public java.util.Properties getParameters()
Return the parameters of the data.

Returns:
the parameters of the data.

getProtocol

public java.lang.String getProtocol()
Return the name of the protocol used to retrieve the data.

Returns:
The name of the protocol used to retrieve the data.

isProtocol

public boolean isProtocol(java.lang.String protocol)
Test is the specified protocol is the protocol of the data.

Parameters:
protocol - Name of the protocol.
Returns:
true if the protocols are equals; false otherwise.

getValue

public java.lang.String getValue()
Return the value of the attribute monitored.

Returns:
The value of the attribute monitored.

setValue

public void setValue(java.lang.String value)
Sets the value of the attribute monitored.

Parameters:
value - The value of the attribute monitored.

hasEmptyValue

public boolean hasEmptyValue()
Test if the data has no value.

Returns:
true if the value equals the empty strings; false otherwise.

getTimer

public int getTimer()
Return the timer of the data.

Returns:
The Number of milliseconds beetween the launch of the request and the creation of the data.

setTimer

public void setTimer(int timer)
Set the timer of the data.

Parameters:
timer - Number of milliseconds beetween the launch of the request and the creation of the data.