001// --------------------------------------------------------------------------------
002// Copyright 2002-2024 Echo Three, LLC
003//
004// Licensed under the Apache License, Version 2.0 (the "License");
005// you may not use this file except in compliance with the License.
006// You may obtain a copy of the License at
007//
008//     http://www.apache.org/licenses/LICENSE-2.0
009//
010// Unless required by applicable law or agreed to in writing, software
011// distributed under the License is distributed on an "AS IS" BASIS,
012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013// See the License for the specific language governing permissions and
014// limitations under the License.
015// --------------------------------------------------------------------------------
016
017package com.echothree.model.control.index.server.indexer;
018
019public class UpdateIndexResult {
020
021    private long remainingTime;
022    private boolean indexModified;
023    private boolean indexingComplete;
024    
025    public UpdateIndexResult(long remainingTime, boolean indexModified, boolean indexingComplete) {
026        this.remainingTime = remainingTime;
027        this.indexModified = indexModified;
028        this.indexingComplete = indexingComplete;
029    }
030
031    /**
032     * Returns the remainingTime.
033     * @return the remainingTime
034     */
035    public long getRemainingTime() {
036        return remainingTime;
037    }
038
039    /**
040     * Sets the remainingTime.
041     * @param remainingTime the remainingTime to set
042     */
043    public void setRemainingTime(long remainingTime) {
044        this.remainingTime = remainingTime;
045    }
046
047    /**
048     * Returns the indexModified.
049     * @return the indexModified
050     */
051    public boolean getIndexModified() {
052        return indexModified;
053    }
054
055    /**
056     * Sets the indexModified.
057     * @param indexModified the indexModified to set
058     */
059    public void setIndexModified(boolean indexModified) {
060        this.indexModified = indexModified;
061    }
062    
063    /**
064     * Returns the indexingComplete.
065     * @return the indexingComplete
066     */
067    public boolean getIndexingComplete() {
068        return indexingComplete;
069    }
070
071    /**
072     * Sets the indexingComplete.
073     * @param indexingComplete the indexingComplete to set
074     */
075    public void setIndexingComplete(boolean indexingComplete) {
076        this.indexingComplete = indexingComplete;
077    }
078    
079}