public class IndexSnapshotBackdoor extends Object
Constructor and Description |
---|
IndexSnapshotBackdoor(IndexSnapshotOperator indexSnapshotOperator,
GlobalPermissionManager permissionManager,
JiraAuthenticationContext authContext) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createIndexSnapshot()
Start taking an index snapshot and cleaning up the snapshots' directory to 3 maximum snapshots.
|
javax.ws.rs.core.Response |
deleteAllSnapshots()
Deletes all index snapshot files.
|
javax.ws.rs.core.Response |
deleteIndexSnapshot(String snapshotName)
Deletes index snapshot file with a name as passed in parameter.
|
javax.ws.rs.core.Response |
getIndexSnapshot(String snapshotName) |
javax.ws.rs.core.Response |
listIndexSnapshot()
Lists available index snapshots absolute paths.
|
public IndexSnapshotBackdoor(IndexSnapshotOperator indexSnapshotOperator, GlobalPermissionManager permissionManager, JiraAuthenticationContext authContext)
public javax.ws.rs.core.Response getIndexSnapshot(String snapshotName)
public javax.ws.rs.core.Response listIndexSnapshot() throws IndexException
Only System Administrator can request listing index snapshots.
IndexException
public javax.ws.rs.core.Response createIndexSnapshot() throws IndexException
Only System Administrator can request creation of snapshot. There is no guarantee as to the time after which the snapshot will be available.
IndexException
public javax.ws.rs.core.Response deleteAllSnapshots()
public javax.ws.rs.core.Response deleteIndexSnapshot(String snapshotName)
snapshotName
- file name of a snapshot that should be removed.Copyright © 2002-2024 Atlassian. All Rights Reserved.