Package org.apache.avro.ipc
Class SocketServer
java.lang.Object
java.lang.Thread
org.apache.avro.ipc.SocketServer
- Direct Known Subclasses:
SaslSocketServer
Deprecated.
A socket-based server implementation. This uses a simple, non-standard wire
protocol and is not intended for production services.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.Stop this server.int
getPort()
Deprecated.The port this server runs on.protected Transceiver
getTransceiver
(SocketChannel channel) Deprecated.Creates an appropriateTransceiver
for this server.static void
Deprecated.void
run()
Deprecated.Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
SocketServer
Deprecated.- Throws:
IOException
-
-
Method Details
-
getPort
public int getPort()Deprecated.Description copied from interface:Server
The port this server runs on. -
run
public void run()Deprecated. -
close
public void close()Deprecated.Description copied from interface:Server
Stop this server. -
getTransceiver
Deprecated.Creates an appropriateTransceiver
for this server. Returns aSocketTransceiver
by default.- Throws:
IOException
-
main
Deprecated.- Throws:
Exception
-
SaslSocketServer
instead.