org.ow2.jasmine.monitoring.mbeancmd.audit
Class Collector
java.lang.Object
org.ow2.jasmine.monitoring.mbeancmd.audit.Collector
public class Collector
- extends java.lang.Object
- Author:
- waeselyf
This classes manages poll of mbeans to target JOnAS or JVM instances
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Collector
public Collector()
poll
public PollID poll(java.lang.String name)
- Triggers a poll. The name is used to build a pollID, from which the poll data can be retrieved.
All targets are polled.
- Parameters:
name -
- Returns:
- the PollID of the poll
getPoll
public java.util.LinkedList<Metric> getPoll(PollID id)
- Get the metrics collected by the poll identified by id
- Parameters:
id - identifier of the poll
- Returns:
- the list of metrics LinkedList
getContext
public AuditContext[] getContext()
- Returns:
- the context
setContext
public void setContext(AuditContext[] context)
- Parameters:
context - the context to set
getOnPattern
public javax.management.ObjectName getOnPattern()
- Returns:
- the onPattern
setOnPattern
public void setOnPattern(javax.management.ObjectName onPattern)
- Parameters:
onPattern - the onPattern to set
getAttributes
public java.lang.String[] getAttributes()
- Returns:
- the attributes
setAttributes
public void setAttributes(java.lang.String[] attributes)
- Parameters:
attributes - the attributes to set
getPerr
public java.io.PrintStream getPerr()
- Returns:
- the perr
setPerr
public void setPerr(java.io.PrintStream perr)
- Parameters:
perr - the perr to set
Copyright © 2009 OW2 Consortium. All Rights Reserved.