public class RiemannBatchClient extends Object implements IRiemannClient
| Modifier and Type | Class and Description |
|---|---|
class |
RiemannBatchClient.Write |
| Modifier and Type | Field and Description |
|---|---|
int |
batchSize |
LinkedTransferQueue<RiemannBatchClient.Write> |
buffer |
AtomicInteger |
bufferSize |
IRiemannClient |
client |
AtomicLong |
readPromiseTimeout |
| Constructor and Description |
|---|
RiemannBatchClient(IRiemannClient client) |
RiemannBatchClient(IRiemannClient client,
int batchSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect() |
EventDSL |
event() |
void |
flush() |
int |
flush2() |
boolean |
isConnected() |
IPromise<List<Proto.Event>> |
query(String q) |
void |
queue(RiemannBatchClient.Write write) |
void |
reconnect() |
IPromise<Proto.Msg> |
sendEvent(Proto.Event event) |
IPromise<Proto.Msg> |
sendEvents(List<Proto.Event> events) |
IPromise<Proto.Msg> |
sendEvents(Proto.Event... events) |
IPromise<Proto.Msg> |
sendException(String service,
Throwable t) |
IPromise<Proto.Msg> |
sendMessage(Proto.Msg message) |
Transport |
transport() |
public final int batchSize
public final AtomicInteger bufferSize
public final LinkedTransferQueue<RiemannBatchClient.Write> buffer
public final IRiemannClient client
public final AtomicLong readPromiseTimeout
public RiemannBatchClient(IRiemannClient client) throws UnsupportedJVMException
UnsupportedJVMExceptionpublic RiemannBatchClient(IRiemannClient client, int batchSize) throws UnsupportedJVMException
UnsupportedJVMExceptionpublic IPromise<Proto.Msg> sendMessage(Proto.Msg message)
sendMessage in interface AsynchronousTransportpublic IPromise<Proto.Msg> sendEvents(List<Proto.Event> events)
sendEvents in interface IRiemannClientpublic IPromise<Proto.Msg> sendEvents(Proto.Event... events)
sendEvents in interface IRiemannClientpublic IPromise<Proto.Msg> sendEvent(Proto.Event event)
sendEvent in interface IRiemannClientpublic IPromise<Proto.Msg> sendException(String service, Throwable t)
sendException in interface IRiemannClientpublic IPromise<List<Proto.Event>> query(String q)
query in interface IRiemannClientpublic EventDSL event()
event in interface IRiemannClientpublic void queue(RiemannBatchClient.Write write)
public int flush2()
public boolean isConnected()
isConnected in interface Transportpublic void connect()
throws IOException
connect in interface TransportIOExceptionpublic void close()
close in interface Transportclose in interface AutoCloseablepublic void reconnect()
throws IOException
reconnect in interface TransportIOExceptionCopyright © 2015. All rights reserved.