org.exist.storage
Interface UpdateListener

All Known Implementing Classes:
XACMLUtil

public interface UpdateListener


Field Summary
static int ADD
          Notification type: a document was added to a collection
static int REMOVE
          Notification type: a document was removed
static int UPDATE
          Notification type: a document has been updated
 
Method Summary
 void debug()
           
 void documentUpdated(DocumentImpl document, int event)
          Called whenever a document is updated within the database.
 void nodeMoved(NodeId oldNodeId, StoredNode newNode)
          nodeMoved is called after a defragmentation run occurred for a document during which the address and the nodeId of a node may have changed.
 void unsubscribe()
          Called when the listener is removed from the notification service
 

Field Detail

ADD

static final int ADD
Notification type: a document was added to a collection

See Also:
Constant Field Values

UPDATE

static final int UPDATE
Notification type: a document has been updated

See Also:
Constant Field Values

REMOVE

static final int REMOVE
Notification type: a document was removed

See Also:
Constant Field Values
Method Detail

documentUpdated

void documentUpdated(DocumentImpl document,
                     int event)
Called whenever a document is updated within the database. Parameter event specifies the event type, i.e. one of ADD, UPDATE or REMOVE.

Parameters:
document -
event -

nodeMoved

void nodeMoved(NodeId oldNodeId,
               StoredNode newNode)
nodeMoved is called after a defragmentation run occurred for a document during which the address and the nodeId of a node may have changed. Defragmentation may only occur after a node update.

Parameters:
oldNodeId -
newNode -

unsubscribe

void unsubscribe()
Called when the listener is removed from the notification service


debug

void debug()


Copyright (C) Wolfgang Meier. All rights reserved.