org.sapia.ubik.rmi.naming.remote.archie
Class UbikSynchronizer

java.lang.Object
  extended by org.sapia.ubik.rmi.naming.remote.archie.UbikSynchronizer
All Implemented Interfaces:
org.sapia.archie.sync.Synchronizer, AsyncEventListener, SyncEventListener

public class UbikSynchronizer
extends java.lang.Object
implements org.sapia.archie.sync.Synchronizer, AsyncEventListener, SyncEventListener

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Method Summary
 EventChannel getEventChannel()
           
 void onAsyncEvent(RemoteEvent evt)
          Receives multicast events.
 java.lang.Object onGetValue(org.sapia.archie.Name nodeAbsolutePath, org.sapia.archie.NamePart valueName)
           
 void onPutValue(org.sapia.archie.Name nodeAbsolutePath, org.sapia.archie.NamePart valueName, java.lang.Object value, boolean overwrite)
           
 void onRemoveValue(org.sapia.archie.Name nodeAbsolutePath, org.sapia.archie.NamePart name)
           
 java.lang.Object onSyncEvent(RemoteEvent evt)
          Receives multicast events.
 void setRoot(org.sapia.archie.sync.SynchronizedNode root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEventChannel

public EventChannel getEventChannel()
Returns:
the EventChannel that this instance uses.

setRoot

public void setRoot(org.sapia.archie.sync.SynchronizedNode root)
Parameters:
root - the SynchronizedNode that acts as the root node.

onGetValue

public java.lang.Object onGetValue(org.sapia.archie.Name nodeAbsolutePath,
                                   org.sapia.archie.NamePart valueName)
Specified by:
onGetValue in interface org.sapia.archie.sync.Synchronizer
See Also:
Synchronizer.onGetValue(org.sapia.archie.Name, org.sapia.archie.NamePart)

onPutValue

public void onPutValue(org.sapia.archie.Name nodeAbsolutePath,
                       org.sapia.archie.NamePart valueName,
                       java.lang.Object value,
                       boolean overwrite)
Specified by:
onPutValue in interface org.sapia.archie.sync.Synchronizer
See Also:
Synchronizer.onPutValue(org.sapia.archie.Name, org.sapia.archie.NamePart, java.lang.Object, boolean)

onRemoveValue

public void onRemoveValue(org.sapia.archie.Name nodeAbsolutePath,
                          org.sapia.archie.NamePart name)
Specified by:
onRemoveValue in interface org.sapia.archie.sync.Synchronizer
See Also:
Synchronizer.onRemoveValue(org.sapia.archie.Name, org.sapia.archie.NamePart)

onAsyncEvent

public void onAsyncEvent(RemoteEvent evt)
Description copied from interface: AsyncEventListener
Receives multicast events.

Specified by:
onAsyncEvent in interface AsyncEventListener
Parameters:
evt - a RemoteEvent.
See Also:
AsyncEventListener.onAsyncEvent(org.sapia.ubik.mcast.RemoteEvent)

onSyncEvent

public java.lang.Object onSyncEvent(RemoteEvent evt)
Description copied from interface: SyncEventListener
Receives multicast events.

Specified by:
onSyncEvent in interface SyncEventListener
Parameters:
evt - a RemoteEvent.
Returns:
an Object consisting of the synchronous response that is expected from this intance. This method can return null, if such can be the case. If an exception must be signaled to the caller, then it should be returned.
See Also:
SyncEventListener.onSyncEvent(org.sapia.ubik.mcast.RemoteEvent)


Copyright © 2010 Sapia OSS. All Rights Reserved.