|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cuny.cat.server.TelnetConsole
public class TelnetConsole
A console that enables to control the game through telnet.
Parameters
base.port int (default: 9091) |
(the port number the telnet console of the cat game server will be listening to) |
base.code string (default: cat) |
(the security code required to log in through telnet to control the game) |
Default Base
telnet |
Nested Class Summary | |
---|---|
static class |
TelnetConsole.ClockStatus
records the status of the GameClock . |
static class |
TelnetConsole.TelnetConnectionAdaptor
processes a TelnetConnection from a remote user
that monitors the game. |
Field Summary | |
---|---|
protected java.util.Set<TelnetConsole.TelnetConnectionAdaptor> |
adaptors
|
protected TelnetConsole.ClockStatus |
clockStatus
|
protected java.lang.String |
code
|
static java.lang.String |
DEFAULT_CODE
|
static int |
DEFAULT_PORT
|
static java.lang.String |
P_CODE
|
static java.lang.String |
P_DEF_BASE
|
static java.lang.String |
P_PORT
|
protected int |
port
|
protected TelnetServerConnector |
serverConnector
|
protected boolean |
stopAcceptingConnection
|
protected java.lang.Thread |
thread
|
Constructor Summary | |
---|---|
TelnetConsole()
|
Method Summary | |
---|---|
void |
dispose(TelnetConsole.TelnetConnectionAdaptor adaptor)
disposes the TelnetConnection the adaptor works
for. |
void |
eventOccurred(AuctionEvent event)
|
java.lang.String |
getCode()
|
boolean |
isInteractive()
|
void |
run()
|
void |
setup(edu.cuny.config.param.ParameterDatabase parameters,
edu.cuny.config.param.Parameter base)
|
void |
start()
starts the console. |
void |
stop()
stop the console. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String P_DEF_BASE
public static java.lang.String P_PORT
public static java.lang.String P_CODE
public static int DEFAULT_PORT
public static java.lang.String DEFAULT_CODE
protected int port
protected java.lang.String code
protected TelnetServerConnector serverConnector
protected boolean stopAcceptingConnection
protected java.lang.Thread thread
protected java.util.Set<TelnetConsole.TelnetConnectionAdaptor> adaptors
protected TelnetConsole.ClockStatus clockStatus
Constructor Detail |
---|
public TelnetConsole()
Method Detail |
---|
public void setup(edu.cuny.config.param.ParameterDatabase parameters, edu.cuny.config.param.Parameter base)
setup
in interface edu.cuny.config.param.Parameterizable
public java.lang.String getCode()
public void start()
Console
start
in interface Console
public void stop()
Console
stop
in interface Console
public boolean isInteractive()
isInteractive
in interface Console
public void run()
run
in interface java.lang.Runnable
public void dispose(TelnetConsole.TelnetConnectionAdaptor adaptor)
TelnetConnection
the adaptor works
for.
adaptor
- public void eventOccurred(AuctionEvent event)
eventOccurred
in interface AuctionEventListener
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |