KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > clustering > MMBaseChangeInterface


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.clustering;
11
12 import org.mmbase.core.event.NodeEvent;
13 import org.mmbase.module.core.MMBase;
14 import org.mmbase.module.core.MMObjectNode;
15
16
17 /**
18  * Builds a Thread to receive from and send changes to other MMBase Servers.
19  *
20  * @version $Id: MMBaseChangeInterface.java,v 1.5 2005/11/18 22:45:55 nklasens Exp $
21  * @author Daniel Ockeloen
22  */

23 public interface MMBaseChangeInterface {
24     
25     /**
26      * Initialize MMBaseChangeInterface
27      * @param mmb MMBase instance
28      */

29     void init(MMBase mmb);
30     
31     
32     void changedNode(NodeEvent event);
33     
34     /**
35      * Wait until the node change notification is completed.
36      * @param node Node to wait for
37      * @return <code>true</code> if done waiting
38      */

39     boolean waitUntilNodeChanged(MMObjectNode node);
40     
41     
42     /**
43      * @param number
44      * @param tableName
45      * @param ctype
46      * @deprecated (i think) fire an event in stead
47      */

48     //boolean changedNode(int number, String tableName, String ctype);
49
}
50
Popular Tags