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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.Stop this server.intgetPort()Deprecated.The port this server runs on.protected TransceivergetTransceiver(SocketChannel channel) Deprecated.Creates an appropriateTransceiverfor this server.static voidDeprecated.voidrun()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:ServerThe port this server runs on. -
run
public void run()Deprecated. -
close
public void close()Deprecated.Description copied from interface:ServerStop this server. -
getTransceiver
Deprecated.Creates an appropriateTransceiverfor this server. Returns aSocketTransceiverby default.- Throws:
IOException
-
main
Deprecated.- Throws:
Exception
-
SaslSocketServerinstead.