Examples of ReindexStatus


Examples of org.zanata.rest.dto.ReindexStatus

        if (searchIndexManager.getProcessHandle().isDone()) {
            startedReindex = true;
            searchIndexManager.startProcess();
        }

        ReindexStatus status = this.getReindexStatus();
        status.setStartedReindex(startedReindex);
        return status;
    }
View Full Code Here

Examples of org.zanata.rest.dto.ReindexStatus

        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());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.