Class DocumentCheckpointMBean
- java.lang.Object
-
- org.apache.jackrabbit.oak.commons.jmx.AbstractCheckpointMBean
-
- org.apache.jackrabbit.oak.plugins.document.DocumentCheckpointMBean
-
- All Implemented Interfaces:
CheckpointMBean
public class DocumentCheckpointMBean extends AbstractCheckpointMBean
CheckpointMBeanimplementation for theDocumentNodeStore.
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.api.jmx.CheckpointMBean
TYPE
-
-
Constructor Summary
Constructors Constructor Description DocumentCheckpointMBean(DocumentNodeStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcollectCheckpoints(TabularDataSupport tab)Called to collect the tabular data for the checkpoints.StringcreateCheckpoint(long lifetime)Create a new checkpoint with the givenlifetime.longgetOldestCheckpointCreationTimestamp()booleanreleaseCheckpoint(String checkpoint)Release the checkpoint with the givenid.-
Methods inherited from class org.apache.jackrabbit.oak.commons.jmx.AbstractCheckpointMBean
getOldestCheckpointCreationDate, listCheckpoints, toCompositeData
-
-
-
-
Constructor Detail
-
DocumentCheckpointMBean
public DocumentCheckpointMBean(DocumentNodeStore store)
-
-
Method Detail
-
collectCheckpoints
protected void collectCheckpoints(TabularDataSupport tab) throws OpenDataException
Description copied from class:AbstractCheckpointMBeanCalled to collect the tabular data for the checkpoints. Each checkpoint should be represented by a single row intab. Implementors should use theAbstractCheckpointMBean.toCompositeData(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.- Specified by:
collectCheckpointsin classAbstractCheckpointMBean- Throws:
OpenDataException
-
getOldestCheckpointCreationTimestamp
public long getOldestCheckpointCreationTimestamp()
- Specified by:
getOldestCheckpointCreationTimestampin interfaceCheckpointMBean- Specified by:
getOldestCheckpointCreationTimestampin classAbstractCheckpointMBean- Returns:
- creation timestamp of oldest checkpoint.
-
createCheckpoint
public String createCheckpoint(long lifetime)
Description copied from interface:CheckpointMBeanCreate a new checkpoint with the givenlifetime. Seeorg.apache.jackrabbit.oak.spi.state.NodeStore#checkpoint- Returns:
- the id of the newly created checkpoint
-
releaseCheckpoint
public boolean releaseCheckpoint(String checkpoint)
Description copied from interface:CheckpointMBeanRelease the checkpoint with the givenid. Seeorg.apache.jackrabbit.oak.spi.state.NodeStore#checkpoint- Returns:
trueon success,falseotherwise.
-
-