public class IndexSnapshotResource extends Object
Modifier and Type | Field and Description |
---|---|
static long |
IS_SNAPSHOT_RUNNING_RESPONSE_CACHE_TIME_IN_SECONDS |
Constructor and Description |
---|
IndexSnapshotResource(IndexSnapshotOperator indexSnapshotOperator,
GlobalPermissionManager permissionManager,
JiraAuthenticationContext authContext) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createIndexSnapshot()
Tries to start taking an index snapshot if no other snapshot creation process is in progress.
|
javax.ws.rs.core.Response |
isIndexSnapshotRunning()
Answers true if index snapshot creation is currently running.
|
javax.ws.rs.core.Response |
listIndexSnapshot()
Lists available index snapshots absolute paths with timestamps.
|
void |
onClearCache(ClearCacheEvent event) |
public static final long IS_SNAPSHOT_RUNNING_RESPONSE_CACHE_TIME_IN_SECONDS
public IndexSnapshotResource(IndexSnapshotOperator indexSnapshotOperator, GlobalPermissionManager permissionManager, JiraAuthenticationContext authContext)
public javax.ws.rs.core.Response createIndexSnapshot()
Only System Administrator can request creation of snapshot. There is no guarantee as to the time after which the snapshot will be available.
public javax.ws.rs.core.Response listIndexSnapshot()
Only System Administrator can request listing index snapshots.
public javax.ws.rs.core.Response isIndexSnapshotRunning()
Only System Administrator can request current snapshot creation status.
@EventListener public void onClearCache(ClearCacheEvent event)
Copyright © 2002-2024 Atlassian. All Rights Reserved.