public class BucketingService extends SimpleProcessingService
| Modifier and Type | Class and Description |
|---|---|
static interface |
BucketingService.MessageBridge |
static class |
BucketingService.Period |
static class |
BucketingService.StdDataCombiner |
static class |
BucketingService.StdMsgBridge |
| Modifier and Type | Field and Description |
|---|---|
static String |
kCount |
static String |
kHost |
static String |
kMetricName |
static String |
kTimestamp |
static String |
kValue |
| Constructor and Description |
|---|
BucketingService(BucketingService.Period bucketSize,
BucketingService.MessageBridge bridge,
JsonObjectStreamSource reportTo) |
BucketingService(BucketingService.Period bucketSize,
BucketingService.StdDataCombiner type,
JsonObjectStreamSource reportTo) |
BucketingService(BucketingService.Period bucketSize,
JsonObjectStreamSource reportTo) |
BucketingService(ConfigLoadContext sc,
org.json.JSONObject config) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MessageProcessingContext context) |
void |
close() |
List<Message> |
getBuckets() |
static long |
getBucketTimestamp(Date time,
BucketingService.Period p) |
void |
onSourceEof()
Called when the source associated with this service instance reaches EOF
|
protected void |
onStopRequested() |
isRunning, onStart, startBackgroundProcessing, stopBackgroundProcessingpublic static final String kHost
public static final String kMetricName
public static final String kTimestamp
public static final String kValue
public static final String kCount
public BucketingService(ConfigLoadContext sc, org.json.JSONObject config)
public BucketingService(BucketingService.Period bucketSize, JsonObjectStreamSource reportTo)
public BucketingService(BucketingService.Period bucketSize, BucketingService.MessageBridge bridge, JsonObjectStreamSource reportTo)
public BucketingService(BucketingService.Period bucketSize, BucketingService.StdDataCombiner type, JsonObjectStreamSource reportTo)
public static long getBucketTimestamp(Date time, BucketingService.Period p)
protected void onStopRequested()
onStopRequested in class SimpleProcessingServicepublic void close()
public void add(MessageProcessingContext context)
public void onSourceEof()
ProcessingServiceCopyright © 2022 continual.io. All rights reserved.