org.mmbase.module.gui.html
Class MultilevelSubscribeNode

java.lang.Object
  extended by org.mmbase.module.gui.html.MultilevelSubscribeNode
All Implemented Interfaces:
MMBaseObserver

public class MultilevelSubscribeNode
extends Object
implements MMBaseObserver

This object subscribes itself to builder changes

Author:
Daniel Ockeloen
Application:
SCAN
Deprecated-now:
This is an _excact copy_ of org.mmbase.cache.MultilevelSubscribeNode

Field Summary
(package private)  Vector<MultilevelCacheEntry> queue
           
(package private)  String type
           
 
Constructor Summary
MultilevelSubscribeNode(MMBase mmb, String type)
           
 
Method Summary
 boolean addCacheEntry(MultilevelCacheEntry entry)
           
 void clearEntrys()
           
 boolean nodeChanged(String machine, String number, String builder, String ctype)
           
 boolean nodeLocalChanged(String machine, String number, String builder, String ctype)
          Called when a local node is changed.
 boolean nodeRemoteChanged(String machine, String number, String builder, String ctype)
          Called when a remote node is changed.
 boolean removeCacheEntry(MultilevelCacheEntry entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

String type

queue

Vector<MultilevelCacheEntry> queue
Constructor Detail

MultilevelSubscribeNode

public MultilevelSubscribeNode(MMBase mmb,
                               String type)
Method Detail

nodeChanged

public boolean nodeChanged(String machine,
                           String number,
                           String builder,
                           String ctype)

clearEntrys

public void clearEntrys()

nodeRemoteChanged

public boolean nodeRemoteChanged(String machine,
                                 String number,
                                 String builder,
                                 String ctype)
Description copied from interface: MMBaseObserver
Called when a remote node is changed.

Specified by:
nodeRemoteChanged in interface MMBaseObserver
Parameters:
machine - Name of the machine that changed the node.
number - Number of the changed node as a String
builder - Type of the changed node
ctype - command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=new
Returns:
always true

nodeLocalChanged

public boolean nodeLocalChanged(String machine,
                                String number,
                                String builder,
                                String ctype)
Description copied from interface: MMBaseObserver
Called when a local node is changed.

Specified by:
nodeLocalChanged in interface MMBaseObserver
Parameters:
machine - Name of the machine that changed the node.
number - Number of the changed node as a String
builder - Type of the changed node
ctype - command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=new
Returns:
always true

removeCacheEntry

public boolean removeCacheEntry(MultilevelCacheEntry entry)

addCacheEntry

public boolean addCacheEntry(MultilevelCacheEntry entry)


MMBase 2.0-SNAPSHOT - null