Class AbstractCheckpointMBean
- java.lang.Object
-
- org.apache.jackrabbit.oak.commons.jmx.AbstractCheckpointMBean
-
- All Implemented Interfaces:
org.apache.jackrabbit.oak.api.jmx.CheckpointMBean
public abstract class AbstractCheckpointMBean extends java.lang.Object implements org.apache.jackrabbit.oak.api.jmx.CheckpointMBean
Abstract base class forCheckpointMBean
implementations. This class provides the basic functionality for converting checkpoints into tabular data.
-
-
Constructor Summary
Constructors Constructor Description AbstractCheckpointMBean()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
collectCheckpoints(javax.management.openmbean.TabularDataSupport tab)
Called to collect the tabular data for the checkpoints.java.util.Date
getOldestCheckpointCreationDate()
abstract long
getOldestCheckpointCreationTimestamp()
javax.management.openmbean.TabularData
listCheckpoints()
protected javax.management.openmbean.CompositeDataSupport
toCompositeData(java.lang.String id, java.lang.String created, java.lang.String expires, java.util.Map<java.lang.String,java.lang.String> properties)
Utility method for converting the fields associated with a checkpoint to the composite data format.
-
-
-
Method Detail
-
collectCheckpoints
protected abstract void collectCheckpoints(javax.management.openmbean.TabularDataSupport tab) throws javax.management.openmbean.OpenDataException
Called to collect the tabular data for the checkpoints. Each checkpoint should be represented by a single row intab
. Implementors should use thetoCompositeData(java.lang.String, java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>)
utility method for converting the individual fields associated with a checkpoint into the correct composite data format.- Parameters:
tab
-- Throws:
javax.management.openmbean.OpenDataException
-
listCheckpoints
public javax.management.openmbean.TabularData listCheckpoints()
- Specified by:
listCheckpoints
in interfaceorg.apache.jackrabbit.oak.api.jmx.CheckpointMBean
-
getOldestCheckpointCreationTimestamp
public abstract long getOldestCheckpointCreationTimestamp()
- Specified by:
getOldestCheckpointCreationTimestamp
in interfaceorg.apache.jackrabbit.oak.api.jmx.CheckpointMBean
-
getOldestCheckpointCreationDate
public java.util.Date getOldestCheckpointCreationDate()
- Specified by:
getOldestCheckpointCreationDate
in interfaceorg.apache.jackrabbit.oak.api.jmx.CheckpointMBean
-
toCompositeData
protected final javax.management.openmbean.CompositeDataSupport toCompositeData(java.lang.String id, java.lang.String created, java.lang.String expires, java.util.Map<java.lang.String,java.lang.String> properties) throws javax.management.openmbean.OpenDataException
Utility method for converting the fields associated with a checkpoint to the composite data format.- Parameters:
id
- id of the checkpointcreated
- creation data of the checkpointexpires
- expiry data of the checkpoint- Returns:
- composite data representation of the fields associated with the checkpoint
- Throws:
javax.management.openmbean.OpenDataException
-
-