public class TelnetControl extends AbstractService
syncObject| Constructor and Description |
|---|
TelnetControl()
Creates a new telnet control.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(Command command)
Adds the given command to this control.
|
static void |
main(String... arguments)
VM entry point for testing.
|
protected void |
serviceRun()
Empty implementation.
|
protected void |
serviceStop()
Empty implementation.
|
void |
setListenPort(int listenPort)
Sets the port to listen on.
|
addServiceListener, destroy, getAction, getName, getServiceAttribute, getState, getStateReason, hasServiceAttribute, init, notifySyncObject, removeServiceListener, run, serviceDestroy, serviceInit, serviceStart, setAction, setServiceAttribute, setState, setState, setStateReason, setThreadFactory, shouldStop, sleep, sleep, start, stop, toStringpublic void setListenPort(int listenPort)
listenPort - The port to listen onpublic void addCommand(Command command)
command - The command to addprotected void serviceRun()
AbstractService.sleep() until
AbstractService.stop() is called.serviceRun in class AbstractServiceAbstractService.run()protected void serviceStop()
serviceStop in class AbstractServiceAbstractService.stop()public static void main(String... arguments) throws InterruptedException
arguments - Command-line argumentsInterruptedException - if Thread.sleep(long) is interruptedCopyright © 2026. All rights reserved.