org.rhq.enterprise.server.test
Class MeasurementTestBean

java.lang.Object
  extended by org.rhq.enterprise.server.test.MeasurementTestBean
All Implemented Interfaces:
MeasurementTestLocal

public class MeasurementTestBean
extends Object
implements MeasurementTestLocal

An EJB for testing the measurement subsystem - used by TestControl.jsp.


Constructor Summary
MeasurementTestBean()
           
 
Method Summary
 void addProblemResource()
           
 void init()
           
static void main(String[] args)
           
 void sendTestMeasurementReport()
          Send a test measurement report, full of lots of fake metrics, to the server.
 void setAgentCurrentlyScheduledMetrics(double value)
           
 Map<String,Long> snapshotMeasurementTables()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeasurementTestBean

public MeasurementTestBean()
Method Detail

init

@PostConstruct
public void init()

sendTestMeasurementReport

public void sendTestMeasurementReport()
Send a test measurement report, full of lots of fake metrics, to the server.

Specified by:
sendTestMeasurementReport in interface MeasurementTestLocal

addProblemResource

public void addProblemResource()
Specified by:
addProblemResource in interface MeasurementTestLocal

setAgentCurrentlyScheduledMetrics

public void setAgentCurrentlyScheduledMetrics(double value)
Specified by:
setAgentCurrentlyScheduledMetrics in interface MeasurementTestLocal

snapshotMeasurementTables

public Map<String,Long> snapshotMeasurementTables()
Specified by:
snapshotMeasurementTables in interface MeasurementTestLocal

main

public static void main(String[] args)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.