Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.vrspace.server.object
Class Mirror  view Mirror download Mirror.java

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.object.Gate
                      extended byorg.vrspace.server.object.Mirror
All Implemented Interfaces:
java.lang.Cloneable, org.vrspace.attributes.Daemon, java.util.Observer

public class Mirror
extends Gate
implements org.vrspace.attributes.Daemon, java.util.Observer

A Mirror connects to the remote host on startup, and then then simply mirrors (copies) all seen objects to local database


Field Summary
private  boolean active
           
private  org.vrspace.util.Connection conn
           
protected  org.vrspace.server.Dispatcher dispatcher
           
 java.lang.String login
           
 java.lang.String password
           
 
Fields inherited from class org.vrspace.server.object.Gate
author, autoCommit, description, host, name, online, port, remove, screen, url
 
Fields inherited from class org.vrspace.server.DBObject
db
 
Fields inherited from class org.vrspace.server.VRObject
db_id, primitiveMap, primitives
 
Fields inherited from class java.util.Observable
 
Constructor Summary
Mirror()
           
 
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(org.vrspace.server.Dispatcher d)
           
 void update(java.util.Observable conn, java.lang.Object msg)
          Process remote message - TODO
 
Methods inherited from class org.vrspace.server.object.Gate
sendEvent, set_enter
 
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, 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
 

Field Detail

login

public java.lang.String login

password

public java.lang.String password

conn

private org.vrspace.util.Connection conn

active

private boolean active

dispatcher

protected org.vrspace.server.Dispatcher dispatcher
Constructor Detail

Mirror

public Mirror()
Method Detail

initialized

public void initialized()
Description copied from interface: org.vrspace.attributes.Daemon
This is called on each Damon after dispatcher is initialized (space loaded & all daemons started)

Specified by:
initialized in interface org.vrspace.attributes.Daemon

startup

public void startup(org.vrspace.server.Dispatcher d)
Specified by:
startup in interface org.vrspace.attributes.Daemon

shutdown

public void shutdown()
Specified by:
shutdown in interface org.vrspace.attributes.Daemon

addObserver

public void addObserver(java.util.Observer o)
Adds observer.


update

public void update(java.util.Observable conn,
                   java.lang.Object msg)
Process remote message - TODO

Specified by:
update in interface java.util.Observer