Package org.jivesoftware.openfire.pubsub
Class PubSubSubscriptionMaintenance.Progress
java.lang.Object
org.jivesoftware.openfire.pubsub.PubSubSubscriptionMaintenance.Progress
- Enclosing class:
- PubSubSubscriptionMaintenance
Immutable snapshot of cleanup progress. New instances are published atomically as the cleanup proceeds.
-
Method Details
-
getPhase
- Returns:
- the current phase of the cleanup.
-
getTotalToRemove
public long getTotalToRemove()- Returns:
- the number of rows the cleanup set out to remove (0 until known).
-
getRemoved
public long getRemoved()- Returns:
- the number of rows removed so far (or in total, when completed).
-
getPercentComplete
public int getPercentComplete()- Returns:
- completion as a percentage in [0, 100]. Returns 100 for a completed cleanup, and 0 when the total is not yet known.
-
getError
- Returns:
- the error message if the cleanup failed, otherwise null.
-