org.vrspace.server.object
Class James

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

public class James
extends OwnedDBObject
implements Daemon

James (2.1) server VRObject, mostly copy&paste from org.apache.avalon.phoenix.launcher.Main


Field Summary
 java.lang.String installDir
          phoenix installation directory
 boolean shutdown
          should this phoenix 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
James()
           
 
Method Summary
 void addObserver(java.util.Observer obs)
          Add observer.
 void deleteObserver(java.util.Observer o)
          Calls shutdown if shutdown == true and no observers left
 void initialized()
          This is called on each Damon after dispatcher is initialized (space loaded & all daemons started)
 void shutdown()
          Method to call to shutdown Phoenix from an external (calling) application.
 void startup()
          Start this James
 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
phoenix installation directory


shutdown

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

Constructor Detail

James

public James()
Method Detail

addObserver

public void addObserver(java.util.Observer obs)
Add observer. Calls startup if needed


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

startup

public void startup()
Start this James


shutdown

public void shutdown()
Method to call to shutdown Phoenix from an external (calling) application. Protected to allow access from DaemonLauncher.

Specified by:
shutdown in interface Daemon

deleteObserver

public void deleteObserver(java.util.Observer o)
Calls shutdown if shutdown == true and no observers left