org.vrspace.server.object
Class Tunnell
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.object.Gate
org.vrspace.server.object.Tunnell
- All Implemented Interfaces:
- java.lang.Cloneable, Daemon, HasTransform, java.util.Observer, Owned
- public class Tunnell
- extends Gate
- implements Daemon, java.util.Observer
This Gate connects to the remote host on startup.
When connected, it updates it's attributes and listens for incoming connections.
When anything comes from the server, tries to start new local Session.
If sucessfull, opens another connection to the server.
This Connection/Session pair is used when server cannot listen for incoming connections, i.e. behind firewall.
Fields inherited from class org.vrspace.server.DBObject |
db |
Method Summary |
void |
addObserver(java.util.Observer o)
Adds observer. |
void |
initialized()
This is called on each Damon after dispatcher is initialized (space loaded & all daemons started) |
void |
shutdown()
|
void |
startup(Dispatcher d)
|
void |
update(java.util.Observable conn,
java.lang.Object msg)
Implements the Observer interface. |
Methods inherited from class org.vrspace.server.object.Gate |
set_enter |
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, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
login
public java.lang.String login
password
public java.lang.String password
dispatcher
protected Dispatcher dispatcher
Tunnell
public Tunnell()
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
shutdown
public void shutdown()
- Specified by:
shutdown
in interface Daemon
addObserver
public void addObserver(java.util.Observer o)
- Adds observer.
update
public void update(java.util.Observable conn,
java.lang.Object msg)
- Description copied from class:
VrmlFile
- Implements the Observer interface.
- Specified by:
update
in interface java.util.Observer
- Overrides:
update
in class VrmlFile