Package com.tangosol.persistence
Interface PersistenceManagerMBean
public interface PersistenceManagerMBean
Standard 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
Modifier and TypeFieldDescriptionstatic final String
Notification type for the start of archiving a snapshot.static final String
Notification type for the end of archiving a snapshot.static final String
Notification type for the start of snapshot creation.static final String
Notification type for the end of snapshot creation.static final String
String representation of the responsibility of PersistenceCoordinator.static final String
Notification type for the start of recovery.static final String
Notification type for the recovery being disallowed by the quorum.static final String
Notification type for the end of recovery.static final String
Notification type for the start of recovering from a snapshot.static final String
Notification type for the end of recovering from a snapshot.static final String
Notification type for the start of purging (removing) an archived snapshot.static final String
Notification type for the end of purging (removing) an archived snapshot.static final String
Notification type for the start of removing a snapshot.static final String
Notification type for the end of removing a snapshot.static final String
Notification type for the start of retrieving an archived snapshot.static final String
Notification type for the end of retrieving an archiving snapshot. -
Method Summary
Modifier and TypeMethodDescriptionvoid
archiveSnapshot
(String sName) Archive the snapshot to a centralized location.void
createSnapshot
(String sName) Create a snapshot of the service with the specified name.void
Proceed with recovery despite the dynamic quorum policy objections.int
Return the node id of the persistence coordinator.Return the status of the current operation issued by the persistence coordinator.String[]
Return a list of snapshots that are available for recovery.boolean
isIdle()
Specifies whether or not the persistence coordinator is idle.String[]
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.void
recoverSnapshot
(String sName) Recover the snapshot that was previously created with the specified name.void
removeArchivedSnapshot
(String sName) Purge the archived snapshot from a centralized location.void
removeSnapshot
(String sName) Remove the snapshot that was previously created with the specified name.void
retrieveArchivedSnapshot
(String sName) Retrieve the archived snapshot from a centralized location.
-
Field Details
-
PERSISTENCE_COORDINATOR
String representation of the responsibility of PersistenceCoordinator.- See Also:
-
CREATE_SNAPSHOT_BEGIN
Notification type for the start of snapshot creation.- See Also:
-
CREATE_SNAPSHOT_END
Notification type for the end of snapshot creation.- See Also:
-
RECOVER_SNAPSHOT_BEGIN
Notification type for the start of recovering from a snapshot.- See Also:
-
RECOVER_SNAPSHOT_END
Notification type for the end of recovering from a snapshot.- See Also:
-
REMOVE_SNAPSHOT_BEGIN
Notification type for the start of removing a snapshot.- See Also:
-
REMOVE_SNAPSHOT_END
Notification type for the end of removing a snapshot.- See Also:
-
ARCHIVE_SNAPSHOT_BEGIN
Notification type for the start of archiving a snapshot.- See Also:
-
ARCHIVE_SNAPSHOT_END
Notification type for the end of archiving a snapshot.- See Also:
-
RETRIEVE_ARCHIVED_SNAPSHOT_BEGIN
Notification type for the start of retrieving an archived snapshot.- See Also:
-
RETRIEVE_ARCHIVED_SNAPSHOT_END
Notification type for the end of retrieving an archiving snapshot.- See Also:
-
REMOVE_ARCHIVED_SNAPSHOT_BEGIN
Notification type for the start of purging (removing) an archived snapshot.- See Also:
-
REMOVE_ARCHIVED_SNAPSHOT_END
Notification type for the end of purging (removing) an archived snapshot.- See Also:
-
RECOVER_BEGIN
Notification type for the start of recovery.- See Also:
-
RECOVER_END
Notification type for the end of recovery.- See Also:
-
RECOVER_DISALLOWED
Notification type for the recovery being disallowed by the quorum.- See Also:
-
-
Method Details
-
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
Create a snapshot of the service with the specified name.- Parameters:
sName
- the snapshot name to create
-
recoverSnapshot
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
Remove the snapshot that was previously created with the specified name.- Parameters:
sName
- the snapshot name to remove
-
archiveSnapshot
Archive the snapshot to a centralized location.- Parameters:
sName
- the snapshot name to archive
-
retrieveArchivedSnapshot
Retrieve the archived snapshot from a centralized location.- Parameters:
sName
- the snapshot name to archive
-
removeArchivedSnapshot
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
-
listArchivedSnapshotStores
Return a list of stores for a given archived snapshot.- Parameters:
sName
- the snapshot name to list stores for- Returns:
- a
String
[] of known stores for the archived snapshot
-