Package org.zanata.rest.dto

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


        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

Related Classes of org.zanata.rest.dto.ReindexStatus

Copyright © 2018 www.massapicom. 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.