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, wait
activeCount, 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, yield
public 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()
MudHost
threadGroup
in interface MudHost
public 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
MudHost
acceptConnection
in interface MudHost
sock
- the socket the connection was made onjava.net.SocketException
- socket exceptionsjava.io.IOException
- io exceptionspublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public java.lang.String getStatus()
MudHost
public void shutdown(Session S, boolean keepItDown, java.lang.String externalCommand)
MudHost
public static void defaultShutdown()
public void interrupt()
interrupt
in class java.lang.Thread
public java.lang.String getHost()
MudHost
public int getPort()
MudHost
public static void main(java.lang.String[] a)
public void setAcceptConnections(boolean truefalse)
MudHost
setAcceptConnections
in interface MudHost
truefalse
- whether it is accepting connectionsMudHost.isAcceptingConnections()
public boolean isAcceptingConnections()
MudHost
isAcceptingConnections
in interface MudHost
MudHost.setAcceptConnections(boolean)
public java.util.List<java.lang.Runnable> getOverdueThreads()
MudHost
getOverdueThreads
in interface MudHost
public long getUptimeSecs()
MudHost
getUptimeSecs
in interface MudHost
public java.lang.String getLanguage()
MudHost
getLanguage
in interface MudHost
public java.lang.String executeCommand(java.lang.String cmd) throws java.lang.Exception
MudHost
executeCommand
in interface MudHost
cmd
- space-delimited (parsable) command/parm listjava.lang.Exception
- any exceptionspublic java.lang.String geWebHostUrl()
MudHost
geWebHostUrl
in interface MudHost