Package com.wavefront.agent.handlers
Class InternalProxyWavefrontClient
- java.lang.Object
-
- com.wavefront.agent.handlers.InternalProxyWavefrontClient
-
- All Implemented Interfaces:
com.wavefront.sdk.common.BufferFlusher
,com.wavefront.sdk.common.WavefrontSender
,com.wavefront.sdk.entities.histograms.WavefrontHistogramSender
,com.wavefront.sdk.entities.metrics.WavefrontMetricSender
,com.wavefront.sdk.entities.tracing.WavefrontTracingSpanSender
,Closeable
,AutoCloseable
public class InternalProxyWavefrontClient extends Object implements com.wavefront.sdk.common.WavefrontSender
-
-
Constructor Summary
Constructors Constructor Description InternalProxyWavefrontClient(ReportableEntityHandlerFactory handlerFactory)
InternalProxyWavefrontClient(ReportableEntityHandlerFactory handlerFactory1, String handle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
int
getFailureCount()
void
sendDistribution(String name, List<com.wavefront.sdk.common.Pair<Double,Integer>> centroids, Set<com.wavefront.sdk.entities.histograms.HistogramGranularity> histogramGranularities, Long timestamp, String source, Map<String,String> tags)
void
sendMetric(String name, double value, Long timestamp, String source, Map<String,String> tags)
void
sendSpan(String name, long startMillis, long durationMillis, String source, UUID traceId, UUID spanId, List<UUID> parents, List<UUID> followsFrom, List<com.wavefront.sdk.common.Pair<String,String>> tags, List<com.wavefront.sdk.entities.tracing.SpanLog> spanLogs)
-
-
-
Constructor Detail
-
InternalProxyWavefrontClient
public InternalProxyWavefrontClient(ReportableEntityHandlerFactory handlerFactory)
-
InternalProxyWavefrontClient
public InternalProxyWavefrontClient(ReportableEntityHandlerFactory handlerFactory1, String handle)
-
-
Method Detail
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfacecom.wavefront.sdk.common.BufferFlusher
- Throws:
IOException
-
getFailureCount
public int getFailureCount()
- Specified by:
getFailureCount
in interfacecom.wavefront.sdk.common.BufferFlusher
-
sendDistribution
public void sendDistribution(String name, List<com.wavefront.sdk.common.Pair<Double,Integer>> centroids, Set<com.wavefront.sdk.entities.histograms.HistogramGranularity> histogramGranularities, Long timestamp, String source, Map<String,String> tags) throws IOException
- Specified by:
sendDistribution
in interfacecom.wavefront.sdk.entities.histograms.WavefrontHistogramSender
- Throws:
IOException
-
sendMetric
public void sendMetric(String name, double value, Long timestamp, String source, Map<String,String> tags) throws IOException
- Specified by:
sendMetric
in interfacecom.wavefront.sdk.entities.metrics.WavefrontMetricSender
- Throws:
IOException
-
sendSpan
public void sendSpan(String name, long startMillis, long durationMillis, String source, UUID traceId, UUID spanId, List<UUID> parents, List<UUID> followsFrom, List<com.wavefront.sdk.common.Pair<String,String>> tags, @Nullable List<com.wavefront.sdk.entities.tracing.SpanLog> spanLogs) throws IOException
- Specified by:
sendSpan
in interfacecom.wavefront.sdk.entities.tracing.WavefrontTracingSpanSender
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-