org.sapia.ubik.rmi.examples.replication
Class ReplicatedInvokerImpl

java.lang.Object
  extended by org.sapia.ubik.rmi.examples.replication.ReplicatedInvokerImpl
All Implemented Interfaces:
java.io.Serializable, ReplicatedInvoker

public class ReplicatedInvokerImpl
extends java.lang.Object
implements ReplicatedInvoker

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2004 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
See Also:
Serialized Form

Constructor Summary
ReplicatedInvokerImpl()
           
 
Method Summary
 void dispatch(ReplicatedCommand cmd, ServerAddress addr)
           
 java.util.Set getSiblings()
           
 java.lang.Object invoke(java.lang.String methodName, java.lang.Class[] sig, java.lang.Object[] params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicatedInvokerImpl

public ReplicatedInvokerImpl()
Method Detail

invoke

public java.lang.Object invoke(java.lang.String methodName,
                               java.lang.Class[] sig,
                               java.lang.Object[] params)
                        throws java.lang.Throwable
Specified by:
invoke in interface ReplicatedInvoker
Throws:
java.lang.Throwable
See Also:
org.sapia.ubik.replication.ReplicatedInvoker#invoke(java.lang.String, java.lang.Class[], java.lang.Object[])

getSiblings

public java.util.Set getSiblings()
Specified by:
getSiblings in interface ReplicatedInvoker
Returns:
the Set of ServerAddresses corresponding to the siblings of the server in which this instance is executed.
See Also:
org.sapia.ubik.replication.ReplicatedInvoker#getSiblings()

dispatch

public void dispatch(ReplicatedCommand cmd,
                     ServerAddress addr)
              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
See Also:
org.sapia.ubik.replication.ReplicationContext#dispatch(org.sapia.ubik.replication.ReplicatedCommand, org.sapia.ubik.net.ServerAddress)


Copyright © 2010 Sapia OSS. All Rights Reserved.