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
protected  org.ow2.util.log.Log logger
           
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
context
 
Constructor Summary
WebSampler(SamplerContext context)
          Implementation of inherited method.
 
Method Summary
 java.lang.String getDefaultOnPattern()
          Implementation of inherited abstract method.
 java.lang.String getGRP_ON()
           
 java.lang.String getMANAGER_ON()
           
 javax.management.ObjectName getOnWebStats()
           
 java.lang.String getTP_ON()
           
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.
 void setOnWebStats(javax.management.ObjectName onWebStats)
           
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
getDomain, getJmxUrl, getMBeanServerConnection, getName, getOnPattern, getServer, isHasFailed, queryON, releaseMbeanServerConnection, sample, setHasFailed, setOnPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.ow2.util.log.Log logger
Constructor Detail

WebSampler

public WebSampler(SamplerContext context)
Implementation of inherited method.

See Also:
Sampler#Sampler(String)
Method Detail

getGRP_ON

public java.lang.String getGRP_ON()

getMANAGER_ON

public java.lang.String getMANAGER_ON()

getTP_ON

public java.lang.String getTP_ON()

getDefaultOnPattern

public java.lang.String getDefaultOnPattern()
Implementation of inherited abstract method. Choose one between the polled MBeans: "*:type=GlobalRequestProcessor,*", "*:type=Manager,*", "*:type=ThreadPool,*"

Specified by:
getDefaultOnPattern 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.

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)

getOnWebStats

public javax.management.ObjectName getOnWebStats()

setOnWebStats

public void setOnWebStats(javax.management.ObjectName onWebStats)


Copyright © 2010 OW2 Consortium. All Rights Reserved.