com.ibm.websphere.management.repository

Class ConfigEpoch

  1. java.lang.Object
  2. extended bycom.ibm.websphere.management.repository.ConfigEpoch
All implemented interfaces:
java.io.Serializable, java.lang.Comparable

  1. public class ConfigEpoch
  2. extends java.lang.Object
  3. implements java.lang.Comparable, java.io.Serializable
A ConfigEpoch is used to determine if changes have been made to the repository between points in time. A config epoch is a span of time during which there are no repository changes; all ConfigEpoch instances obtained during a single config epoch will be equal to each other. Whenever the repository is changed, a new config epoch begins.

By comparing two ConfigEpoch instances obtained at different points in time, it is possible to determine whether the repository has changed between those points in time. If the objects are not equal, the repository has changed; otherwise, the repository has not changed.

See Also:
Serialized Form

Constructor Summary

Constructor and Description
ConfigEpoch()
Creates a ConfigEpoch with the current timestamp.

Method Summary

Modifier and Type Method and Description
  1. int
compareTo(java.lang.Object obj)
Compares this ConfigEpoch instance with the specified object for order.
  1. boolean
equals(java.lang.Object obj)
Compares this ConfigEpoch instance to another object.
  1. void
refresh()
Not for public use.
  1. java.lang.String
toString()
  1. void
update()
Not for public use.
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

ConfigEpoch

  1. public ConfigEpoch()
Creates a ConfigEpoch with the current timestamp.

Method Detail

update

  1. public void update()
Not for public use.

refresh

  1. public void refresh()
Not for public use.

equals

  1. public boolean equals(java.lang.Object obj)
Compares this ConfigEpoch instance to another object.
Overrides:
equals in class java.lang.Object
Parameters:
obj - object to be compared to this ConfigEpoch instance
Returns:
true if obj is an instance of ConfigEpoch with the same value as this instance

toString

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

compareTo

  1. public int compareTo(java.lang.Object obj)
Compares this ConfigEpoch instance with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is older than, equal to, or newer than the specified object.
Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - the object to be compared
Returns:
a negative integer, zero, or a positive integer as this object is older than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object is not an instance of ConfigEpoch