org.rhq.plugins.perftest.event
Class PerfTestEventPoller

java.lang.Object
  extended by org.rhq.plugins.perftest.event.PerfTestEventPoller
All Implemented Interfaces:
EventPoller

public class PerfTestEventPoller
extends Object
implements EventPoller

Emits events when polled. Set the following system properties to define behavior: on.perftest.events.count (default is "1") on.perftest.events.severity (default is "INFO") on.perftest.events.polling-interval (in seconds; if this is not set, this poller object will never be created)


Field Summary
static String PERFTEST_EVENT_TYPE
           
static String SYSPROP_EVENTS_COUNT
           
static String SYSPROP_EVENTS_POLLING_INTERVAL
           
static String SYSPROP_EVENTS_SEVERITY
           
 
Constructor Summary
PerfTestEventPoller(ResourceContext resourceContext)
           
 
Method Summary
 String getEventType()
           
 Set<Event> poll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERFTEST_EVENT_TYPE

public static final String PERFTEST_EVENT_TYPE
See Also:
Constant Field Values

SYSPROP_EVENTS_POLLING_INTERVAL

public static final String SYSPROP_EVENTS_POLLING_INTERVAL
See Also:
Constant Field Values

SYSPROP_EVENTS_COUNT

public static final String SYSPROP_EVENTS_COUNT
See Also:
Constant Field Values

SYSPROP_EVENTS_SEVERITY

public static final String SYSPROP_EVENTS_SEVERITY
See Also:
Constant Field Values
Constructor Detail

PerfTestEventPoller

public PerfTestEventPoller(ResourceContext resourceContext)
Method Detail

getEventType

public String getEventType()
Specified by:
getEventType in interface EventPoller

poll

public Set<Event> poll()
Specified by:
poll in interface EventPoller


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