public class RiemannClient extends Object implements IRiemannClient
| Modifier and Type | Field and Description |
|---|---|
RiemannScheduler |
scheduler |
AsynchronousTransport |
transport |
static MsgValidator |
validate |
| Constructor and Description |
|---|
RiemannClient(AsynchronousTransport t) |
RiemannClient(SynchronousTransport t) |
public static final MsgValidator validate
public volatile RiemannScheduler scheduler
public final AsynchronousTransport transport
public RiemannClient(SynchronousTransport t)
public RiemannClient(AsynchronousTransport t)
public static IPromise<Proto.Msg> sendException(IRiemannClient client, String service, Throwable t)
public static RiemannClient wrap(SynchronousTransport t)
public static RiemannClient wrap(AsynchronousTransport t)
public static RiemannClient tcp(InetSocketAddress address) throws IOException
IOExceptionpublic static RiemannClient tcp(String host, int port) throws IOException
IOExceptionpublic static RiemannClient tcp(String host) throws IOException
IOExceptionpublic static RiemannClient tcp(int port) throws IOException
IOExceptionpublic static RiemannClient udp(InetSocketAddress address) throws IOException
IOExceptionpublic static RiemannClient udp(String host, int port) throws IOException
IOExceptionpublic static RiemannClient udp(String host) throws IOException
IOExceptionpublic static RiemannClient udp(int port) throws IOException
IOExceptionpublic EventDSL event()
event in interface IRiemannClientpublic IPromise<Proto.Msg> sendMessage(Proto.Msg m)
sendMessage in interface AsynchronousTransportpublic IPromise<Proto.Msg> sendEvent(Proto.Event event)
sendEvent in interface IRiemannClientpublic IPromise<Proto.Msg> sendEvents(Proto.Event... events)
sendEvents in interface IRiemannClientpublic IPromise<Proto.Msg> sendEvents(List<Proto.Event> events)
sendEvents 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 void connect()
throws IOException
connect in interface TransportIOExceptionpublic boolean isConnected()
isConnected in interface Transportpublic void close()
close in interface Transportclose in interface AutoCloseablepublic void reconnect()
throws IOException
reconnect in interface TransportIOExceptionpublic void flush()
throws IOException
flush in interface TransportIOExceptionpublic RiemannScheduler scheduler()
Copyright © 2015. All rights reserved.