Class ReIndexJobResource


  • public class ReIndexJobResource
    extends Object
    • 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 InterruptedException
        Mark 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