Class SnapshotMXBeanImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotMXBeanImpl
-
- All Implemented Interfaces:
SnapshotMXBean
public class SnapshotMXBeanImpl extends Object implements SnapshotMXBean
Snapshot MBean features.
-
-
Constructor Summary
Constructors Constructor Description SnapshotMXBeanImpl(GridKernalContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelSnapshot(String snpName)Cancel previously started snapshot operation on the node initiator.voidcancelSnapshotOperation(String reqId)Cancel previously started snapshot operation.voidcancelSnapshotRestore(String name)Cancel previously started snapshot restore operation.voidcreateIncrementalSnapshot(String fullSnapshot, String fullSnapshotPath)Create the cluster-wide incremental snapshot for the given full snapshot.voidcreateSnapshot(String snpName, String snpPath)Create the cluster-wide snapshot with given name asynchronously.voidrestoreSnapshot(String name, String path, String grpNames)Restore cluster-wide snapshot.voidrestoreSnapshot(String name, String path, String grpNames, int incIdx)Restore cluster-wide snapshot and its increments.Stringstatus()Get the status of the current snapshot operation in the cluster.
-
-
-
Constructor Detail
-
SnapshotMXBeanImpl
public SnapshotMXBeanImpl(GridKernalContext ctx)
- Parameters:
ctx- Kernal context.
-
-
Method Detail
-
createSnapshot
public void createSnapshot(String snpName, String snpPath)
Create the cluster-wide snapshot with given name asynchronously.- Specified by:
createSnapshotin interfaceSnapshotMXBean- Parameters:
snpName- Snapshot name to be created.snpPath- Snapshot directory path.- See Also:
(String)
-
createIncrementalSnapshot
public void createIncrementalSnapshot(String fullSnapshot, String fullSnapshotPath)
Create the cluster-wide incremental snapshot for the given full snapshot.- Specified by:
createIncrementalSnapshotin interfaceSnapshotMXBean- Parameters:
fullSnapshot- Full snapshot name to attach incremental snapshot to.fullSnapshotPath- Full snapshot directory path.- See Also:
IgniteSnapshot.createSnapshot(String),IgniteSnapshot.createIncrementalSnapshot(String)
-
cancelSnapshot
public void cancelSnapshot(String snpName)
Cancel previously started snapshot operation on the node initiator.- Specified by:
cancelSnapshotin interfaceSnapshotMXBean- Parameters:
snpName- Snapshot name to cancel.
-
cancelSnapshotOperation
public void cancelSnapshotOperation(String reqId)
Cancel previously started snapshot operation.- Specified by:
cancelSnapshotOperationin interfaceSnapshotMXBean- Parameters:
reqId- Snapshot operation request ID.
-
restoreSnapshot
public void restoreSnapshot(String name, String path, String grpNames)
Restore cluster-wide snapshot.- Specified by:
restoreSnapshotin interfaceSnapshotMXBean- Parameters:
name- Snapshot name.path- Snapshot directory path.grpNames- Optional comma-separated list of cache group names.- See Also:
IgniteSnapshot.restoreSnapshot(String, Collection)
-
restoreSnapshot
public void restoreSnapshot(String name, String path, String grpNames, int incIdx)
Restore cluster-wide snapshot and its increments. Snapshot is restored first and after that all increments are restored sequentially from the1to the specifiedincIdx.- Specified by:
restoreSnapshotin interfaceSnapshotMXBean- Parameters:
name- Snapshot name.path- Snapshot directory path.grpNames- Optional comma-separated list of cache group names.incIdx- Incremental snapshot index.- See Also:
IgniteSnapshot.restoreSnapshot(String, Collection)
-
cancelSnapshotRestore
public void cancelSnapshotRestore(String name)
Cancel previously started snapshot restore operation.- Specified by:
cancelSnapshotRestorein interfaceSnapshotMXBean- Parameters:
name- Snapshot name.- See Also:
IgniteSnapshot.cancelSnapshotRestore(String)
-
status
public String status()
Get the status of the current snapshot operation in the cluster.- Specified by:
statusin interfaceSnapshotMXBean- Returns:
- The status of a current snapshot operation in the cluster.
-
-