Class SegmentCheckpointMBean
- java.lang.Object
-
- org.apache.jackrabbit.oak.commons.jmx.AbstractCheckpointMBean
-
- org.apache.jackrabbit.oak.segment.SegmentCheckpointMBean
-
- All Implemented Interfaces:
CheckpointMBean
public class SegmentCheckpointMBean extends AbstractCheckpointMBean
CheckpointMBean
implementation for theSegmentNodeStore
.
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.api.jmx.CheckpointMBean
TYPE
-
-
Constructor Summary
Constructors Constructor Description SegmentCheckpointMBean(SegmentNodeStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
collectCheckpoints(TabularDataSupport tab)
Called to collect the tabular data for the checkpoints.String
createCheckpoint(long lifetime)
Create a new checkpoint with the givenlifetime
.long
getOldestCheckpointCreationTimestamp()
boolean
releaseCheckpoint(String checkpoint)
Release the checkpoint with the givenid
.-
Methods inherited from class org.apache.jackrabbit.oak.commons.jmx.AbstractCheckpointMBean
getOldestCheckpointCreationDate, listCheckpoints, toCompositeData
-
-
-
-
Constructor Detail
-
SegmentCheckpointMBean
public SegmentCheckpointMBean(SegmentNodeStore store)
-
-
Method Detail
-
collectCheckpoints
protected void collectCheckpoints(TabularDataSupport tab) throws OpenDataException
Description copied from class:AbstractCheckpointMBean
Called 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:
collectCheckpoints
in classAbstractCheckpointMBean
- Throws:
OpenDataException
-
getOldestCheckpointCreationTimestamp
public long getOldestCheckpointCreationTimestamp()
- Specified by:
getOldestCheckpointCreationTimestamp
in interfaceCheckpointMBean
- Specified by:
getOldestCheckpointCreationTimestamp
in classAbstractCheckpointMBean
- Returns:
- creation timestamp of oldest checkpoint.
-
createCheckpoint
public String createCheckpoint(long lifetime)
Description copied from interface:CheckpointMBean
Create 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:CheckpointMBean
Release the checkpoint with the givenid
. Seeorg.apache.jackrabbit.oak.spi.state.NodeStore#checkpoint
- Returns:
true
on success,false
otherwise.
-
-