code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
public String getType() { return this.type; }
Base Executable that nodes and flows are based.
getType
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setType(final String type) { this.type = type; }
Base Executable that nodes and flows are based.
setType
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public long getStartTime() { return this.startTime; }
Base Executable that nodes and flows are based.
getStartTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setStartTime(final long startTime) { this.startTime = startTime; }
Base Executable that nodes and flows are based.
setStartTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setClusterInfo(final ClusterInfo clusterInfo) { this.clusterInfo = clusterInfo; }
Base Executable that nodes and flows are based.
setClusterInfo
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public ClusterInfo getClusterInfo() { return this.clusterInfo; }
Base Executable that nodes and flows are based.
getClusterInfo
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public long getEndTime() { return this.endTime; }
Base Executable that nodes and flows are based.
getEndTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setEndTime(final long endTime) { this.endTime = endTime; }
Base Executable that nodes and flows are based.
setEndTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public long getUpdateTime() { return this.updateTime; }
Base Executable that nodes and flows are based.
getUpdateTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setUpdateTime(final long updateTime) { this.updateTime = updateTime; }
Base Executable that nodes and flows are based.
setUpdateTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public boolean isKilledBySLA() { return this.killedBySLA; }
Base Executable that nodes and flows are based.
isKilledBySLA
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setKilledBySLA(final boolean killedBySLA) { this.killedBySLA = killedBySLA; }
Base Executable that nodes and flows are based.
setKilledBySLA
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public Set<String> getOutNodes() { return this.outNodes; }
Base Executable that nodes and flows are based.
getOutNodes
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public Set<String> getInNodes() { return this.inNodes; }
Base Executable that nodes and flows are based.
getInNodes
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public boolean hasJobSource() { return this.jobSource != null; }
Base Executable that nodes and flows are based.
hasJobSource
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public boolean hasPropsSource() { return this.propsSource != null; }
Base Executable that nodes and flows are based.
hasPropsSource
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public String getJobSource() { return this.jobSource; }
Base Executable that nodes and flows are based.
getJobSource
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setJobSource(String jobSource) { this.jobSource = jobSource; }
Base Executable that nodes and flows are based.
setJobSource
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public String getPropsSource() { return this.propsSource; }
Base Executable that nodes and flows are based.
getPropsSource
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public Props getInputProps() { return this.inputProps; }
Base Executable that nodes and flows are based.
getInputProps
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setInputProps(final Props input) { this.inputProps = input; }
Base Executable that nodes and flows are based.
setInputProps
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public Props getOutputProps() { return this.outputProps; }
Base Executable that nodes and flows are based.
getOutputProps
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setOutputProps(final Props output) { this.outputProps = output; }
Base Executable that nodes and flows are based.
setOutputProps
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public long getDelayedExecution() { return this.delayExecution; }
Base Executable that nodes and flows are based.
getDelayedExecution
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setDelayedExecution(final long delayMs) { this.delayExecution = delayMs; }
Base Executable that nodes and flows are based.
setDelayedExecution
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public List<ExecutionAttempt> getPastAttemptList() { return this.pastAttempts; }
Base Executable that nodes and flows are based.
getPastAttemptList
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public int getAttempt() { return this.attempt.get(); }
Base Executable that nodes and flows are based.
getAttempt
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public String getModifiedBy() { return this.modifiedBy; }
Base Executable that nodes and flows are based.
getModifiedBy
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setModifiedBy(final String modifiedBy) { this.modifiedBy = modifiedBy; }
Base Executable that nodes and flows are based.
setModifiedBy
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public String getFailureMessage() { return this.failureMessage; }
Base Executable that nodes and flows are based.
getFailureMessage
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setFailureMessage(final String failureMessage) { this.failureMessage = failureMessage; }
Base Executable that nodes and flows are based.
setFailureMessage
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void resetForRetry() { final ExecutionAttempt pastAttempt = new ExecutionAttempt(this.attempt.get(), this); this.attempt.incrementAndGet(); synchronized (this) { this.pastAttempts.add(pastAttempt); } this.setStartTime(-1); this.setEndTime(-1); this.setUpdateTime(System.current...
Base Executable that nodes and flows are based.
resetForRetry
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public List<Object> getAttemptObjects() { final List<Object> array = new ArrayList<>(); for (final ExecutionAttempt attempt : this.pastAttempts) { array.add(attempt.toObject()); } return array; }
Base Executable that nodes and flows are based.
getAttemptObjects
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public String getNestedId() { return getPrintableId(":"); }
Base Executable that nodes and flows are based.
getNestedId
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public String getPrintableId(final String delimiter) { if (this.getParentFlow() == null || this.getParentFlow() instanceof ExecutableFlow) { return getId(); } return getParentFlow().getPrintableId(delimiter) + delimiter + getId(); }
Base Executable that nodes and flows are based.
getPrintableId
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public Map<String, Object> toObject() { final Map<String, Object> mapObj = new HashMap<>(); fillMapFromExecutable(mapObj); return mapObj; }
Base Executable that nodes and flows are based.
toObject
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
protected void fillMapFromExecutable(final Map<String, Object> objMap) { objMap.put(ID_PARAM, this.id); objMap.put(STATUS_PARAM, this.status.toString()); objMap.put(START_TIME_PARAM, this.startTime); objMap.put(END_TIME_PARAM, this.endTime); objMap.put(UPDATE_TIME_PARAM, this.updateTime); objMap...
Base Executable that nodes and flows are based.
fillMapFromExecutable
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void fillExecutableFromMapObject(final TypedMapWrapper<String, Object> wrappedMap) { this.id = wrappedMap.getString(ID_PARAM); this.type = wrappedMap.getString(TYPE_PARAM); this.condition = wrappedMap.getString(CONDITION_PARAM); this.conditionOnJobStatus = ConditionOnJobStatus.fromString(wrappedM...
Base Executable that nodes and flows are based.
fillExecutableFromMapObject
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void fillExecutableFromMapObject(final Map<String, Object> objMap) { final TypedMapWrapper<String, Object> wrapper = new TypedMapWrapper<>(objMap); fillExecutableFromMapObject(wrapper); }
Base Executable that nodes and flows are based.
fillExecutableFromMapObject
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public Map<String, Object> toUpdateObject() { final Map<String, Object> updatedNodeMap = new HashMap<>(); updatedNodeMap.put(ID_PARAM, getId()); updatedNodeMap.put(STATUS_PARAM, getStatus().getNumVal()); updatedNodeMap.put(START_TIME_PARAM, getStartTime()); updatedNodeMap.put(END_TIME_PARAM, getEndT...
Base Executable that nodes and flows are based.
toUpdateObject
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void applyUpdateObject(final TypedMapWrapper<String, Object> updateData) { this.status = Status.fromInteger(updateData.getInt(STATUS_PARAM, this.status.getNumVal())); this.startTime = updateData.getLong(START_TIME_PARAM); this.updateTime = updateData.getLong(UPDATE_TIME_PARAM); this.endTime = upd...
Base Executable that nodes and flows are based.
applyUpdateObject
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void applyUpdateObject(final Map<String, Object> updateData) { final TypedMapWrapper<String, Object> wrapper = new TypedMapWrapper<>(updateData); applyUpdateObject(wrapper); }
Base Executable that nodes and flows are based.
applyUpdateObject
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void cancelNode(final long cancelTime) { if (this.status == Status.DISABLED) { skipNode(cancelTime); } else { this.setStatus(Status.CANCELLED); this.setStartTime(cancelTime); this.setEndTime(cancelTime); this.setUpdateTime(cancelTime); } }
Base Executable that nodes and flows are based.
cancelNode
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void skipNode(final long skipTime) { this.setStatus(Status.SKIPPED); this.setStartTime(skipTime); this.setEndTime(skipTime); this.setUpdateTime(skipTime); }
Base Executable that nodes and flows are based.
skipNode
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
private void updatePastAttempts(final List<Object> pastAttemptsList) { if (pastAttemptsList == null) { return; } synchronized (this) { // We just check size because past attempts don't change if (pastAttemptsList.size() <= this.pastAttempts.size()) { return; } this.pas...
Base Executable that nodes and flows are based.
updatePastAttempts
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public int getRetries() { return this.inputProps.getInt(CommonJobProperties.RETRIES, 0); }
Base Executable that nodes and flows are based.
getRetries
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public long getRetryBackoff() { return this.inputProps.getLong(CommonJobProperties.RETRY_BACKOFF, 0); }
Base Executable that nodes and flows are based.
getRetryBackoff
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public String getCondition() { return this.condition; }
Base Executable that nodes and flows are based.
getCondition
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setCondition(final String condition) { this.condition = condition; }
Base Executable that nodes and flows are based.
setCondition
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public ConditionOnJobStatus getConditionOnJobStatus() { return this.conditionOnJobStatus == null ? ConditionOnJobStatus.ALL_SUCCESS : this.conditionOnJobStatus; }
Base Executable that nodes and flows are based.
getConditionOnJobStatus
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setConditionOnJobStatus(final ConditionOnJobStatus conditionOnJobStatus) { this.conditionOnJobStatus = conditionOnJobStatus; }
Base Executable that nodes and flows are based.
setConditionOnJobStatus
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public Props getRampProps() { return this.rampProps; }
Base Executable that nodes and flows are based.
getRampProps
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
public void setRampProps(final Props rampProps) { this.rampProps = rampProps; }
Base Executable that nodes and flows are based.
setRampProps
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableNode.java
Apache-2.0
@Override public State refresh(State source) { this.startTime = source.startTime; this.endTime = source.endTime; this.lastUpdatedTime = source.lastUpdatedTime; this.numOfTrail = source.numOfTrail; this.numOfSuccess = source.numOfSuccess; this.numOfFailure = source.numOfFailure; ...
Sub data model of ExecutableMap to host all status related data
refresh
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
@Override public State clone() { return State.builder() .setStartTime(this.startTime) .setEndTime(this.endTime) .setLastUpdatedTime(this.lastUpdatedTime) .setLastRampDownTime(this.lastRampDownTime) .setActive(this.isActive) .setPaused(this.isPaused) ...
Sub data model of ExecutableMap to host all status related data
clone
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
@Override public int elementCount() { return 1; }
Sub data model of ExecutableMap to host all status related data
elementCount
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public static Builder builder() { return new Builder(); }
Sub data model of ExecutableMap to host all status related data
builder
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setStartTime(final long startTime) { this.startTime = startTime; return this; }
Sub data model of ExecutableMap to host all status related data
setStartTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setEndTime(final long endTime) { this.endTime = endTime; return this; }
Sub data model of ExecutableMap to host all status related data
setEndTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setLastUpdatedTime(final long lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; return this; }
Sub data model of ExecutableMap to host all status related data
setLastUpdatedTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setNumOfTrail(final int numOfTrail) { this.numOfTrail = numOfTrail; return this; }
Sub data model of ExecutableMap to host all status related data
setNumOfTrail
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setNumOfSuccess(final int numOfSuccess) { this.numOfSuccess = numOfSuccess; return this; }
Sub data model of ExecutableMap to host all status related data
setNumOfSuccess
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setNumOfFailure(final int numOfFailure) { this.numOfFailure = numOfFailure; return this; }
Sub data model of ExecutableMap to host all status related data
setNumOfFailure
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setNumOfIgnored(final int numOfIgnored) { this.numOfIgnored = numOfIgnored; return this; }
Sub data model of ExecutableMap to host all status related data
setNumOfIgnored
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setPaused(final boolean paused) { isPaused = paused; return this; }
Sub data model of ExecutableMap to host all status related data
setPaused
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setActive(final boolean active) { isActive = active; return this; }
Sub data model of ExecutableMap to host all status related data
setActive
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setSynchronized(final boolean aSynchronized) { isSynchronized = aSynchronized; return this; }
Sub data model of ExecutableMap to host all status related data
setSynchronized
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setRampStage(final int rampStage) { this.rampStage = rampStage; return this; }
Sub data model of ExecutableMap to host all status related data
setRampStage
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setLastRampDownTime(final long lastRampDownTime) { this.lastRampDownTime = lastRampDownTime; return this; }
Sub data model of ExecutableMap to host all status related data
setLastRampDownTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setCachedNumOfTrail(final int cachedNumOfTrail) { this.cachedNumOfTrail = cachedNumOfTrail; return this; }
Sub data model of ExecutableMap to host all status related data
setCachedNumOfTrail
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setCachedNumOfSuccess(final int cachedNumOfSuccess) { this.cachedNumOfSuccess = cachedNumOfSuccess; return this; }
Sub data model of ExecutableMap to host all status related data
setCachedNumOfSuccess
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setCachedNumOfFailure(final int cachedNumOfFailure) { this.cachedNumOfFailure = cachedNumOfFailure; return this; }
Sub data model of ExecutableMap to host all status related data
setCachedNumOfFailure
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setCachedNumOfIgnored(final int cachedNumOfIgnored) { this.cachedNumOfIgnored = cachedNumOfIgnored; return this; }
Sub data model of ExecutableMap to host all status related data
setCachedNumOfIgnored
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public State build() { return new State(this); }
Sub data model of ExecutableMap to host all status related data
build
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
@Override public Metadata refresh(Metadata source) { this.maxFailureToPause = source.maxFailureToPause; this.maxFailureToRampDown = source.maxFailureToRampDown; this.isPercentageScaleForMaxFailure = source.isPercentageScaleForMaxFailure; return this; }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
refresh
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
@Override public Metadata clone() { return Metadata.builder() .setMaxFailureToRampDown(this.maxFailureToRampDown) .setMaxFailureToPause(this.maxFailureToPause) .setPercentageScaleForMaxFailure(this.isPercentageScaleForMaxFailure) .build(); }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
clone
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
@Override public int elementCount() { return 1; // Here, it will always return 1 since it is not a list. }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
elementCount
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public static Builder builder() { return new Builder(); }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
builder
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setMaxFailureToPause(final int maxFailureToPause) { this.maxFailureToPause = maxFailureToPause; return this; }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
setMaxFailureToPause
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setMaxFailureToRampDown(final int maxFailureToRampDown) { this.maxFailureToRampDown = maxFailureToRampDown; return this; }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
setMaxFailureToRampDown
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Builder setPercentageScaleForMaxFailure(final boolean percentageScaleForMaxFailure) { isPercentageScaleForMaxFailure = percentageScaleForMaxFailure; return this; }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
setPercentageScaleForMaxFailure
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public Metadata build() { return new Metadata(this); }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
build
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public String getId() { return id; }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
getId
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public String getPolicy() { return policy; }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
getPolicy
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public boolean isActive() { long timeDiff = this.state.startTime - System.currentTimeMillis(); boolean isActive = this.state.isActive && (!this.state.isPaused) && (timeDiff <= 0); if (!isActive) { LOGGER.info("[Ramp Is Isolated] (isActive = {}, isPause = {}, timeDiff = {}", this.state.isActi...
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
isActive
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public boolean isChanged() { return !this.state.isSynchronized; }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
isChanged
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public boolean isPaused() { return this.state.isPaused; }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
isPaused
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public boolean isNotTestable() { return (!this.state.isActive || this.state.isPaused || (this.state.rampStage <= 0)); }
Sub data model of ExecutableMap to host all threshold settings which are used to determine if the ramp will be paused or automatically ramp down because massive failures are detected durning the run-time.
isNotTestable
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public boolean ignoreTestFailure() { return (this.metadata.maxFailureToPause < 0) && (this.metadata.maxFailureToRampDown < 0); }
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
ignoreTestFailure
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public int getStage() { return this.state.rampStage; }
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
getStage
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public long getStartTime() { return this.state.startTime; }
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
getStartTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public long getEndTime() { return this.state.endTime; }
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
getEndTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public long getLastUpdatedTime() { return this.state.lastUpdatedTime; }
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
getLastUpdatedTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public int getMaxFailureToRampDown() { return this.metadata.maxFailureToRampDown; }
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
getMaxFailureToRampDown
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public int getMaxFailureToPause() { return this.metadata.maxFailureToPause; }
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
getMaxFailureToPause
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public boolean isPercentageScaleForMaxFailure() { return this.metadata.isPercentageScaleForMaxFailure; }
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
isPercentageScaleForMaxFailure
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public int getCount(@NotNull CountType countType) { return getCount(countType, false); }
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
getCount
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
public int getCachedCount(@NotNull CountType countType) { return getCount(countType, true); }
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
getCachedCount
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
private int getCount(@NotNull CountType countType, boolean isCached) { int value = 0; switch (countType) { case TRAIL: value = isCached ? this.state.cachedNumOfTrail : this.state.numOfTrail; break; case SUCCESS: value = isCached ? this.state.cachedNumOfSuccess : this.state.nu...
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
getCount
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0
synchronized public void rampUp(final @NotNull int maxStage) { lock.lock(); try { int currentRampStage = this.state.rampStage; this.state.rampStage = currentRampStage + 1; this.state.lastUpdatedTime = System.currentTimeMillis(); this.state.lastRampDownTime = 0; if (this.state.rampS...
Return true if only if this ramp will not be required to put those failed workflow into the exclude-ramp list
rampUp
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutableRamp.java
Apache-2.0