IBM WebSphere Application ServerTM
Release 8

com.ibm.websphere.management.repository
Class ConfigChangeNotifier

java.lang.Object
  extended by com.ibm.websphere.management.repository.ConfigChangeNotifier
All Implemented Interfaces:
java.io.Serializable

public class ConfigChangeNotifier
extends java.lang.Object
implements java.io.Serializable

A ConfigChangeNotifier contains information about the update of a single document. It contains the document location as well as the type of change that was made: add, modify, or delete.

See Also:
Serialized Form

Field Summary
static int DOCUMENT_ADDED
          Change type for adding a document.
static int DOCUMENT_DELETED
          Change type for deleting a document.
static int DOCUMENT_MODIFIED
          Change type for modifying a document.
 
Constructor Summary
ConfigChangeNotifier(java.lang.String uri, int type)
          Creates a ConfigChangeNotifier instance given the document location and change type.
 
Method Summary
 int getChangeType()
          Returns the type of change that was made to the document in this object.
 java.lang.String getUri()
          Returns the location of the document that was changed.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DOCUMENT_ADDED

public static final int DOCUMENT_ADDED
Change type for adding a document.

See Also:
Constant Field Values

DOCUMENT_DELETED

public static final int DOCUMENT_DELETED
Change type for deleting a document.

See Also:
Constant Field Values

DOCUMENT_MODIFIED

public static final int DOCUMENT_MODIFIED
Change type for modifying a document.

See Also:
Constant Field Values
Constructor Detail

ConfigChangeNotifier

public ConfigChangeNotifier(java.lang.String uri,
                            int type)
Creates a ConfigChangeNotifier instance given the document location and change type.

Parameters:
uri - location of the changed document
type - the change type, one of
  • DOCUMENT_ADDED
  • DOCUMENT_DELETED
  • DOCUMENT_MODIFIED
Method Detail

getChangeType

public int getChangeType()
Returns the type of change that was made to the document in this object.

Returns:
the change type, one of
  • DOCUMENT_ADDED
  • DOCUMENT_DELETED
  • DOCUMENT_MODIFIED

getUri

public java.lang.String getUri()
Returns the location of the document that was changed.

Returns:
a URI with the location of the changed document

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

IBM WebSphere Application ServerTM
Release 8