| Modifier and Type | Field | Description |
|---|---|---|
boolean |
acceptConnections |
|
static DVector |
accessed |
|
static java.util.Vector<java.lang.String> |
autoblocked |
|
static java.lang.String |
bind |
|
java.lang.String |
host |
|
static boolean |
isOK |
|
static java.util.Vector<OffLine> |
mudThreads |
|
int |
port |
|
static java.lang.String |
ports |
|
static boolean |
serverIsRunning |
|
protected long |
startupTime |
|
int |
state |
MAIN_HOST, TIME_SAVETHREAD_SLEEP, TIME_UTILTHREAD_SLEEP| Constructor | Description |
|---|---|
OffLine() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
acceptConnection(java.net.Socket sock) |
Handles a connection from a user, and internal states
|
static void |
defaultShutdown() |
|
java.lang.String |
executeCommand(java.lang.String cmd) |
Flexible interface for tinkering with mud-host settings.
|
static void |
fatalStartupError(java.lang.Thread t,
int type) |
|
java.lang.StringBuffer |
getFile(java.lang.String fileName) |
|
java.lang.String |
getHost() |
the hostname of the mud server
|
java.lang.String |
getLanguage() |
Return the viewable name of the language supported by this host.
|
java.util.List<java.lang.Runnable> |
getOverdueThreads() |
Return any internal threads that are a source of troubles
|
int |
getPort() |
the port a given MUD server instance is listening on
|
java.lang.String |
getStatus() |
Retrieve a string telling the status of mud startup or shutdown
|
long |
getUptimeSecs() |
Retrieve the number of seconds since startup
|
java.lang.String |
geWebHostUrl() |
The hostname, port of the most public web server for this host
Includes trailing slash
|
void |
interrupt() |
|
boolean |
isAcceptingConnections() |
Sets whether this mud is accepting connections
|
static void |
main(java.lang.String[] a) |
|
void |
run() |
|
void |
setAcceptConnections(boolean truefalse) |
Sets whether this mud is accepting connections
|
void |
shutdown(Session S,
boolean keepItDown,
java.lang.String externalCommand) |
An order to permanently shutdown the entire mud system
|
java.lang.ThreadGroup |
threadGroup() |
Because thread groups are used to track configurations,
here is a way to get it.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic static java.util.Vector<OffLine> mudThreads
public static DVector accessed
public static java.util.Vector<java.lang.String> autoblocked
public static boolean serverIsRunning
public static boolean isOK
public boolean acceptConnections
public java.lang.String host
public static java.lang.String bind
public static java.lang.String ports
public int port
public int state
protected final long startupTime
public java.lang.ThreadGroup threadGroup()
MudHostthreadGroup in interface MudHostpublic static void fatalStartupError(java.lang.Thread t,
int type)
public java.lang.StringBuffer getFile(java.lang.String fileName)
public void acceptConnection(java.net.Socket sock)
throws java.net.SocketException,
java.io.IOException
MudHostacceptConnection in interface MudHostsock - the socket the connection was made onjava.net.SocketException - socket exceptionsjava.io.IOException - io exceptionspublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic java.lang.String getStatus()
MudHostpublic void shutdown(Session S, boolean keepItDown, java.lang.String externalCommand)
MudHostpublic static void defaultShutdown()
public void interrupt()
interrupt in class java.lang.Threadpublic java.lang.String getHost()
MudHostpublic int getPort()
MudHostpublic static void main(java.lang.String[] a)
public void setAcceptConnections(boolean truefalse)
MudHostsetAcceptConnections in interface MudHosttruefalse - whether it is accepting connectionsMudHost.isAcceptingConnections()public boolean isAcceptingConnections()
MudHostisAcceptingConnections in interface MudHostMudHost.setAcceptConnections(boolean)public java.util.List<java.lang.Runnable> getOverdueThreads()
MudHostgetOverdueThreads in interface MudHostpublic long getUptimeSecs()
MudHostgetUptimeSecs in interface MudHostpublic java.lang.String getLanguage()
MudHostgetLanguage in interface MudHostpublic java.lang.String executeCommand(java.lang.String cmd)
throws java.lang.Exception
MudHostexecuteCommand in interface MudHostcmd - space-delimited (parsable) command/parm listjava.lang.Exception - any exceptionspublic java.lang.String geWebHostUrl()
MudHostgeWebHostUrl in interface MudHost