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 remoteAddress) throws IOException
IOExceptionpublic static RiemannClient tcp(InetSocketAddress remoteAddress, InetSocketAddress localAddress) throws IOException
IOExceptionpublic static RiemannClient tcp(String remoteHost, int remotePort) throws IOException
IOExceptionpublic static RiemannClient tcp(String remoteHost, int remotePort, String localHost, int localPort) throws IOException
IOExceptionpublic static RiemannClient tcp(String remoteHost) throws IOException
IOExceptionpublic static RiemannClient tcp(String remoteHost, String localHost) throws IOException
IOExceptionpublic static RiemannClient tcp(int remotePort) throws IOException
IOExceptionpublic static RiemannClient udp(InetSocketAddress remoteAddress) throws IOException
IOExceptionpublic static RiemannClient udp(InetSocketAddress remoteAddress, InetSocketAddress localAddress) throws IOException
IOExceptionpublic static RiemannClient udp(String remoteHost, int remotePort) throws IOException
IOExceptionpublic static RiemannClient udp(String remoteHost, int remotePort, String localHost, int localPort) throws IOException
IOExceptionpublic static RiemannClient udp(String remoteHost) throws IOException
IOExceptionpublic static RiemannClient udp(String remoteHost, String localHost) throws IOException
IOExceptionpublic static RiemannClient udp(int remotePort) 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 © 2018. All rights reserved.