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.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
Fields Modifier and Type Field and Description 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
Constructors Constructor and Description ConfigChangeNotifier(java.lang.String uri, int type)
Creates aConfigChangeNotifier
instance given the document location and change type.
-
Method Summary
Methods Modifier and Type Method and Description 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()
-
-
-
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 aConfigChangeNotifier
instance given the document location and change type.- Parameters:
uri
- location of the changed documenttype
- the change type, one ofDOCUMENT_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 classjava.lang.Object
-
-