org.vrspace.server
Class PortMapper
java.lang.Object
java.util.Observable
org.vrspace.server.VRObject
org.vrspace.server.DBObject
org.vrspace.server.PublicDBObject
org.vrspace.server.OwnedDBObject
org.vrspace.server.object.File
org.vrspace.server.object.VrmlFile
org.vrspace.server.PortMapper
- All Implemented Interfaces:
- java.lang.Cloneable, Daemon, HasTransform, java.util.Observer, Owned, java.lang.Runnable
- public class PortMapper
- extends VrmlFile
- implements Daemon, java.lang.Runnable
- Author:
- rmeyers
Fields inherited from class org.vrspace.server.DBObject |
db |
Constructor Summary |
PortMapper()
Creates a new instance of PortMapper |
PortMapper(int serverPort,
int[] ports)
|
Method Summary |
static void |
debug(java.lang.String message)
|
static void |
debug(java.lang.String message,
boolean crlf)
|
void |
initialized()
This is called on each Damon after dispatcher is initialized (space loaded & all daemons started) |
static void |
main(java.lang.String[] args)
|
void |
map(java.net.Socket socket)
|
void |
run()
|
void |
shutdown()
|
void |
start()
|
void |
startup(Dispatcher d)
|
void |
test(int serverPort,
int port)
|
void |
testServer(int port)
|
Methods inherited from class org.vrspace.server.VRObject |
arrayToString, canRead, canWrite, clone, equals, fieldToText, fromString, fromText, getClassName, getField, getFields, getId, getID, getMemebers, hasField, hasMethod, isNew, newInstance, sendResponse, setField, setField, setField, setFields, setFields, stringToArray, toString, toText, toText, toText |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_serverPort
public int _serverPort
_ports
public int[] _ports
PortMapper
public PortMapper()
- Creates a new instance of PortMapper
PortMapper
public PortMapper(int serverPort,
int[] ports)
initialized
public void initialized()
- Description copied from interface:
Daemon
- This is called on each Damon after dispatcher is initialized (space loaded & all daemons started)
- Specified by:
initialized
in interface Daemon
startup
public void startup(Dispatcher d)
- Specified by:
startup
in interface Daemon
start
public void start()
shutdown
public void shutdown()
- Specified by:
shutdown
in interface Daemon
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
map
public void map(java.net.Socket socket)
main
public static void main(java.lang.String[] args)
- Parameters:
args
- the command line arguments
debug
public static void debug(java.lang.String message,
boolean crlf)
debug
public static void debug(java.lang.String message)
test
public void test(int serverPort,
int port)
testServer
public void testServer(int port)