org.opends.testqa.monitoringclient
Class MonitoringClient

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

public class MonitoringClient
extends java.lang.Object

Main class of the monitoring client.


Constructor Summary
MonitoringClient(java.util.Properties parsedArguments)
          Wake up the producers very interval of time.
 
Method Summary
static java.util.Properties argumentParser(java.lang.String[] args)
          Parse the command line argument.
 DatasBuffer getDatasBuffer()
          Returns the buffer for the datas.
 ErrorsBuffer getErrorsBuffer()
          Returns the buffer for the errors.
 int getInterval()
          Returns the interval.
 int getNbConsumers()
          Returns the number of consumers.
 int getTimeUnit()
          Return the time unit.
static void main(java.lang.String[] args)
          The main method of the MonitoringClient class.
 void setProducersConfig(java.util.Hashtable producersConfig)
          Sets the properties of the producers.
 void start()
          Start the producers and de consumers and wake up the producers every interval of time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoringClient

public MonitoringClient(java.util.Properties parsedArguments)
Wake up the producers very interval of time.

Parameters:
parsedArguments - The parsed arguments
Method Detail

main

public static void main(java.lang.String[] args)
The main method of the MonitoringClient class.

Parameters:
args - The command-line arguments provided to this program.

start

public void start()
Start the producers and de consumers and wake up the producers every interval of time.


getDatasBuffer

public DatasBuffer getDatasBuffer()
Returns the buffer for the datas.

Returns:
The buffer for the datas.

getErrorsBuffer

public ErrorsBuffer getErrorsBuffer()
Returns the buffer for the errors.

Returns:
The buffer for the errors.

getInterval

public int getInterval()
Returns the interval.

Returns:
The interval of time between each threads wake up.

getTimeUnit

public int getTimeUnit()
Return the time unit.

Returns:
the time unit

getNbConsumers

public int getNbConsumers()
Returns the number of consumers.

Returns:
The number of consumers.

setProducersConfig

public void setProducersConfig(java.util.Hashtable producersConfig)
Sets the properties of the producers.

Parameters:
producersConfig - The properties of the producers.

argumentParser

public static java.util.Properties argumentParser(java.lang.String[] args)
Parse the command line argument.

Parameters:
args - the command line argument
Returns:
the parsed argument