| Modifier | Constructor and Description |
|---|---|
protected |
AdaptiveSampler(int target,
int reportPeriodSeconds) |
protected |
AdaptiveSampler(int target,
int reportPeriodSeconds,
boolean isSharedInstance) |
| Modifier and Type | Method and Description |
|---|---|
float |
calculatePriority(Transaction tx,
Granularity granularity)
Calculate priority given the current state of the sampler.
|
protected boolean |
computeSampled() |
java.lang.String |
getDescription()
Human-readable description of this sampler's name and important qualities.
|
int |
getTarget() |
SamplerType |
getType()
Get the type of this Sampler
|
boolean |
isShared() |
protected void |
setTarget(int newTarget) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidSamplingTarget, isValidTraceRatio, traceIdFromTransactionprotected AdaptiveSampler(int target,
int reportPeriodSeconds)
protected AdaptiveSampler(int target,
int reportPeriodSeconds,
boolean isSharedInstance)
public float calculatePriority(Transaction tx, Granularity granularity)
calculatePriority in interface Samplertx - the transaction to calculate the priority forpublic SamplerType getType()
Samplerpublic java.lang.String getDescription()
SamplergetDescription in interface Samplerpublic boolean isShared()
protected boolean computeSampled()
protected void setTarget(int newTarget)
public int getTarget()