public class ProtobufAlarmServer extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ProtobufAlarmServer(int tcpPort)
Creates a new instance which listens on the specified TCP port.
|
ProtobufAlarmServer(int tcpPort,
boolean local) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down the thread pool.
|
void |
run()
Opens a ServerSocket on the specified port, and accepts incoming connections,
processing them in a thread pool.
|
void |
setAlarmSender(AlarmSender value)
Specified the AlarmSender to forward the alarms to.
|
void |
setMaxThreads(int value)
Specifies the maximum number of threads that the internal thread pool
should allow.
|
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
public ProtobufAlarmServer(int tcpPort)
public ProtobufAlarmServer(int tcpPort, boolean local)
public void setAlarmSender(AlarmSender value)
public void setMaxThreads(int value)
public void run()
@PreDestroy public void close()