Package com.exedio.cope.sampler
Class Sampler
- java.lang.Object
-
- com.exedio.cope.sampler.Sampler
-
public class Sampler extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
check()
Deprecated.Useconnect(String)
for connecting AND checking insteadConnectToken
connect(String tokenName)
List<Query<List<Object>>>
differentiate()
Deprecated.This method is no longer needed.List<Query<List<Object>>>
differentiate(Date from, Date until)
Deprecated.This method is no longer needed.Model
getModel()
long
getTransactionDuration()
Deprecated.UseSamplerProperties.sample(Sampler)
instead.static Properties.Source
maskConnectSource(Properties.Source original)
Deprecated.UseSamplerProperties
insteadvoid
purge(int days, JobContext ctx)
void
purge(Date limit, JobContext ctx)
void
sample()
Deprecated.UseSamplerProperties.sample(Sampler)
instead.String
toString()
-
-
-
Constructor Detail
-
Sampler
public Sampler(Model sampledModel)
-
-
Method Detail
-
getModel
public final Model getModel()
-
maskConnectSource
@Deprecated public static final Properties.Source maskConnectSource(Properties.Source original)
Deprecated.UseSamplerProperties
instead
-
connect
public final ConnectToken connect(String tokenName)
-
check
@Deprecated public final void check()
Deprecated.Useconnect(String)
for connecting AND checking instead
-
purge
public final void purge(int days, JobContext ctx)
-
purge
public final void purge(Date limit, JobContext ctx)
-
sample
@Deprecated public final void sample()
Deprecated.UseSamplerProperties.sample(Sampler)
instead.
-
getTransactionDuration
@Deprecated public long getTransactionDuration()
Deprecated.UseSamplerProperties.sample(Sampler)
instead.Return the minimum duration (in milliseconds) for a transaction to be recorded by the sampler. This default implementation returns 10 seconds.
-
differentiate
@Deprecated public final List<Query<List<Object>>> differentiate()
Deprecated.This method is no longer needed. Always returns an empty list.
-
-