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

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

public class WebSampler
extends Sampler<WebData>

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  WebData newSampleData()
          Implementation of inherited abstract method.
protected  WebData poll(WebData 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
getMBeanServerConnection, getOn, getServerDomain, getServerName, 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<WebData>
See Also:
Sampler.getDefaultOn()

init

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

Overrides:
init in class Sampler<WebData>

newSampleData

protected WebData newSampleData()
Implementation of inherited abstract method.

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

poll

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

Specified by:
poll in class Sampler<WebData>
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.