Package io.riemann.riemann.client
Class SimpleUdpTransport
java.lang.Object
io.riemann.riemann.client.SimpleUdpTransport
- All Implemented Interfaces:
SynchronousTransport,Transport,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleUdpTransport(int port) SimpleUdpTransport(String host) SimpleUdpTransport(String host, int port) SimpleUdpTransport(String remoteHost, int remotePort, String localHost, int localPort) SimpleUdpTransport(String remoteHost, String localHost) SimpleUdpTransport(InetSocketAddress remoteAddress) SimpleUdpTransport(InetSocketAddress remoteAddress, InetSocketAddress localAddress) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconnect()voidflush()booleanvoidsendMessage(Proto.Msg msg)
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
-
Constructor Details
-
SimpleUdpTransport
-
SimpleUdpTransport
-
SimpleUdpTransport
- Throws:
IOException
-
SimpleUdpTransport
public SimpleUdpTransport(String remoteHost, int remotePort, String localHost, int localPort) throws IOException - Throws:
IOException
-
SimpleUdpTransport
- Throws:
IOException
-
SimpleUdpTransport
- Throws:
IOException
-
SimpleUdpTransport
- Throws:
IOException
-
-
Method Details
-
sendMessage
- Specified by:
sendMessagein interfaceSynchronousTransport- Throws:
IOException
-
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfaceTransport
-
connect
- Specified by:
connectin interfaceTransport- Throws:
IOException
-
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
-
transport
-