public class StdOutChannel extends java.lang.Object implements TelemetryChannel
| Constructor and Description |
|---|
StdOutChannel() |
StdOutChannel(java.util.Map<java.lang.String,java.lang.String> namesAndValues) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Flushes the data that the channel might have internally.
|
boolean |
isDeveloperMode()
Gets value indicating whether this channel is in developer mode.
|
void |
send(Telemetry item)
Sends a Telemetry instance through the channel.
|
void |
setDeveloperMode(boolean value)
Sets value indicating whether this channel is in developer mode.
|
void |
setSampler(TelemetrySampler telemetrySampler)
Sets an optional Sampler that can sample out telemetries
|
void |
stop(long timeout,
java.util.concurrent.TimeUnit timeUnit)
Stops on going work
|
public StdOutChannel()
public StdOutChannel(java.util.Map<java.lang.String,java.lang.String> namesAndValues)
public boolean isDeveloperMode()
TelemetryChannelisDeveloperMode in interface TelemetryChannelpublic void setDeveloperMode(boolean value)
TelemetryChannelsetDeveloperMode in interface TelemetryChannelvalue - True for applying develoer modepublic void send(Telemetry item)
TelemetryChannelsend in interface TelemetryChannelitem - The Telemetry item to send.public void stop(long timeout,
java.util.concurrent.TimeUnit timeUnit)
TelemetryChannelstop in interface TelemetryChanneltimeout - Time to try and stoptimeUnit - The units of the 'timeout' parameterpublic void flush()
TelemetryChannelflush in interface TelemetryChannelpublic void setSampler(TelemetrySampler telemetrySampler)
TelemetryChannelsetSampler in interface TelemetryChanneltelemetrySampler - - The sampler