it.could.webdav.replication
Class DAVReplica

java.lang.Object
  extended byjava.lang.Thread
      extended byit.could.webdav.replication.DAVReplica
All Implemented Interfaces:
DAVListener, Runnable

public class DAVReplica
extends Thread
implements DAVListener

TODO: Document this class.

Author:
Pier Fumagalli

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface it.could.webdav.DAVListener
COLLECTION_CREATED, COLLECTION_REMOVED, RESOURCE_CREATED, RESOURCE_MODIFIED, RESOURCE_REMOVED
 
Constructor Summary
DAVReplica(DAVRepository repository, Location location, DAVLogger logger)
           
 
Method Summary
 void notify(DAVResource resource, int event)
          Notify this DAVListener of an action occurred on a specified DAVResource.
 void run()
           
 void synchronize()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DAVReplica

public DAVReplica(DAVRepository repository,
                  Location location,
                  DAVLogger logger)
           throws IOException
Method Detail

synchronize

public void synchronize()
                 throws IOException
Throws:
IOException

notify

public void notify(DAVResource resource,
                   int event)
Description copied from interface: DAVListener

Notify this DAVListener of an action occurred on a specified DAVResource.

Specified by:
notify in interface DAVListener
Parameters:
resource - the DAVResource associated with the notification.
event - a number identifying the type of the notification.

run

public void run()
Specified by:
run in interface Runnable