org.ow2.jasmine.monitoring.mbeancmd.audit
Class Collector
java.lang.Object
org.ow2.jasmine.monitoring.mbeancmd.audit.Collector
public class Collector
- extends 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(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 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 ObjectName getOnPattern()
- Returns:
- the onPattern
setOnPattern
public void setOnPattern(ObjectName onPattern)
- Parameters:
onPattern - the onPattern to set
getAttributes
public String[] getAttributes()
- Returns:
- the attributes
setAttributes
public void setAttributes(String[] attributes)
- Parameters:
attributes - the attributes to set
getPerr
public PrintStream getPerr()
- Returns:
- the perr
setPerr
public void setPerr(PrintStream perr)
- Parameters:
perr - the perr to set
Copyright © 2012 OW2 Consortium. All Rights Reserved.