if (searchIndexManager.getProcessHandle().isDone()) {
throw new ZanataServiceException(
"Reindexing not in currently in progress", 404);
}
ReindexStatus status = new ReindexStatus();
status.setCurrentElementType(searchIndexManager.getCurrentClassName());
status.setIndexedElements(searchIndexManager.getProcessHandle()
.getCurrentProgress());
status.setTotalElements(searchIndexManager.getProcessHandle()
.getMaxProgress());
// TODO This service is currently not being used
// To re-add these properties, just implement TimedAsyncHandle
// status.setTimeElapsed(searchIndexManager.getProcessHandle().getElapsedTime());
// status.setTimeRemaining(searchIndexManager.getProcessHandle().getEstimatedTimeRemaining());