package com.thinkbiganalytics.nifi.provenance.model.stats;
/*-
* #%L
* thinkbig-nifi-provenance-model
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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.
* #L%
*/
import org.joda.time.DateTime;
import java.io.Serializable;
/**
*/
public class BaseStatistics implements Serializable {
protected DateTime time;
protected long bytesIn = 0L;
protected long bytesOut = 0L;
protected long duration = 0L;
protected long totalCount = 0L;
protected long jobsStarted = 0L;
protected long jobsFinished = 0L;
protected long processorsFailed = 0L;
protected long flowFilesStarted = 0L;
protected long flowFilesFinished = 0L;
protected long jobsFailed = 0L;
protected long successfulJobDuration = 0L;
protected long jobDuration = 0L;
protected long maxEventId = 0L;
protected String clusterNodeId;
protected String clusterNodeAddress;
public DateTime getTime() {
return time;
}
public void setTime(DateTime time) {
this.time = time;
}
public long getBytesIn() {
return bytesIn;
}
public void setBytesIn(long bytesIn) {
this.bytesIn = bytesIn;
}
public long getBytesOut() {
return bytesOut;
}
public void setBytesOut(long bytesOut) {
this.bytesOut = bytesOut;
}
public long getDuration() {
return duration;
}
public void setDuration(long duration) {
this.duration = duration;
}
public long getTotalCount() {
return totalCount;
}
public void setTotalCount(long totalCount) {
this.totalCount = totalCount;
}
public long getJobsStarted() {
return jobsStarted;
}
public void setJobsStarted(long jobsStarted) {
this.jobsStarted = jobsStarted;
}
public long getJobsFinished() {
return jobsFinished;
}
public void setJobsFinished(long jobsFinished) {
this.jobsFinished = jobsFinished;
}
public long getProcessorsFailed() {
return processorsFailed;
}
public void setProcessorsFailed(long processorsFailed) {
this.processorsFailed = processorsFailed;
}
public long getFlowFilesStarted() {
return flowFilesStarted;
}
public void setFlowFilesStarted(long flowFilesStarted) {
this.flowFilesStarted = flowFilesStarted;
}
public long getFlowFilesFinished() {
return flowFilesFinished;
}
public void setFlowFilesFinished(long flowFilesFinished) {
this.flowFilesFinished = flowFilesFinished;
}
public long getJobsFailed() {
return jobsFailed;
}
public void setJobsFailed(long jobsFailed) {
this.jobsFailed = jobsFailed;
}
public long getSuccessfulJobDuration() {
return successfulJobDuration;
}
public void setSuccessfulJobDuration(long successfulJobDuration) {
this.successfulJobDuration = successfulJobDuration;
}
public long getJobDuration() {
return jobDuration;
}
public void setJobDuration(long jobDuration) {
this.jobDuration = jobDuration;
}
public long getMaxEventId() {
return maxEventId;
}
public void setMaxEventId(long maxEventId) {
this.maxEventId = maxEventId;
}
public String getClusterNodeId() {
return clusterNodeId;
}
public void setClusterNodeId(String clusterNodeId) {
this.clusterNodeId = clusterNodeId;
}
public String getClusterNodeAddress() {
return clusterNodeAddress;
}
public void setClusterNodeAddress(String clusterNodeAddress) {
this.clusterNodeAddress = clusterNodeAddress;
}
public void clear() {
this.time = null;
this.bytesIn = 0L;
this.bytesOut = 0L;
this.duration = 0L;
this.totalCount = 0L;
this.jobsStarted = 0L;
this.jobsFinished = 0L;
this.processorsFailed = 0L;
this.flowFilesStarted = 0L;
this.flowFilesFinished = 0L;
this.jobsFailed = 0L;
this.successfulJobDuration = 0L;
this.jobDuration = 0L;
this.maxEventId = 0L;
this.clusterNodeId = null;
this.clusterNodeAddress = null;
}
}