Package com.arpnetworking.tsdcore.sinks
Class AggregationServerHttpSink
java.lang.Object
com.arpnetworking.tsdcore.sinks.BaseSink
com.arpnetworking.tsdcore.sinks.HttpPostSink
com.arpnetworking.tsdcore.sinks.AggregationServerHttpSink
- All Implemented Interfaces:
Sink
Publisher to send data to an upstream aggregation server over HTTP.
- Author:
- Ville Koskela (vkoskela at dropbox dot com)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Implementation of builder pattern for ${code AggregationServerHttpSink}. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Return the media type for this sink's http post payload.protected Collection<com.arpnetworking.tsdcore.sinks.HttpPostSink.SerializedDatum>
serialize
(PeriodicData periodicData) Serialize thePeriodicData
instances for posting.Generate a Steno log compatible representation.Methods inherited from class com.arpnetworking.tsdcore.sinks.HttpPostSink
close, createRequest, createRequests, getAysncHttpClientUri, getUri, recordAggregateData
Methods inherited from class com.arpnetworking.tsdcore.sinks.BaseSink
getMetricSafeName, getName, toString
-
Method Details
-
toLogValue
Description copied from class:BaseSink
Generate a Steno log compatible representation.- Overrides:
toLogValue
in classHttpPostSink
- Returns:
- Steno log compatible representation.
-
getContentType
Description copied from class:HttpPostSink
Return the media type for this sink's http post payload.- Overrides:
getContentType
in classHttpPostSink
- Returns:
- the media type for this sink's http post payload
-
serialize
protected Collection<com.arpnetworking.tsdcore.sinks.HttpPostSink.SerializedDatum> serialize(PeriodicData periodicData) Description copied from class:HttpPostSink
Serialize thePeriodicData
instances for posting.- Specified by:
serialize
in classHttpPostSink
- Parameters:
periodicData
- ThePeriodicData
to be serialized.- Returns:
- The serialized representation of
PeriodicData
.
-