com.ibm.websphere.management.repository
Class ConfigChangeNotifier
- java.lang.Object
-
- com.ibm.websphere.management.repository.ConfigChangeNotifier
-
- All Implemented Interfaces:
- java.io.Serializable
public class ConfigChangeNotifier extends java.lang.Object implements java.io.SerializableA 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
Fields Modifier and Type Field and Description static intDOCUMENT_ADDEDChange type for adding a document.static intDOCUMENT_DELETEDChange type for deleting a document.static intDOCUMENT_MODIFIEDChange type for modifying a document.
-
Constructor Summary
Constructors Constructor and Description ConfigChangeNotifier(java.lang.String uri, int type)Creates aConfigChangeNotifierinstance given the document location and change type.
-
Method Summary
Methods Modifier and Type Method and Description intgetChangeType()Returns the type of change that was made to the document in this object.java.lang.StringgetUri()Returns the location of the document that was changed.java.lang.StringtoString()
-
-
-
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 aConfigChangeNotifierinstance given the document location and change type.- Parameters:
uri- location of the changed documenttype- the change type, one ofDOCUMENT_ADDEDDOCUMENT_DELETEDDOCUMENT_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_ADDEDDOCUMENT_DELETEDDOCUMENT_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:
toStringin classjava.lang.Object
-
-