01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
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: * Builds a Thread to receive from and send changes to other MMBase Servers.
18: *
19: * @version $Id: MMBaseChangeInterface.java,v 1.5 2005/11/18 22:45:55 nklasens Exp $
20: * @author Daniel Ockeloen
21: */
22: public interface MMBaseChangeInterface {
23:
24: /**
25: * Initialize MMBaseChangeInterface
26: * @param mmb MMBase instance
27: */
28: void init(MMBase mmb);
29:
30: void changedNode(NodeEvent event);
31:
32: /**
33: * Wait until the node change notification is completed.
34: * @param node Node to wait for
35: * @return <code>true</code> if done waiting
36: */
37: boolean waitUntilNodeChanged(MMObjectNode node);
38:
39: /**
40: * @param number
41: * @param tableName
42: * @param ctype
43: * @deprecated (i think) fire an event in stead
44: */
45: //boolean changedNode(int number, String tableName, String ctype);
46: }
|