public interface RepositoryManagementMBean
The status of an operation is represented by a CompositeData
instance consisting at least of the items code
, id
,
and message
. Implementations are free to add further items.
The code
item is an integer encoding the current status of
the respective operation. Valid values and its semantics are:
0
: Operation not available. For example
because the system does not implement the operation or the
system is in a state where it does not allow the operation to
be carried out (e.g. the operation is already running). The
message
should give further indication of the exact
reason.1
: Status not available. Usually because
there was no prior attempt to start the operation. The
message
should give further indication of the exact
reason.2
: Operation initiated. The message
should give further information of when the operation was
initiated. This status mean that the operation will be performed
some time in the future without impacting overall system behaviour
and that no further status updates will be available until this
operation is performed next time.3
: Operation running.4
: Operation succeeded. The message
should
give further information on how long the operation took to
complete.5
: Operation failed. The message
should give
further information on the reason for the failure.
In all cases the message
may provide additional information
that might be useful in the context of the operation.
The id
is an identifier for the invocation of an operation.
It is reported as a part of the status for clients to relate the
status to invocation. -1
is returned when not available.
Modifier and Type | Interface and Description |
---|---|
static class |
RepositoryManagementMBean.StatusCode
Enum whose ordinals correspond to the status codes.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE |
Modifier and Type | Method and Description |
---|---|
javax.management.openmbean.CompositeData |
cancelRevisionGC()
Cancel a running revision garbage collection operation.
|
javax.management.openmbean.CompositeData |
cancelRevisionGCForRole(java.lang.String role)
Cancel a running revision garbage collection operation for a given role.
|
java.lang.String |
checkpoint(long lifetime)
Deprecated.
Use
CheckpointMBean instead |
javax.management.openmbean.CompositeData |
getBackupStatus()
Backup status
|
javax.management.openmbean.CompositeData |
getDataStoreGCStatus()
Data store garbage collection status
|
javax.management.openmbean.CompositeData |
getPropertyIndexAsyncReindexStatus()
Asynchronous Property Index reindexing status
|
javax.management.openmbean.CompositeData |
getRestoreStatus()
Restore status
|
javax.management.openmbean.CompositeData |
getRevisionGCStatus()
Revision garbage collection status
|
javax.management.openmbean.CompositeData |
getRevisionGCStatusForRole(java.lang.String role)
Revision garbage collection status for a given role.
|
javax.management.openmbean.TabularData |
refreshAllSessions()
Refresh all currently open sessions.
|
javax.management.openmbean.CompositeData |
startBackup()
Initiate a backup operation.
|
javax.management.openmbean.CompositeData |
startDataStoreGC(boolean markOnly)
Initiate a data store garbage collection operation
|
javax.management.openmbean.CompositeData |
startPropertyIndexAsyncReindex()
Initiate a reindex operation for the property indexes marked for
reindexing
|
javax.management.openmbean.CompositeData |
startRestore()
Initiate a restore operation.
|
javax.management.openmbean.CompositeData |
startRevisionGC()
Initiate a revision garbage collection operation
|
javax.management.openmbean.CompositeData |
startRevisionGCForRole(java.lang.String role)
Initiate a revision garbage collection operation
|
static final java.lang.String TYPE
@Description(value="Creates a backup of the persistent state of the repository") javax.management.openmbean.CompositeData startBackup()
@Description(value="The status of the ongoing operation, or the terminal status of the last completed backup operation") javax.management.openmbean.CompositeData getBackupStatus()
@Description(value="Restores the repository from a backup") javax.management.openmbean.CompositeData startRestore()
@Description(value="The status of the ongoing operation, or the terminal status of the last completed restore operation") javax.management.openmbean.CompositeData getRestoreStatus()
@Description(value="Initiates a data store garbage collection operation") javax.management.openmbean.CompositeData startDataStoreGC(@Name(value="markOnly") @Description(value="Set to true to only mark references and not sweep in the mark and sweep operation. This mode is to be used when the underlying BlobStore is shared between multiple different repositories. For all other cases set it to false to perform full garbage collection") boolean markOnly)
markOnly
- whether to only mark references and not sweep in the mark and sweep operation.@Description(value="Data store garbage collection status") javax.management.openmbean.CompositeData getDataStoreGCStatus()
@Description(value="Initiates a revision garbage collection operation") javax.management.openmbean.CompositeData startRevisionGC()
@Description(value="Initiates a revision garbage collection operation for a given role") javax.management.openmbean.CompositeData startRevisionGCForRole(java.lang.String role)
@Description(value="Cancel a running revision garbage collection operation. Does nothing if revision garbage collection is not running.") javax.management.openmbean.CompositeData cancelRevisionGC()
@Description(value="Cancel a running revision garbage collection operation. Does nothing if revision garbage collection is not running.") javax.management.openmbean.CompositeData cancelRevisionGCForRole(java.lang.String role)
@Description(value="Revision garbage collection status") javax.management.openmbean.CompositeData getRevisionGCStatus()
@Description(value="Revision garbage collection status for a given role") javax.management.openmbean.CompositeData getRevisionGCStatusForRole(java.lang.String role)
@Deprecated java.lang.String checkpoint(long lifetime)
CheckpointMBean
insteadlifetime
- time (in milliseconds, > 0) that the checkpoint
should remain availablenull
if
the checkpoint could not be set.@Description(value="Initiates a reindex operation for the property indexes marked for reindexing") javax.management.openmbean.CompositeData startPropertyIndexAsyncReindex()
@Description(value="Asynchronous Property Index reindexing status") javax.management.openmbean.CompositeData getPropertyIndexAsyncReindexStatus()
@Description(value="Refresh all currently open sessions") javax.management.openmbean.TabularData refreshAllSessions()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"