org.vrspace.server.object
Class Tomcat

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.Tomcat
All Implemented Interfaces:
java.lang.Cloneable, Daemon, Owned, java.lang.Runnable

public class Tomcat
extends OwnedDBObject
implements java.lang.Runnable, Daemon

Tomcat 4.x VRObject


Field Summary
 java.lang.String installDir
          tomcat installation directory
 boolean shutdown
          should this tomcat instace shutdown when noone sees it? default = false
 NetResource url
          presentation url
 
Fields inherited from class org.vrspace.server.DBObject
db
 
Fields inherited from class org.vrspace.server.VRObject
db_id, primitiveMap, primitives
 
Constructor Summary
Tomcat()
           
 
Method Summary
 void addObserver(java.util.Observer obs)
          Add observer.
 void deleteObserver(java.util.Observer o)
          If shutdown == true and this is last Observer, shutdown this Tomcat
 void initialized()
          This is called on each Damon after dispatcher is initialized (space loaded & all daemons started)
 void run()
           
 void shutdown()
           
 void startup()
           
 void startup(Dispatcher d)
           
 
Methods inherited from class org.vrspace.server.OwnedDBObject
addOwner, isOwned, notifyOwners, ownershipRequired, processEvent, removeOwner, sendEvent
 
Methods inherited from class org.vrspace.server.PublicDBObject
setValue
 
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
clearChanged, countObservers, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

url

public NetResource url
presentation url


installDir

public java.lang.String installDir
tomcat installation directory


shutdown

public boolean shutdown
should this tomcat instace shutdown when noone sees it? default = false

Constructor Detail

Tomcat

public Tomcat()
Method Detail

startup

public void startup(Dispatcher d)
Specified by:
startup in interface Daemon

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()

addObserver

public void addObserver(java.util.Observer obs)
Add observer. First Observer starts the server.


run

public void run()
Specified by:
run in interface java.lang.Runnable

deleteObserver

public void deleteObserver(java.util.Observer o)
If shutdown == true and this is last Observer, shutdown this Tomcat


shutdown

public void shutdown()
Specified by:
shutdown in interface Daemon