@Deprecated public class CommunicationThread extends Thread
Not used anymore. Can be safely removed. The same functionality is implemented in the Communication
class
Class used for creating one communication thread in the testing framework. The two communicating sides are the agent and the testing framework.
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
(package private) byte[] |
buffer
Deprecated.
|
private static String |
BYE
Deprecated.
|
private DataInputStream |
input
Deprecated.
|
(package private) StringBuilder |
outMessageBuffer
Deprecated.
|
private DataOutputStream |
output
Deprecated.
|
private Parser |
parser
Deprecated.
|
(package private) Integer |
port
Deprecated.
|
private static boolean |
restartRequested
Deprecated.
|
(package private) String |
serverIp
Deprecated.
|
(package private) Socket |
socket
Deprecated.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
CommunicationThread()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addToMessage(String message)
Deprecated.
|
private void |
handshake()
Deprecated.
|
static boolean |
isRestartRequested()
Deprecated.
|
private String |
receive()
Deprecated.
|
private void |
registerSayingByeOnExit()
Deprecated.
|
static void |
requestRestart()
Deprecated.
|
void |
run()
Deprecated.
|
private static void |
setRequestProcessed()
Deprecated.
|
private void |
transmit(String what)
Deprecated.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private static final String BYE
byte[] buffer
Socket socket
String serverIp
Integer port
StringBuilder outMessageBuffer
private DataInputStream input
private DataOutputStream output
private Parser parser
private static boolean restartRequested
public static boolean isRestartRequested()
public static void requestRestart()
private static void setRequestProcessed()
public void run()
private void registerSayingByeOnExit()
private void handshake() throws IOException
IOException
public void addToMessage(String message)
private void transmit(String what) throws IOException
IOException
private String receive() throws IOException
IOException