java.lang.Object
org.apache.arrow.tools.EchoServer
Simple server that echoes back data received.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classHandler for each client connection to the server.
- 
Constructor SummaryConstructorsConstructorDescriptionEchoServer(int port) Constructs a new instance that binds to the given port.
- 
Method Summary
- 
Constructor Details- 
EchoServerConstructs a new instance that binds to the given port.- Throws:
- IOException
 
 
- 
- 
Method Details- 
mainMain method to run the server, the first argument is an optional port number.- Throws:
- Exception
 
- 
portpublic int port()
- 
runStarts the main server event loop.- Throws:
- IOException
 
- 
close- Throws:
- IOException
 
 
-