| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private ScheduledFuture | |
| private final boolean | |
| private final ScheduledExecutorService | |
| private long | |
| private final StatisticSampler. |
| Access | Constructor and Description |
|---|---|
| public | StatisticSampler(long time, TimeUnit unit, ValueStatistic<T> statistic, SampleSink<Timestamped<T>> sink)
|
| public | StatisticSampler(ScheduledExecutorService executor, long time, TimeUnit unit, ValueStatistic<T> statistic, SampleSink<Timestamped<T>> sink)
|
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void |
| currentExecution | back to summary |
|---|---|
| private ScheduledFuture<?> currentExecution | |
| exclusiveExecutor | back to summary |
|---|---|
| private final boolean exclusiveExecutor | |
| executor | back to summary |
|---|---|
| private final ScheduledExecutorService executor | |
| period | back to summary |
|---|---|
| private long period | |
| task | back to summary |
|---|---|
| private final StatisticSampler. | |
| StatisticSampler | back to summary |
|---|---|
| public StatisticSampler(long time, TimeUnit unit, ValueStatistic<T> statistic, SampleSink<Timestamped<T>> sink) | |
| StatisticSampler | back to summary |
|---|---|
| public StatisticSampler(ScheduledExecutorService executor, long time, TimeUnit unit, ValueStatistic<T> statistic, SampleSink<Timestamped<T>> sink) | |
| setPeriod | back to summary |
|---|---|
| public synchronized void setPeriod(long time, TimeUnit unit) | |
| shutdown | back to summary |
|---|---|
| public synchronized void shutdown() throws InterruptedException | |
| start | back to summary |
|---|---|
| public synchronized void start() | |
| stop | back to summary |
|---|---|
| public synchronized void stop() | |
| Modifier and Type | Field and Description |
|---|---|
| private final T | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public long | |
| public String |
| sample | back to summary |
|---|---|
| private final T sample | |
| timestamp | back to summary |
|---|---|
| private final long timestamp | |
| Sample | back to summary |
|---|---|
| public Sample(long timestamp, T sample) | |
| getSample | back to summary |
|---|---|
| public T getSample() Implements org.
| |
| getTimestamp | back to summary |
|---|---|
| public long getTimestamp() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Thread | newThread(Runnable
a runnable to be executed by new thread instance r)Implements java. Thread to run the given runnable.
|
| SamplerThreadFactory | back to summary |
|---|---|
| pack-priv SamplerThreadFactory() | |
| newThread | back to summary |
|---|---|
| public Thread newThread(Runnable r) Implements java. Doc from java. Constructs a new unstarted | |
| Modifier and Type | Field and Description |
|---|---|
| private final SampleSink | |
| private final ValueStatistic |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| sink | back to summary |
|---|---|
| private final SampleSink<Timestamped<T>> sink | |
| statistic | back to summary |
|---|---|
| private final ValueStatistic<T> statistic | |
| SamplingTask | back to summary |
|---|---|
| pack-priv SamplingTask(ValueStatistic<T> statistic, SampleSink<Timestamped<T>> sink) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |