| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static int | |
| private final SingletonInstanceServerSocket. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final InetAddress | |
| public final String | |
| public final int | |
| protected boolean | |
| protected boolean |
| fullName | back to summary |
|---|---|
| private final String fullName | |
| serverInstanceCount | back to summary |
|---|---|
| private static int serverInstanceCount | |
| singletonServer | back to summary |
|---|---|
| private final SingletonInstanceServerSocket. | |
| SingletonInstanceServerSocket | back to summary |
|---|---|
| public SingletonInstanceServerSocket(final long poll_ms, final int portNumber) | |
| getLocalInetAddress | back to summary |
|---|---|
| public final InetAddress getLocalInetAddress() | |
| getName | back to summary |
|---|---|
| public final String getName() Implements abstract com.
| |
| getPortNumber | back to summary |
|---|---|
| public final int getPortNumber() | |
| tryLockImpl | back to summary |
|---|---|
| protected boolean tryLockImpl() Implements abstract com.
| |
| unlockImpl | back to summary |
|---|---|
| protected boolean unlockImpl() Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private final InetAddress | |
| private final int | |
| private ServerSocket | |
| private Thread | |
| private volatile boolean | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Socket | |
| public final InetAddress | |
| public final int | |
| public final boolean | |
| public final boolean | |
| public final void | |
| public void | |
| public final boolean | |
| private final boolean | |
| public final boolean |
| alive | back to summary |
|---|---|
| private volatile boolean alive | |
| localInetAddress | back to summary |
|---|---|
| private final InetAddress localInetAddress | |
| portNumber | back to summary |
|---|---|
| private final int portNumber | |
| serverSocket | back to summary |
|---|---|
| private ServerSocket serverSocket | |
| serverThread | back to summary |
|---|---|
| private Thread serverThread | |
| shallQuit | back to summary |
|---|---|
| private volatile boolean shallQuit | |
| syncOnStartStop | back to summary |
|---|---|
| private final Object syncOnStartStop | |
| Server | back to summary |
|---|---|
| public Server(final InetAddress localInetAddress, final int portNumber) | |
| connect | back to summary |
|---|---|
| public final Socket connect() | |
| getLocalInetAddress | back to summary |
|---|---|
| public final InetAddress getLocalInetAddress() | |
| getPortNumber | back to summary |
|---|---|
| public final int getPortNumber() | |
| isBound | back to summary |
|---|---|
| public final boolean isBound() | |
| isRunning | back to summary |
|---|---|
| public final boolean isRunning() | |
| kill | back to summary |
|---|---|
| public final void kill() Brutally kill server thread and close socket regardless. This is out last chance for JVM shutdown.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| shutdown | back to summary |
|---|---|
| public final boolean shutdown() | |
| shutdown | back to summary |
|---|---|
| private final boolean shutdown(final boolean wait) | |
| start | back to summary |
|---|---|
| public final boolean start() | |