public class SegmentCheckpointMBean extends AbstractCheckpointMBean
CheckpointMBean
implementation for the SegmentNodeStore
.TYPE
Constructor and Description |
---|
SegmentCheckpointMBean(SegmentNodeStore store) |
Modifier and Type | Method and Description |
---|---|
protected void |
collectCheckpoints(javax.management.openmbean.TabularDataSupport tab)
Called to collect the tabular data for the checkpoints.
|
java.lang.String |
createCheckpoint(long lifetime)
Create a new checkpoint with the given
lifetime . |
long |
getOldestCheckpointCreationTimestamp() |
boolean |
releaseCheckpoint(java.lang.String checkpoint)
Release the checkpoint with the given
id . |
getOldestCheckpointCreationDate, listCheckpoints, toCompositeData
public SegmentCheckpointMBean(SegmentNodeStore store)
protected void collectCheckpoints(javax.management.openmbean.TabularDataSupport tab) throws javax.management.openmbean.OpenDataException
AbstractCheckpointMBean
tab
.
Implementors should use the AbstractCheckpointMBean.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.collectCheckpoints
in class AbstractCheckpointMBean
javax.management.openmbean.OpenDataException
public long getOldestCheckpointCreationTimestamp()
getOldestCheckpointCreationTimestamp
in interface CheckpointMBean
getOldestCheckpointCreationTimestamp
in class AbstractCheckpointMBean
public java.lang.String createCheckpoint(long lifetime)
CheckpointMBean
lifetime
.
See org.apache.jackrabbit.oak.spi.state.NodeStore#checkpoint
public boolean releaseCheckpoint(java.lang.String checkpoint)
CheckpointMBean
id
.
See org.apache.jackrabbit.oak.spi.state.NodeStore#checkpoint
true
on success, false
otherwise.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.