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 | Method and Description |
---|---|
String |
checkpoint(long lifetime)
Deprecated.
Use
CheckpointMBean instead |
CompositeData |
getBackupStatus()
Backup status
|
CompositeData |
getDataStoreGCStatus()
Data store garbage collection status
|
CompositeData |
getPropertyIndexAsyncReindexStatus()
Asynchronous Property Index reindexing status
|
CompositeData |
getRestoreStatus()
Restore status
|
CompositeData |
getRevisionGCStatus()
Revision garbage collection status
|
CompositeData |
startBackup()
Initiate a backup operation.
|
CompositeData |
startDataStoreGC(boolean markOnly)
Initiate a data store garbage collection operation
|
CompositeData |
startPropertyIndexAsyncReindex()
Initiate a reindex operation for the property indexes marked for
reindexing
|
CompositeData |
startRestore()
Initiate a restore operation.
|
CompositeData |
startRevisionGC()
Initiate a revision garbage collection operation
|
static final String TYPE
CompositeData startBackup()
CompositeData getBackupStatus()
CompositeData startRestore()
CompositeData getRestoreStatus()
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.CompositeData getDataStoreGCStatus()
CompositeData startRevisionGC()
CompositeData getRevisionGCStatus()
@Deprecated String checkpoint(long lifetime)
CheckpointMBean
insteadlifetime
- time (in milliseconds, > 0) that the checkpoint
should remain availablenull
if
the checkpoint could not be set.CompositeData startPropertyIndexAsyncReindex()
CompositeData getPropertyIndexAsyncReindexStatus()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"