|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
public abstract class Sampler
Base class for all sampler classes.
| Field Summary | |
|---|---|
protected SamplerContext |
context
context of the sampler |
protected org.ow2.util.log.Log |
logger
Logger. |
| Constructor Summary | |
|---|---|
Sampler(SamplerContext context)
Creates the Sampler using a JMX URL. |
|
| Method Summary | |
|---|---|
String |
getCmdId()
|
protected abstract String |
getDefaultOnPattern()
|
String |
getDomain()
|
String |
getJmxUrl()
|
protected MBeanServerConnection |
getMBeanServerConnection()
|
String |
getName()
|
protected String |
getOnPattern()
|
String |
getServer()
|
boolean |
isHasFailed()
|
protected abstract SampleData |
newSampleData()
|
protected abstract SampleData |
poll(SampleData prev)
Poll based on a previous sample. |
protected ObjectName[] |
queryON(String onProto)
Gets the list of object names that match a given object name prototype, and set the OnjectName list in the SamplerContext (onames). |
protected void |
releaseMbeanServerConnection()
|
SampleData |
sample(SampleData previous)
Samples data based on a previous sample. |
void |
setHasFailed(boolean hasFailed)
|
void |
setOnPattern(String onPattern)
Set pattern, then set the OnjectName list in the SamplerContext (onames). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.ow2.util.log.Log logger
protected SamplerContext context
| Constructor Detail |
|---|
public Sampler(SamplerContext context)
urlString - JMX URL.| Method Detail |
|---|
protected final MBeanServerConnection getMBeanServerConnection()
protected void releaseMbeanServerConnection()
protected final ObjectName[] queryON(String onProto)
throws Exception
onProto - Object name filtering pattern to use.
Exceptionprotected abstract String getDefaultOnPattern()
protected String getOnPattern()
public void setOnPattern(String onPattern)
onProto - Object name filtering pattern to set.public final SampleData sample(SampleData previous)
previous - Previous sample.
SampleData.compute(SampleData)public String getName()
public String getJmxUrl()
public String getServer()
public String getDomain()
public String getCmdId()
protected abstract SampleData newSampleData()
protected abstract SampleData poll(SampleData prev)
prev - Previous sample.
public boolean isHasFailed()
public void setHasFailed(boolean hasFailed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||