Class ReIndexJobResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.rebuildindex.rest.ReIndexJobResource
-
public class ReIndexJobResource extends Object
-
-
Constructor Summary
Constructors Constructor Description ReIndexJobResource(ReIndexJobManager reIndexJobManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponseacknowledgeRunningJob()Mark running re-index job as acknowledged.javax.ws.rs.core.ResponsegetMostRecentOrRunning()Return status of either the most recent or running re-index job.
-
-
-
Constructor Detail
-
ReIndexJobResource
public ReIndexJobResource(ReIndexJobManager reIndexJobManager)
-
-
Method Detail
-
getMostRecentOrRunning
public javax.ws.rs.core.Response getMostRecentOrRunning()
Return status of either the most recent or running re-index job. At any point in time, there is only one tracked re-index job.
-
acknowledgeRunningJob
public javax.ws.rs.core.Response acknowledgeRunningJob() throws InterruptedExceptionMark running re-index job as acknowledged. Return 200 if succeed. Otherwise: 400 - bad request if there is no running job 500 - internal server error if the job cannot be marked as acknowledged- Throws:
InterruptedException
-
-