java.lang.Object
org.apache.arrow.tools.EchoServer
Simple server that echoes back data received.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Handler for each client connection to the server. -
Constructor Summary
ConstructorDescriptionEchoServer
(int port) Constructs a new instance that binds to the given port. -
Method Summary
-
Constructor Details
-
EchoServer
Constructs a new instance that binds to the given port.- Throws:
IOException
-
-
Method Details
-
main
Main method to run the server, the first argument is an optional port number.- Throws:
Exception
-
port
public int port() -
run
Starts the main server event loop.- Throws:
IOException
-
close
- Throws:
IOException
-