org.ow2.jasmine.monitoring.mbeancmd.audit
Class Collector

java.lang.Object
  extended by 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

Constructor Summary
Collector()
           
 
Method Summary
 java.lang.String[] getAttributes()
           
 AuditContext[] getContext()
           
 javax.management.ObjectName getOnPattern()
           
 java.io.PrintStream getPerr()
           
 java.util.LinkedList<Metric> getPoll(PollID id)
          Get the metrics collected by the poll identified by id
 PollID poll(java.lang.String name)
          Triggers a poll.
 void setAttributes(java.lang.String[] attributes)
           
 void setContext(AuditContext[] context)
           
 void setOnPattern(javax.management.ObjectName onPattern)
           
 void setPerr(java.io.PrintStream perr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collector

public Collector()
Method Detail

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 © 2010 OW2 Consortium. All Rights Reserved.