| Modifier | Constructor and Description |
|---|---|
protected |
AdaptiveSampler(int target,
int reportPeriodSeconds) |
| Modifier and Type | Method and Description |
|---|---|
float |
calculatePriority(Transaction tx)
Calculate priority given the current state of the sampler.
|
protected boolean |
computeSampled() |
static AdaptiveSampler |
getSharedInstance()
Factory method for getting a shared instance of the adaptive sampler.
|
int |
getTarget() |
java.lang.String |
getType()
Get the description/name of this Sampler
|
static void |
setSharedTarget(int newTarget)
Updates the SHARED_SAMPLER_INSTANCE to use a new target.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidTraceRatio, traceIdFromTransactionpublic static AdaptiveSampler getSharedInstance()
public static void setSharedTarget(int newTarget)
newTarget - the new target value the shared sampler instance should usepublic float calculatePriority(Transaction tx)
calculatePriority in interface Samplertx - the transaction to calculate the priority forpublic java.lang.String getType()
Samplerprotected boolean computeSampled()
public int getTarget()