Package com.tangosol.persistence
Interface PersistenceManagerMBean
-
public interface PersistenceManagerMBeanStandard MBean interface that exposes management attributes and operations relating to a PartitionedService configured with on-demand or active persistence.Each persistence-enabled PartitionedService registers a single instance of this MBean bound to a JMX name of the form: "Coherence:type=Persistence,service={ServiceName},responsibility=PersistenceCoordinator"
- Since:
- Coherence 12.2.1
- Author:
- rhl 2013.05.07
-
-
Field Summary
Fields Modifier and Type Field Description static StringARCHIVE_SNAPSHOT_BEGINNotification type for the start of archiving a snapshot.static StringARCHIVE_SNAPSHOT_ENDNotification type for the end of archiving a snapshot.static StringCREATE_SNAPSHOT_BEGINNotification type for the start of snapshot creation.static StringCREATE_SNAPSHOT_ENDNotification type for the end of snapshot creation.static StringPERSISTENCE_COORDINATORString representation of the responsibility of PersistenceCoordinator.static StringRECOVER_BEGINNotification type for the start of recovery.static StringRECOVER_DISALLOWEDNotification type for the recovery being disallowed by the quorum.static StringRECOVER_ENDNotification type for the end of recovery.static StringRECOVER_SNAPSHOT_BEGINNotification type for the start of recovering from a snapshot.static StringRECOVER_SNAPSHOT_ENDNotification type for the end of recovering from a snapshot.static StringREMOVE_ARCHIVED_SNAPSHOT_BEGINNotification type for the start of purging (removing) an archived snapshot.static StringREMOVE_ARCHIVED_SNAPSHOT_ENDNotification type for the end of purging (removing) an archived snapshot.static StringREMOVE_SNAPSHOT_BEGINNotification type for the start of removing a snapshot.static StringREMOVE_SNAPSHOT_ENDNotification type for the end of removing a snapshot.static StringRETRIEVE_ARCHIVED_SNAPSHOT_BEGINNotification type for the start of retrieving an archived snapshot.static StringRETRIEVE_ARCHIVED_SNAPSHOT_ENDNotification type for the end of retrieving an archiving snapshot.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidarchiveSnapshot(String sName)Archive the snapshot to a centralized location.voidcreateSnapshot(String sName)Create a snapshot of the service with the specified name.voidforceRecovery()Proceed with recovery despite the dynamic quorum policy objections.intgetCoordinatorId()Return the node id of the persistence coordinator.StringgetOperationStatus()Return the status of the current operation issued by the persistence coordinator.String[]getSnapshots()Return a list of snapshots that are available for recovery.booleanisIdle()Specifies whether or not the persistence coordinator is idle.String[]listArchivedSnapshots()Return a list of archived snapshots that the configured archiver knows about.String[]listArchivedSnapshotStores(String sName)Return a list of stores for a given archived snapshot.voidrecoverSnapshot(String sName)Recover the snapshot that was previously created with the specified name.voidremoveArchivedSnapshot(String sName)Purge the archived snapshot from a centralized location.voidremoveSnapshot(String sName)Remove the snapshot that was previously created with the specified name.voidretrieveArchivedSnapshot(String sName)Retrieve the archived snapshot from a centralized location.
-
-
-
Field Detail
-
PERSISTENCE_COORDINATOR
static final String PERSISTENCE_COORDINATOR
String representation of the responsibility of PersistenceCoordinator.- See Also:
- Constant Field Values
-
CREATE_SNAPSHOT_BEGIN
static final String CREATE_SNAPSHOT_BEGIN
Notification type for the start of snapshot creation.- See Also:
- Constant Field Values
-
CREATE_SNAPSHOT_END
static final String CREATE_SNAPSHOT_END
Notification type for the end of snapshot creation.- See Also:
- Constant Field Values
-
RECOVER_SNAPSHOT_BEGIN
static final String RECOVER_SNAPSHOT_BEGIN
Notification type for the start of recovering from a snapshot.- See Also:
- Constant Field Values
-
RECOVER_SNAPSHOT_END
static final String RECOVER_SNAPSHOT_END
Notification type for the end of recovering from a snapshot.- See Also:
- Constant Field Values
-
REMOVE_SNAPSHOT_BEGIN
static final String REMOVE_SNAPSHOT_BEGIN
Notification type for the start of removing a snapshot.- See Also:
- Constant Field Values
-
REMOVE_SNAPSHOT_END
static final String REMOVE_SNAPSHOT_END
Notification type for the end of removing a snapshot.- See Also:
- Constant Field Values
-
ARCHIVE_SNAPSHOT_BEGIN
static final String ARCHIVE_SNAPSHOT_BEGIN
Notification type for the start of archiving a snapshot.- See Also:
- Constant Field Values
-
ARCHIVE_SNAPSHOT_END
static final String ARCHIVE_SNAPSHOT_END
Notification type for the end of archiving a snapshot.- See Also:
- Constant Field Values
-
RETRIEVE_ARCHIVED_SNAPSHOT_BEGIN
static final String RETRIEVE_ARCHIVED_SNAPSHOT_BEGIN
Notification type for the start of retrieving an archived snapshot.- See Also:
- Constant Field Values
-
RETRIEVE_ARCHIVED_SNAPSHOT_END
static final String RETRIEVE_ARCHIVED_SNAPSHOT_END
Notification type for the end of retrieving an archiving snapshot.- See Also:
- Constant Field Values
-
REMOVE_ARCHIVED_SNAPSHOT_BEGIN
static final String REMOVE_ARCHIVED_SNAPSHOT_BEGIN
Notification type for the start of purging (removing) an archived snapshot.- See Also:
- Constant Field Values
-
REMOVE_ARCHIVED_SNAPSHOT_END
static final String REMOVE_ARCHIVED_SNAPSHOT_END
Notification type for the end of purging (removing) an archived snapshot.- See Also:
- Constant Field Values
-
RECOVER_BEGIN
static final String RECOVER_BEGIN
Notification type for the start of recovery.- See Also:
- Constant Field Values
-
RECOVER_END
static final String RECOVER_END
Notification type for the end of recovery.- See Also:
- Constant Field Values
-
RECOVER_DISALLOWED
static final String RECOVER_DISALLOWED
Notification type for the recovery being disallowed by the quorum.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCoordinatorId
int getCoordinatorId()
Return the node id of the persistence coordinator.- Returns:
- current persistence coordinator node id
-
getOperationStatus
String getOperationStatus()
Return the status of the current operation issued by the persistence coordinator.- Returns:
- the status of the current operation issued by the persistence coordinator
-
isIdle
boolean isIdle()
Specifies whether or not the persistence coordinator is idle.- Returns:
- true if the persistence coordinator is idle
-
getSnapshots
String[] getSnapshots()
Return a list of snapshots that are available for recovery.- Returns:
- a list of snapshots that are available for recovery
-
createSnapshot
void createSnapshot(String sName)
Create a snapshot of the service with the specified name.- Parameters:
sName- the snapshot name to create
-
recoverSnapshot
void recoverSnapshot(String sName)
Recover the snapshot that was previously created with the specified name.Note: the entire service is recovered from persisted state therefore transient caches are reset.
- Parameters:
sName- the snapshot name to recover
-
removeSnapshot
void removeSnapshot(String sName)
Remove the snapshot that was previously created with the specified name.- Parameters:
sName- the snapshot name to remove
-
archiveSnapshot
void archiveSnapshot(String sName)
Archive the snapshot to a centralized location.- Parameters:
sName- the snapshot name to archive
-
retrieveArchivedSnapshot
void retrieveArchivedSnapshot(String sName)
Retrieve the archived snapshot from a centralized location.- Parameters:
sName- the snapshot name to archive
-
removeArchivedSnapshot
void removeArchivedSnapshot(String sName)
Purge the archived snapshot from a centralized location.- Parameters:
sName- the snapshot name to purge
-
forceRecovery
void forceRecovery()
Proceed with recovery despite the dynamic quorum policy objections.
-
listArchivedSnapshots
String[] listArchivedSnapshots()
Return a list of archived snapshots that the configured archiver knows about. If none exist, an emptyString[] will be returned.- Returns:
- a
String[] of known archived snapshots
-
-