Package io.riemann.riemann.client
Class RiemannClient
java.lang.Object
io.riemann.riemann.client.RiemannClient
- All Implemented Interfaces:
AsynchronousTransport,IRiemannClient,Transport,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconnect()event()voidflush()booleanvoidsendEvent(Proto.Event event) sendEvents(Proto.Event... events) sendEvents(List<Proto.Event> events) sendException(IRiemannClient client, String service, Throwable t) sendException(String service, Throwable t) static RiemannClienttcp(int remotePort) static RiemannClientstatic RiemannClientstatic RiemannClientstatic RiemannClientstatic RiemannClienttcp(InetSocketAddress remoteAddress) static RiemannClienttcp(InetSocketAddress remoteAddress, InetSocketAddress localAddress) static RiemannClientudp(int remotePort) static RiemannClientstatic RiemannClientstatic RiemannClientstatic RiemannClientstatic RiemannClientudp(InetSocketAddress remoteAddress) static RiemannClientudp(InetSocketAddress remoteAddress, InetSocketAddress localAddress) static RiemannClientstatic RiemannClient
-
Field Details
-
validate
-
scheduler
-
transport
-
-
Constructor Details
-
RiemannClient
-
RiemannClient
-
-
Method Details
-
sendException
-
wrap
-
wrap
-
tcp
- Throws:
IOException
-
tcp
public static RiemannClient tcp(InetSocketAddress remoteAddress, InetSocketAddress localAddress) throws IOException - Throws:
IOException
-
tcp
- Throws:
IOException
-
tcp
public static RiemannClient tcp(String remoteHost, int remotePort, String localHost, int localPort) throws IOException - Throws:
IOException
-
tcp
- Throws:
IOException
-
tcp
- Throws:
IOException
-
tcp
- Throws:
IOException
-
udp
- Throws:
IOException
-
udp
public static RiemannClient udp(InetSocketAddress remoteAddress, InetSocketAddress localAddress) throws IOException - Throws:
IOException
-
udp
- Throws:
IOException
-
udp
public static RiemannClient udp(String remoteHost, int remotePort, String localHost, int localPort) throws IOException - Throws:
IOException
-
udp
- Throws:
IOException
-
udp
- Throws:
IOException
-
udp
- Throws:
IOException
-
event
- Specified by:
eventin interfaceIRiemannClient
-
sendMessage
- Specified by:
sendMessagein interfaceAsynchronousTransport
-
sendEvent
- Specified by:
sendEventin interfaceIRiemannClient
-
sendEvents
- Specified by:
sendEventsin interfaceIRiemannClient
-
sendEvents
- Specified by:
sendEventsin interfaceIRiemannClient
-
sendException
- Specified by:
sendExceptionin interfaceIRiemannClient
-
query
- Specified by:
queryin interfaceIRiemannClient
-
transport
-
connect
- Specified by:
connectin interfaceTransport- Throws:
IOException
-
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfaceTransport
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceTransport
-
reconnect
- Specified by:
reconnectin interfaceTransport- Throws:
IOException
-
flush
- Specified by:
flushin interfaceTransport- Throws:
IOException
-
scheduler
-