@@ -0,0 +1,2961 @@
+/*%0A * Copyright 2010, Red Hat, Inc. and individual contributors as indicated by the%0A * @author tags. See the copyright.txt file in the distribution for a full%0A * listing of individual contributors.%0A * %0A * This is free software; you can redistribute it and/or modify it under the%0A * terms of the GNU Lesser General Public License as published by the Free%0A * Software Foundation; either version 2.1 of the License, or (at your option)%0A * any later version.%0A * %0A * This software is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS%0A * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more%0A * details.%0A * %0A * You should have received a copy of the GNU Lesser General Public License%0A * along with this software; if not, write to the Free Software Foundation,%0A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF%0A * site: http://www.fsf.org.%0A */%0Apackage org.zanata.rest.dto;%0A%0Aimport javax.xml.bind.annotation.XmlElement;%0Aimport javax.xml.bind.annotation.XmlRootElement;%0Aimport javax.xml.bind.annotation.XmlType;%0A%0A/**%0A * Status of a reindex operation.%0A * %0A * @author Carlos Munoz %3Ca href=%22mailto:camunoz@redhat.com%22%3Ecamunoz@redhat.com%3C/a%3E%0A */%0A@XmlRootElement(name = %22reindexStatus%22)%0A@XmlType(name = %22reindexStatusType%22)%0Apublic class ReindexStatus%0A%7B%0A   private boolean startedReindex;%0A   %0A   private long percentageComplete;%0A   %0A   private long indexedElements;%0A   %0A   private long totalElements;%0A   %0A   private String currentElementType;%0A   %0A   private long timeElapsed;%0A   %0A   private long timeRemaining;%0A%0A   %0A   public boolean isStartedReindex()%0A   %7B%0A      return startedReindex;%0A   %7D%0A%0A   public void setStartedReindex(boolean startedReindex)%0A   %7B%0A      this.startedReindex = startedReindex;%0A   %7D%0A%0A   @XmlElement%0A   public long getPercentageComplete()%0A   %7B%0A      return this.indexedElements * 100 / this.totalElements;%0A   %7D%0A%0A   @XmlElement%0A   public long getIndexedElements()%0A   %7B%0A      return indexedElements;%0A   %7D%0A%0A   public void setIndexedElements(long indexedElements)%0A   %7B%0A      this.indexedElements = indexedElements;%0A   %7D%0A%0A   @XmlElement%0A   public long getTotalElements()%0A   %7B%0A      return totalElements;%0A   %7D%0A%0A   public void setTotalElements(long totalElements)%0A   %7B%0A      this.totalElements = totalElements;%0A   %7D%0A%0A   @XmlElement%0A   public String getCurrentElementType()%0A   %7B%0A      return currentElementType;%0A   %7D%0A%0A   public void setCurrentElementType(String currentElementType)%0A   %7B%0A      this.currentElementType = currentElementType;%0A   %7D%0A%0A   @XmlElement%0A   public long getTimeElapsed()%0A   %7B%0A      return timeElapsed;%0A   %7D%0A%0A   public void setTimeElapsed(long timeElapsed)%0A   %7B%0A      this.timeElapsed = timeElapsed;%0A   %7D%0A%0A   @XmlElement%0A   public long getTimeRemaining()%0A   %7B%0A      return timeRemaining;%0A   %7D%0A%0A   public void setTimeRemaining(long timeRemaining)%0A   %7B%0A      this.timeRemaining = timeRemaining;%0A   %7D%0A%7D%0A

Add DTO for indexing status.