com.vip.saturn.job.console.domain.NamespaceMigrationOverallStatus Maven / Gradle / Ivy
/**
* Copyright 2016 vip.com.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
**/
package com.vip.saturn.job.console.domain;
/**
* @author hebelala
*/
public class NamespaceMigrationOverallStatus {
private boolean finished;
private int successCount;
private int failCount;
private int ignoreCount;
private int unDoCount;
private int totalCount;
private String moving = "";
public NamespaceMigrationOverallStatus() {
}
public NamespaceMigrationOverallStatus(int size) {
this.unDoCount = size;
this.totalCount = size;
}
public boolean isFinished() {
return finished;
}
public void setFinished(boolean finished) {
this.finished = finished;
}
public int getSuccessCount() {
return successCount;
}
public void setSuccessCount(int successCount) {
this.successCount = successCount;
}
public int getFailCount() {
return failCount;
}
public void setFailCount(int failCount) {
this.failCount = failCount;
}
public int getIgnoreCount() {
return ignoreCount;
}
public void setIgnoreCount(int ignoreCount) {
this.ignoreCount = ignoreCount;
}
public int getUnDoCount() {
return unDoCount;
}
public void setUnDoCount(int unDoCount) {
this.unDoCount = unDoCount;
}
public int getTotalCount() {
return totalCount;
}
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
}
public String getMoving() {
return moving;
}
public void setMoving(String moving) {
this.moving = moving;
}
public void incrementSuccessCount() {
successCount++;
}
public void incrementFailCount() {
failCount++;
}
public void incrementIgnoreCount() {
ignoreCount++;
}
public void decrementUnDoCount() {
unDoCount--;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy