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
private  javax.management.ObjectName[] onGRP
          Global request processors.
private  javax.management.ObjectName[] onSessions
          Session managers.
private  javax.management.ObjectName[] onThreadPool
          Thread pools.
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
oNames
 
Constructor Summary
WebSampler(java.lang.String urlString)
          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.
private  void pollGlobalRequestProcessor(WebData data)
          Polls global request processor provider for data.
private  void pollSessions(WebData data)
          Polls session provider for data.
private  void pollThreadPool(WebData data)
          Polls thread pools for data.
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
getDomain, getMBeanServerConnection, getName, getOn, getServer, process, queryON, sample, setOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

onGRP

private javax.management.ObjectName[] onGRP
Global request processors.


onSessions

private javax.management.ObjectName[] onSessions
Session managers.


onThreadPool

private javax.management.ObjectName[] onThreadPool
Thread pools.

Constructor Detail

WebSampler

public WebSampler(java.lang.String urlString)
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)

pollSessions

private void pollSessions(WebData data)
Polls session provider for data.

Parameters:
data - WebData to add polled information to.

pollGlobalRequestProcessor

private void pollGlobalRequestProcessor(WebData data)
Polls global request processor provider for data.

Parameters:
data - WebData to add polled information to.

pollThreadPool

private void pollThreadPool(WebData data)
Polls thread pools for data.

Parameters:
data - WebData to add polled information to.