com.planet_ink.coffee_mud.core.intermud.server
Class Server

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.intermud.server.Server

public class Server
extends java.lang.Object

The Server class is the mudlib's interface to the Imaginary Mud Server. It is responsible with knowing all internal information about the server. Last Update: 960921


Constructor Summary
Server()
           
 
Method Summary
static ServerObject copyObject(java.lang.String file)
          Returns a distinct copy of the class identified.
static ServerObject findObject(java.lang.String file)
           
static ServerUser[] getInteractives()
           
static java.lang.String getMudName()
           
static int getPort()
           
static void removeObject(ServerObject ob)
           
static void shutdown()
           
static void start(java.lang.String mud, int port, ImudServices imud)
          Creates a server thread if one has not yet been created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server()
Method Detail

start

public static void start(java.lang.String mud,
                         int port,
                         ImudServices imud)
Creates a server thread if one has not yet been created.

Parameters:
mud - the name of the mud being started
Throws:
DatabaseException - thrown if the database is unreachable for some reason
ServerSecurityException - thrown if an attempt to call start() is made once the server is running.

copyObject

public static ServerObject copyObject(java.lang.String file)
                               throws ObjectLoadException
Returns a distinct copy of the class identified.

Parameters:
file - the name of the class being loaded
Throws:
ObjectLoadException - thrown when a problem occurs loading the object

findObject

public static ServerObject findObject(java.lang.String file)
                               throws ObjectLoadException
Throws:
ObjectLoadException

getInteractives

public static ServerUser[] getInteractives()

getMudName

public static java.lang.String getMudName()

getPort

public static int getPort()

shutdown

public static void shutdown()

removeObject

public static void removeObject(ServerObject ob)