KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > replication > ReplicationEvent


1 package org.sapia.ubik.rmi.replication;
2
3 import org.sapia.ubik.rmi.interceptor.Event;
4
5
6 /**
7  * @author Yanick Duchesne
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
10  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
11  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
12  * </dl>
13  */

14 public class ReplicationEvent implements Event {
15   private ReplicatedCommand _cmd;
16
17   /**
18    * Creates an instance of this class with the given command.
19    */

20   public ReplicationEvent(ReplicatedCommand command) {
21     _cmd = command;
22   }
23
24   /**
25    * @return the <code>ReplicatedCommand</code> that this instance holds.
26    */

27   public ReplicatedCommand getReplicatedCommand() {
28     return _cmd;
29   }
30 }
31
Popular Tags