org.vrspace.server
Class PortMapper

java.lang.Object
  extended byjava.util.Observable
      extended byorg.vrspace.server.VRObject
          extended byorg.vrspace.server.DBObject
              extended byorg.vrspace.server.PublicDBObject
                  extended byorg.vrspace.server.OwnedDBObject
                      extended byorg.vrspace.server.object.File
                          extended byorg.vrspace.server.object.VrmlFile
                              extended byorg.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

Nested Class Summary
 class PortMapper.Joint
           
 
Nested classes inherited from class org.vrspace.server.object.VrmlFile
VrmlFile.ParsedUploadFilter
 
Nested classes inherited from class org.vrspace.server.object.File
File.GZippedUploadFilter, File.UploadFilter
 
Field Summary
 int[] _ports
           
 int _serverPort
           
 
Fields inherited from class org.vrspace.server.object.VrmlFile
transform
 
Fields inherited from class org.vrspace.server.object.File
_downloads, _lastUpdate, _uploads, name, ownerRole, publicRole, url
 
Fields inherited from class org.vrspace.server.DBObject
db
 
Fields inherited from class org.vrspace.server.VRObject
db_id, primitiveMap, primitives
 
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.object.VrmlFile
createTransform, getTransform, getTransformID, set__clone, set_download, set_upload, set_url, setTransform, update
 
Methods inherited from class org.vrspace.server.object.File
encodeAsURI, getClassAndId, grantAccess, processEvent, sendEvent, setValue
 
Methods inherited from class org.vrspace.server.OwnedDBObject
addOwner, isOwned, notifyOwners, ownershipRequired, removeOwner
 
Methods inherited from class org.vrspace.server.DBObject
delete, get, put, put
 
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
 

Field Detail

_serverPort

public int _serverPort

_ports

public int[] _ports
Constructor Detail

PortMapper

public PortMapper()
Creates a new instance of PortMapper


PortMapper

public PortMapper(int serverPort,
                  int[] ports)
Method Detail

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)