org.ow2.jasmine.monitoring.mbeancmd.sampling
Class WebSampler

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
      extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.WebSampler

public class WebSampler
extends Sampler

Sampler that retrieves statistics from the HTTP server.


Field Summary
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
context, logger
 
Constructor Summary
WebSampler(JmxContext context)
          Implementation of inherited method.
 
Method Summary
 java.lang.String getDefaultOn()
          Implementation of inherited abstract method.
 void init()
          Override of inherited method: will initialize all object name arrays.
protected  SampleData newSampleData()
          Implementation of inherited abstract method.
protected  SampleData poll(SampleData data)
          Implementation of inherited abstract method, will call all pollers of this class.
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
getDomain, getJmxUrl, getMBeanServerConnection, getName, getOn, getServer, queryON, releaseMbeanServerConnection, sample, setOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSampler

public WebSampler(JmxContext context)
Implementation of inherited method.

See Also:
Sampler#Sampler(String)
Method Detail

getDefaultOn

public java.lang.String getDefaultOn()
Implementation of inherited abstract method. Returns null since ServerSampler doesn't have one default object name.

Specified by:
getDefaultOn in class Sampler
Returns:
Default Object name filtering pattern for this sampler. If null, we'll consider that the Sampler doesn't have one default object name filter.
See Also:
Sampler.getDefaultOn()

init

public void init()
Override of inherited method: will initialize all object name arrays.

Overrides:
init in class Sampler

newSampleData

protected SampleData newSampleData()
Implementation of inherited abstract method.

Specified by:
newSampleData in class Sampler
Returns:
New sample data.
See Also:
Sampler.newSampleData()

poll

protected SampleData poll(SampleData data)
Implementation of inherited abstract method, will call all pollers of this class.

Specified by:
poll in class Sampler
Parameters:
data - Previous sample.
Returns:
Resulting data.
See Also:
Sampler.poll(SampleData), pollSessions(WebData), pollGlobalRequestProcessor(WebData), pollThreadPool(WebData)


Copyright © 2010 OW2 Consortium. All Rights Reserved.