
gobblin.service.FlowStatistics Maven / Gradle / Ivy
The newest version!
package gobblin.service;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nonnull;
import com.linkedin.data.DataMap;
import com.linkedin.data.schema.PathSpec;
import com.linkedin.data.schema.RecordDataSchema;
import com.linkedin.data.template.DataTemplateUtil;
import com.linkedin.data.template.GetMode;
import com.linkedin.data.template.RecordTemplate;
import com.linkedin.data.template.SetMode;
/**
* Statistics from a flow execution
*
*/
@Generated(value = "com.linkedin.pegasus.generator.JavaCodeUtil", comments = "Rest.li Data Template. Generated from /Users/ibuenros/repos/gobblin/gobblin-restli/gobblin-flow-config-service/gobblin-flow-config-service-api/src/main/pegasus/gobblin/service/FlowStatistics.pdsc.", date = "Fri Jul 21 13:35:27 PDT 2017")
public class FlowStatistics
extends RecordTemplate
{
private final static FlowStatistics.Fields _fields = new FlowStatistics.Fields();
private final static RecordDataSchema SCHEMA = ((RecordDataSchema) DataTemplateUtil.parseSchema("{\"type\":\"record\",\"name\":\"FlowStatistics\",\"namespace\":\"gobblin.service\",\"doc\":\"Statistics from a flow execution\",\"fields\":[{\"name\":\"executionStartTime\",\"type\":\"long\",\"doc\":\"Epoch time of when the execution began\"},{\"name\":\"executionEndTime\",\"type\":\"long\",\"doc\":\"Epoch time of when the execution ended\"}]}"));
private final static RecordDataSchema.Field FIELD_ExecutionStartTime = SCHEMA.getField("executionStartTime");
private final static RecordDataSchema.Field FIELD_ExecutionEndTime = SCHEMA.getField("executionEndTime");
public FlowStatistics() {
super(new DataMap(), SCHEMA);
}
public FlowStatistics(DataMap data) {
super(data, SCHEMA);
}
public static FlowStatistics.Fields fields() {
return _fields;
}
/**
* Existence checker for executionStartTime
*
* @see FlowStatistics.Fields#executionStartTime
*/
public boolean hasExecutionStartTime() {
return contains(FIELD_ExecutionStartTime);
}
/**
* Remover for executionStartTime
*
* @see FlowStatistics.Fields#executionStartTime
*/
public void removeExecutionStartTime() {
remove(FIELD_ExecutionStartTime);
}
/**
* Getter for executionStartTime
*
* @see FlowStatistics.Fields#executionStartTime
*/
public Long getExecutionStartTime(GetMode mode) {
return obtainDirect(FIELD_ExecutionStartTime, Long.class, mode);
}
/**
* Getter for executionStartTime
*
* @return
* Required field. Could be null for partial record.
* @see FlowStatistics.Fields#executionStartTime
*/
@Nonnull
public Long getExecutionStartTime() {
return obtainDirect(FIELD_ExecutionStartTime, Long.class, GetMode.STRICT);
}
/**
* Setter for executionStartTime
*
* @see FlowStatistics.Fields#executionStartTime
*/
public FlowStatistics setExecutionStartTime(Long value, SetMode mode) {
putDirect(FIELD_ExecutionStartTime, Long.class, Long.class, value, mode);
return this;
}
/**
* Setter for executionStartTime
*
* @param value
* Must not be null. For more control, use setters with mode instead.
* @see FlowStatistics.Fields#executionStartTime
*/
public FlowStatistics setExecutionStartTime(
@Nonnull
Long value) {
putDirect(FIELD_ExecutionStartTime, Long.class, Long.class, value, SetMode.DISALLOW_NULL);
return this;
}
/**
* Setter for executionStartTime
*
* @see FlowStatistics.Fields#executionStartTime
*/
public FlowStatistics setExecutionStartTime(long value) {
putDirect(FIELD_ExecutionStartTime, Long.class, Long.class, value, SetMode.DISALLOW_NULL);
return this;
}
/**
* Existence checker for executionEndTime
*
* @see FlowStatistics.Fields#executionEndTime
*/
public boolean hasExecutionEndTime() {
return contains(FIELD_ExecutionEndTime);
}
/**
* Remover for executionEndTime
*
* @see FlowStatistics.Fields#executionEndTime
*/
public void removeExecutionEndTime() {
remove(FIELD_ExecutionEndTime);
}
/**
* Getter for executionEndTime
*
* @see FlowStatistics.Fields#executionEndTime
*/
public Long getExecutionEndTime(GetMode mode) {
return obtainDirect(FIELD_ExecutionEndTime, Long.class, mode);
}
/**
* Getter for executionEndTime
*
* @return
* Required field. Could be null for partial record.
* @see FlowStatistics.Fields#executionEndTime
*/
@Nonnull
public Long getExecutionEndTime() {
return obtainDirect(FIELD_ExecutionEndTime, Long.class, GetMode.STRICT);
}
/**
* Setter for executionEndTime
*
* @see FlowStatistics.Fields#executionEndTime
*/
public FlowStatistics setExecutionEndTime(Long value, SetMode mode) {
putDirect(FIELD_ExecutionEndTime, Long.class, Long.class, value, mode);
return this;
}
/**
* Setter for executionEndTime
*
* @param value
* Must not be null. For more control, use setters with mode instead.
* @see FlowStatistics.Fields#executionEndTime
*/
public FlowStatistics setExecutionEndTime(
@Nonnull
Long value) {
putDirect(FIELD_ExecutionEndTime, Long.class, Long.class, value, SetMode.DISALLOW_NULL);
return this;
}
/**
* Setter for executionEndTime
*
* @see FlowStatistics.Fields#executionEndTime
*/
public FlowStatistics setExecutionEndTime(long value) {
putDirect(FIELD_ExecutionEndTime, Long.class, Long.class, value, SetMode.DISALLOW_NULL);
return this;
}
@Override
public FlowStatistics clone()
throws CloneNotSupportedException
{
return ((FlowStatistics) super.clone());
}
@Override
public FlowStatistics copy()
throws CloneNotSupportedException
{
return ((FlowStatistics) super.copy());
}
public static class Fields
extends PathSpec
{
public Fields(List path, String name) {
super(path, name);
}
public Fields() {
super();
}
/**
* Epoch time of when the execution began
*
*/
public PathSpec executionStartTime() {
return new PathSpec(getPathComponents(), "executionStartTime");
}
/**
* Epoch time of when the execution ended
*
*/
public PathSpec executionEndTime() {
return new PathSpec(getPathComponents(), "executionEndTime");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy