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
List<ExecutableFlow> fetchFlowHistory(final int projectId, final String flowId, final int skip, final int num) throws ExecutorManagerException { try { return this.dbOperator.query(FetchExecutableFlows.FETCH_EXECUTABLE_FLOW_HISTORY, new FetchExecutableFlows(), projectId, flowId, skip, num...
Select flows that are not in finished status, including both dispatched and non-dispatched flows. @return unfinished flow exec_ids @throws ExecutorManagerException the executor manager exception
fetchFlowHistory
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public List<Integer> selectAgedQueuedFlows(final Duration minAge) throws ExecutorManagerException { try { return this.dbOperator.query(SelectFromExecutionFlows.SELECT_EXECUTIONS_QUEUED_FOR_LONG_TIME, new SelectFromExecutionFlows(), System.currentTimeMillis() - minAge.toMillis()); } catch (...
Select flows that are not in finished status, including both dispatched and non-dispatched flows. @return unfinished flow exec_ids @throws ExecutorManagerException the executor manager exception
selectAgedQueuedFlows
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public List<Pair<ExecutionReference, ExecutableFlow>> fetchQueuedFlows(final Status status) throws ExecutorManagerException { try { return this.dbOperator.query(FetchQueuedExecutableFlows.FETCH_QUEUED_EXECUTABLE_FLOW, new FetchQueuedExecutableFlows(), status.getNumVal()); } catch (final SQ...
Select flows that are not in finished status, including both dispatched and non-dispatched flows. @return unfinished flow exec_ids @throws ExecutorManagerException the executor manager exception
fetchQueuedFlows
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public List<Integer> selectQueuedFlows(final Status status) throws ExecutorManagerException { try { return this.dbOperator.query(SelectFromExecutionFlows.SELECT_QUEUED_EXECUTABLE_FLOW, new SelectFromExecutionFlows(), status.getNumVal()); } catch (final SQLException e) { throw new Exe...
Select flows that are not in finished status, including both dispatched and non-dispatched flows. @return unfinished flow exec_ids @throws ExecutorManagerException the executor manager exception
selectQueuedFlows
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public List<ExecutableFlow> fetchStaleFlowsForStatus(final Status status, final ImmutableMap<Status, Pair<Duration, String>> validityMap) throws ExecutorManagerException { return fetchFlowsForStatusWithTimeValidity(status, validityMap, true); }
Select flows that are not in finished status, including both dispatched and non-dispatched flows. @return unfinished flow exec_ids @throws ExecutorManagerException the executor manager exception
fetchStaleFlowsForStatus
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public List<ExecutableFlow> fetchFreshFlowsForStatus(final Status status, final ImmutableMap<Status, Pair<Duration, String>> validityMap) throws ExecutorManagerException { return fetchFlowsForStatusWithTimeValidity(status, validityMap, false); }
Select flows that are not in finished status, including both dispatched and non-dispatched flows. @return unfinished flow exec_ids @throws ExecutorManagerException the executor manager exception
fetchFreshFlowsForStatus
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public List<ExecutableFlow> fetchFlowHistory(final int projectId, final String flowId, final long startTime) throws ExecutorManagerException { try { return this.dbOperator.query(FetchExecutableFlows.FETCH_EXECUTABLE_FLOW_BY_START_TIME, new FetchExecutableFlows(), projectId, flowId, startTime); ...
fetch flow execution history with specified {@code projectId}, {@code flowId} and flow start time >= {@code startTime} @return the list of flows meeting the specified criteria
fetchFlowHistory
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
List<ExecutableFlow> fetchFlowHistory(final int projectId, final String flowId, final int skip, final int num, final Status status) throws ExecutorManagerException { try { return this.dbOperator.query(FetchExecutableFlows.FETCH_EXECUTABLE_FLOW_BY_STATUS, new FetchExecutableFlows(), proje...
fetch flow execution history with specified {@code projectId}, {@code flowId} and flow start time >= {@code startTime} @return the list of flows meeting the specified criteria
fetchFlowHistory
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
List<ExecutableFlow> fetchRecentlyFinishedFlows(final Duration maxAge) throws ExecutorManagerException { try { return this.dbOperator.query(FetchRecentlyFinishedFlows.FETCH_RECENTLY_FINISHED_FLOW, new FetchRecentlyFinishedFlows(), System.currentTimeMillis() - maxAge.toMillis(), Statu...
fetch flow execution history with specified {@code projectId}, {@code flowId} and flow start time >= {@code startTime} @return the list of flows meeting the specified criteria
fetchRecentlyFinishedFlows
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
List<ExecutableFlow> fetchFlowHistory(final String projectNameContains, final String flowNameContains, final String userNameContains, final int status, final long startTime, final long endTime, final int skip, final int num) throws ExecutorManagerException { String query = FetchExecutableFlows.FET...
fetch flow execution history with specified {@code projectId}, {@code flowId} and flow start time >= {@code startTime} @return the list of flows meeting the specified criteria
fetchFlowHistory
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
void updateExecutableFlow(final ExecutableFlow flow) throws ExecutorManagerException { updateExecutableFlow(flow, EncodingType.GZIP); }
fetch flow execution history with specified {@code projectId}, {@code flowId} and flow start time >= {@code startTime} @return the list of flows meeting the specified criteria
updateExecutableFlow
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
private void updateExecutableFlow(final ExecutableFlow flow, final EncodingType encType) throws ExecutorManagerException { final String UPDATE_EXECUTABLE_FLOW_DATA = "UPDATE execution_flows " + "SET status=?,update_time=?,start_time=?,end_time=?,enc_type=?,flow_data=? " + "WHER...
fetch flow execution history with specified {@code projectId}, {@code flowId} and flow start time >= {@code startTime} @return the list of flows meeting the specified criteria
updateExecutableFlow
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
private void updateExecutableFlowStatusInDB(final ExecutableFlow flow) throws ExecutorManagerException { final String UPDATE_FLOW_STATUS = "UPDATE execution_flows SET status = ?, update_time = ? " + "where exec_id = ?"; try { this.dbOperator.update(UPDATE_FLOW_STATUS, flow.getStatus().getNumV...
fetch flow execution history with specified {@code projectId}, {@code flowId} and flow start time >= {@code startTime} @return the list of flows meeting the specified criteria
updateExecutableFlowStatusInDB
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public ExecutableFlow fetchExecutableFlow(final int execId) throws ExecutorManagerException { final FetchExecutableFlows flowHandler = new FetchExecutableFlows(); try { final List<ExecutableFlow> properties = this.dbOperator .query(FetchExecutableFlows.FETCH_EXECUTABLE_FLOW, flowHandler, execId)...
fetch flow execution history with specified {@code projectId}, {@code flowId} and flow start time >= {@code startTime} @return the list of flows meeting the specified criteria
fetchExecutableFlow
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public void unsetExecutorIdForExecution(final int executionId) throws ExecutorManagerException { final String UNSET_EXECUTOR = "UPDATE execution_flows SET executor_id = null, update_time = ? where exec_id = ?"; final SQLTransaction<Integer> unsetExecutor = transOperator -> transOperator.update(UNSET_EX...
set executor id to null for the execution id
unsetExecutorIdForExecution
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public int selectAndUpdateExecution(final int executorId, final boolean isActive, final DispatchMethod dispatchMethod) throws ExecutorManagerException { final String UPDATE_EXECUTION = "UPDATE execution_flows SET executor_id = ?, update_time = ? " + "where exec_id = ?"; final String selectEx...
set executor id to null for the execution id
selectAndUpdateExecution
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public int selectAndUpdateExecutionWithLocking(final int executorId, final boolean isActive, final DispatchMethod dispatchMethod) throws ExecutorManagerException { final String UPDATE_EXECUTION = "UPDATE execution_flows SET executor_id = ?, update_time = ? " + "where exec_id = ?"; final Stri...
set executor id to null for the execution id
selectAndUpdateExecutionWithLocking
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public int updateVersionSetId(final int executionId, final int versionSetId) throws ExecutorManagerException { final String UPDATE_VERSION_SET_ID = "UPDATE execution_flows SET version_set_id = ?, " + "update_time = ? where exec_id = ?"; try { return this.dbOperator.update(UPDATE_VERSION_SET_...
Updates version set id for the given executionId @param executionId @param versionSetId @return int @throws ExecutorManagerException
updateVersionSetId
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
@Override public List<Integer> handle(final ResultSet rs) throws SQLException { if (!rs.next()) { return Collections.emptyList(); } final List<Integer> execIds = new ArrayList<>(); do { final int execId = rs.getInt(1); execIds.add(execId); } while (rs.next()); ...
Updates version set id for the given executionId @param executionId @param versionSetId @return int @throws ExecutorManagerException
handle
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
@Override public List<ExecutableFlow> handle(final ResultSet rs) throws SQLException { if (!rs.next()) { return Collections.emptyList(); } final List<ExecutableFlow> execFlows = new ArrayList<>(); do { final int id = rs.getInt(1); final int encodingType = rs.getInt(2...
Updates version set id for the given executionId @param executionId @param versionSetId @return int @throws ExecutorManagerException
handle
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
@Override public List<Pair<ExecutionReference, ExecutableFlow>> handle(final ResultSet rs) throws SQLException { if (!rs.next()) { return Collections.emptyList(); } final List<Pair<ExecutionReference, ExecutableFlow>> execFlows = new ArrayList<>(); do { fin...
JDBC ResultSetHandler to fetch queued executions
handle
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
@Override public List<ExecutableFlow> handle( final ResultSet rs) throws SQLException { if (!rs.next()) { return Collections.emptyList(); } final List<ExecutableFlow> execFlows = new ArrayList<>(); do { final int id = rs.getInt(1); final int encodingType = rs...
JDBC ResultSetHandler to fetch queued executions
handle
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
static String getTerminalStatusesString() { final List<Integer> list = TERMINAL_STATUSES.stream().map(Status::getNumVal).collect( Collectors.toList()); return StringUtils.join(list, ", "); }
Generates a string representing terminating flow status num values: "50, 60, 65, 70" @return
getTerminalStatusesString
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionFlowDao.java
Apache-2.0
public static ExecutionOptions createFromObject(final Object obj) { if (obj == null || !(obj instanceof Map)) { return null; } final Map<String, Object> optionsMap = (Map<String, Object>) obj; final TypedMapWrapper<String, Object> wrapper = new TypedMapWrapper<>(optionsMap); final Ex...
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
createFromObject
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public Map<String, String> getFlowParameters() { return this.flowParameters; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getFlowParameters
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public Map<String, Map<String, String>> getRuntimeProperties() { return this.runtimeProperties; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getRuntimeProperties
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public boolean isFailureEmailsOverridden() { return this.failureEmailsOverride; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
isFailureEmailsOverridden
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setFailureEmailsOverridden(final boolean override) { this.failureEmailsOverride = override; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setFailureEmailsOverridden
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public boolean isSuccessEmailsOverridden() { return this.successEmailsOverride; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
isSuccessEmailsOverridden
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setSuccessEmailsOverridden(final boolean override) { this.successEmailsOverride = override; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setSuccessEmailsOverridden
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public boolean isFailureActionOverridden() { return failureActionOverride; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
isFailureActionOverridden
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setFailureActionOverride(final boolean failureActionOverride) { this.failureActionOverride = failureActionOverride; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setFailureActionOverride
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public List<String> getFailureEmails() { return this.failureEmails; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getFailureEmails
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setFailureEmails(final Collection<String> emails) { this.failureEmails = new ArrayList<>(emails); }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setFailureEmails
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public List<String> getSuccessEmails() { return this.successEmails; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getSuccessEmails
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setSuccessEmails(final Collection<String> emails) { this.successEmails = new ArrayList<>(emails); }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setSuccessEmails
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public boolean getNotifyOnFirstFailure() { return this.notifyOnFirstFailure; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getNotifyOnFirstFailure
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setNotifyOnFirstFailure(final boolean notify) { this.notifyOnFirstFailure = notify; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setNotifyOnFirstFailure
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public boolean getNotifyOnLastFailure() { return this.notifyOnLastFailure; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getNotifyOnLastFailure
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setNotifyOnLastFailure(final boolean notify) { this.notifyOnLastFailure = notify; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setNotifyOnLastFailure
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public FailureAction getFailureAction() { return this.failureAction; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getFailureAction
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setFailureAction(final FailureAction action) { this.failureAction = action; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setFailureAction
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public String getConcurrentOption() { return this.concurrentOption; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getConcurrentOption
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setConcurrentOption(final String concurrentOption) { this.concurrentOption = concurrentOption; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setConcurrentOption
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public String getMailCreator() { return this.mailCreator; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getMailCreator
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setMailCreator(final String mailCreator) { this.mailCreator = mailCreator; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setMailCreator
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public Integer getPipelineLevel() { return this.pipelineLevel; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getPipelineLevel
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setPipelineLevel(final Integer level) { this.pipelineLevel = level; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setPipelineLevel
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public Integer getPipelineExecutionId() { return this.pipelineExecId; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getPipelineExecutionId
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setPipelineExecutionId(final Integer id) { this.pipelineExecId = id; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setPipelineExecutionId
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public Integer getQueueLevel() { return this.queueLevel; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getQueueLevel
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public List<DisabledJob> getDisabledJobs() { return new ArrayList<>(this.initiallyDisabledJobs); }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getDisabledJobs
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setDisabledJobs(final List<DisabledJob> disabledJobs) { this.initiallyDisabledJobs = disabledJobs; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setDisabledJobs
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public boolean getMemoryCheck() { return this.memoryCheck; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getMemoryCheck
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setMemoryCheck(final boolean memoryCheck) { this.memoryCheck = memoryCheck; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setMemoryCheck
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public List<SlaOption> getSlaOptions() { return this.slaOptions; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
getSlaOptions
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void setSlaOptions(final List<SlaOption> slaOptions) { this.slaOptions = slaOptions; }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
setSlaOptions
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public Map<String, Object> toObject() { final HashMap<String, Object> flowOptionObj = new HashMap<>(); flowOptionObj.put(FLOW_PARAMETERS, this.flowParameters); flowOptionObj.put(RUNTIME_PROPERTIES, this.runtimeProperties); flowOptionObj.put(NOTIFY_ON_FIRST_FAILURE, this.notifyOnFirstFailure); flowO...
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
toObject
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public String toJSON() { return new GsonBuilder().setPrettyPrinting().create().toJson(toObject()); }
Setting value to true would mean that we should consider the user specified failure.action (through API or UI) than failure.action specified in the flow file.
toJSON
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public FailureAction mapToFailureAction(final String failureAction) { return FAILURE_OPTION_TO_FAILURE_ACTION_MAP.getOrDefault( failureAction, FailureAction.FINISH_CURRENTLY_RUNNING ); }
Read the failure option value and return the corresponding Enum object. @param failureAction this value is passed from the DSL/Yaml file @return Azkaban understood FailureAction object
mapToFailureAction
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public void merge(ExecutionOptions overwriteOptions) { this.notifyOnFirstFailure = overwriteOptions.notifyOnFirstFailure; this.notifyOnLastFailure = overwriteOptions.notifyOnLastFailure; this.successEmailsOverride = overwriteOptions.successEmailsOverride; this.failureEmailsOverride = overwriteOptions.fa...
Merge "this" with the input {@link ExecutionOptions}, for every the fields being set in input; If conflicts, the values set in the input will get to overwrite the old values. @return
merge
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionOptions.java
Apache-2.0
public String getValue() { return this.value; }
The Hookup DB Operation for Flow Ramp
getValue
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
@Override public ExecutableRampExceptionalFlowItemsMap handle(ResultSet resultSet) throws SQLException { final ExecutableRampExceptionalFlowItemsMap executableRampExceptionalFlowItemsMap = ExecutableRampExceptionalFlowItemsMap.createInstance(); if (!resultSet.next()) { return executab...
Fetch Executable Ramp's Exceptional Flow Items
handle
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
public ExecutableRampExceptionalFlowItemsMap fetchExecutableRampExceptionalFlowItemsMap() throws ExecutorManagerException { try { return this.dbOperator.query( FetchExecutableRampExceptionalFlowItems.FETCH_EXECUTABLE_RAMP_EXCEPTIONAL_FLOW_ITEMS, new FetchExecutableRampExceptionalFlowIt...
Fetch Executable Ramp's Exceptional Flow Items
fetchExecutableRampExceptionalFlowItemsMap
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
public String getValue() { return this.value; }
Fetch Executable Ramp's Exceptional Flow Items
getValue
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
@Override public ExecutableRampExceptionalJobItemsMap handle(ResultSet resultSet) throws SQLException { final ExecutableRampExceptionalJobItemsMap executableRampExceptionalJobItemsMap = ExecutableRampExceptionalJobItemsMap.createInstance(); if (!resultSet.next()) { return executableRa...
Fetch Executable Ramp's Exceptional Job Items
handle
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
public ExecutableRampExceptionalJobItemsMap fetchExecutableRampExceptionalJobItemsMap() throws ExecutorManagerException { try { return this.dbOperator.query( FetchExecutableRampExceptionalJobItems.FETCH_EXECUTABLE_RAMP_EXCEPTIONAL_JOB_ITEMS, new FetchExecutableRampExceptionalJobItems...
Fetch Executable Ramp's Exceptional Job Items
fetchExecutableRampExceptionalJobItemsMap
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
public void insertAction(final String tableName, Map<String, Object> actionData) throws ExecutorManagerException { if (actionData.size() == 0) { throw new ExecutorManagerException( String.format("Error on inserting into %s WITHOUT ANY DATA", tableName) ); } try { if ("ram...
Generic Insert Action Function @param tableName table name @param actionData associated action data which include field name value pairs @throws ExecutorManagerException
insertAction
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
public void deleteAction(final String tableName, Map<String, Object> constraints) throws ExecutorManagerException { if (constraints.size() == 0) { throw new ExecutorManagerException( String.format("Error on deleting from %s WITHOUT ANY CONDITIONS", tableName) ); } try { ...
Generic Delete Action Function @param tableName table name @param constraints associated constraints which include field name value pairs @throws ExecutorManagerException
deleteAction
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
public void updateAction(final String tableName, Map<String, Object> actionData, Map<String, Object> constraints) throws ExecutorManagerException { if (actionData.size() == 0 || constraints.size() == 0) { throw new ExecutorManagerException( String.format("Error on updating %s WITHOUT ANY COND...
Generic Update Action Function @param tableName table name @param actionData associated action data which include field name value pairs @param constraints associated constraints which include field name value pairs @throws ExecutorManagerException
updateAction
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
public Map<String, String> doRampActions(List<Map<String, Object>> rampActionsMap) { Map<String, String> result = new HashMap<>(); for(int i = 0; i < rampActionsMap.size(); i++) { result.put(Integer.toString(i), doRampAction(rampActionsMap.get(i))); } return result; }
Generic data update action for Ramp DataSets @param rampActionsMap list of ramp action map @return result of each command
doRampActions
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
private Map<String, Object> adjustActionData(Map<String, Object> actionData, Map<String, Object> defaultValues) { Map<String, Object> modifiedActionData = new HashMap<>(); actionData.entrySet().stream().forEach(entry -> modifiedActionData.put(entry.getKey(), entry.getValue())); for (Map.Entry<String, Object...
Generic data update action for Ramp DataSets @param rampActionsMap list of ramp action map @return result of each command
adjustActionData
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
private String doRampAction(Map<String, Object> actionDataMap) { String action = (String) actionDataMap.get("action"); String tableName = (String) actionDataMap.get("table"); Map<String, Object> conditions =(Map<String, Object>) actionDataMap.get("conditions"); Map<String, Object> values = (Map<String, ...
Generic data update action for Ramp DataSets @param actionDataMap ramp action map @return result @throws ExecutorManagerException
doRampAction
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
public void updateExecutableRamp(ExecutableRamp executableRamp) throws ExecutorManagerException { String sqlCommand = ""; try { // Save all cachedNumTrail, cachedNumSuccess, cachedNumFailure, cachedNumIgnored, // save isPaused, endTime when it is not zero, lastUpdatedTime when it is changed. ...
Generic data update action for Ramp DataSets @param actionDataMap ramp action map @return result @throws ExecutorManagerException
updateExecutableRamp
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
public void updateExecutedRampFlows(final String ramp, ExecutableRampExceptionalItems executableRampExceptionalItems) throws ExecutorManagerException { String sqlCommand = ""; try { Object[][] parameters = executableRampExceptionalItems.getCachedItems().stream() .map(item -> { ...
Generic data update action for Ramp DataSets @param actionDataMap ramp action map @return result @throws ExecutorManagerException
updateExecutedRampFlows
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
Apache-2.0
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (this.isActive ? 1231 : 1237); result = prime * result + ((this.host == null) ? 0 : this.host.hashCode()); result = prime * result + this.id; result = prime * result + this.port; return result...
<pre> Construct an Executor Object Note: port should be a within unsigned 2 byte integer range </pre>
hashCode
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof Executor)) { return false; } final Executor other = (Executor) obj; if (this.isActive != other.isActive) { return false;...
<pre> Construct an Executor Object Note: port should be a within unsigned 2 byte integer range </pre>
equals
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
@Override public String toString() { return String.format("%s:%s (id: %s), active=%s", null == this.host || this.host.length() == 0 ? "(empty)" : this.host, this.port, this.id, this.isActive); }
<pre> Construct an Executor Object Note: port should be a within unsigned 2 byte integer range </pre>
toString
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
public String getHost() { return this.host; }
<pre> Construct an Executor Object Note: port should be a within unsigned 2 byte integer range </pre>
getHost
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
public int getPort() { return this.port; }
<pre> Construct an Executor Object Note: port should be a within unsigned 2 byte integer range </pre>
getPort
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
public boolean isActive() { return this.isActive; }
<pre> Construct an Executor Object Note: port should be a within unsigned 2 byte integer range </pre>
isActive
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
public void setActive(final boolean isActive) { this.isActive = isActive; }
<pre> Construct an Executor Object Note: port should be a within unsigned 2 byte integer range </pre>
setActive
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
public int getId() { return this.id; }
<pre> Construct an Executor Object Note: port should be a within unsigned 2 byte integer range </pre>
getId
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
public ExecutorInfo getExecutorInfo() { return this.cachedExecutorStats; }
<pre> Construct an Executor Object Note: port should be a within unsigned 2 byte integer range </pre>
getExecutorInfo
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
public void setExecutorInfo(final ExecutorInfo info) { this.cachedExecutorStats = info; this.lastStatsUpdatedTime = new Date(); }
<pre> Construct an Executor Object Note: port should be a within unsigned 2 byte integer range </pre>
setExecutorInfo
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
public Date getLastStatsUpdatedTime() { return this.lastStatsUpdatedTime; }
Gets the timestamp when the executor info is last updated. @return date object represents the timestamp, null if the executor info of this specific executor is never refreshed.
getLastStatsUpdatedTime
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
@Override public int compareTo(final Executor o) { return null == o ? 1 : this.hashCode() - o.hashCode(); }
Gets the timestamp when the executor info is last updated. @return date object represents the timestamp, null if the executor info of this specific executor is never refreshed.
compareTo
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/Executor.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/Executor.java
Apache-2.0
public URI buildExecutorUri(final String host, final int port, final String path, final boolean isHttp, final DispatchMethod dispatchMethod, final Pair<String, String>... params) throws IOException { if (dispatchMethod == DispatchMethod.CONTAINERIZED) { // In containerized mode, [host]:[port] repr...
Build the URI, using the reverse-proxy settings if configured. Note that any changes to the uri path required for reverse proxying, such as altering the path with execution-id, should be applied to {@param path} before invoking this method. @param host host name. @param port host port. @param path extra path after hos...
buildExecutorUri
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
Apache-2.0
private void setupTlsSocketFactory() { SSLContextBuilder sslContextBuilder = SSLContexts.custom(); SSLContext sslContext = null; try { sslContextBuilder = sslContextBuilder .loadTrustMaterial(new File(this.truststorePath), this.truststorePassword.toCharArray()); sslContext = sslContext...
Build the URI, using the reverse-proxy settings if configured. Note that any changes to the uri path required for reverse proxying, such as altering the path with execution-id, should be applied to {@param path} before invoking this method. @param host host name. @param port host port. @param path extra path after hos...
setupTlsSocketFactory
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
Apache-2.0
@VisibleForTesting SSLConnectionSocketFactory getTlsSocketFactory() { return this.tlsSocketFactory; }
Build the URI, using the reverse-proxy settings if configured. Note that any changes to the uri path required for reverse proxying, such as altering the path with execution-id, should be applied to {@param path} before invoking this method. @param host host name. @param port host port. @param path extra path after hos...
getTlsSocketFactory
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
Apache-2.0
public boolean isReverseProxyEnabled() { return isReverseProxyEnabled; }
Build the URI, using the reverse-proxy settings if configured. Note that any changes to the uri path required for reverse proxying, such as altering the path with execution-id, should be applied to {@param path} before invoking this method. @param host host name. @param port host port. @param path extra path after hos...
isReverseProxyEnabled
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
Apache-2.0
@VisibleForTesting Optional<String> getReverseProxyHost() { return reverseProxyHost; }
Build the URI, using the reverse-proxy settings if configured. Note that any changes to the uri path required for reverse proxying, such as altering the path with execution-id, should be applied to {@param path} before invoking this method. @param host host name. @param port host port. @param path extra path after hos...
getReverseProxyHost
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
Apache-2.0
@VisibleForTesting Optional<Integer> getReverseProxyPort() { return reverseProxyPort; }
Build the URI, using the reverse-proxy settings if configured. Note that any changes to the uri path required for reverse proxying, such as altering the path with execution-id, should be applied to {@param path} before invoking this method. @param host host name. @param port host port. @param path extra path after hos...
getReverseProxyPort
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
Apache-2.0
protected CloseableHttpClient createHttpsClient(final Optional<Integer> httpTimeout) { final HttpClientBuilder httpClientBuilder = HttpClients.custom() .setSSLSocketFactory(this.tlsSocketFactory); if (httpTimeout.isPresent()) { final int timeout = httpTimeout.get(); final RequestConfig reque...
Overrides the parent implementation to provide a TLS enabled http client if requested, otherwise returns the http client by invoking the parent class method. @return http client
createHttpsClient
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
Apache-2.0
public String httpsPost(final URI uri, final Optional<Integer> httpTimeout, final List<Pair<String, String>> params) throws IOException { // shortcut if the passed url is invalid. if (null == uri) { logger.error(" unable to perform httpPost as the passed uri is null."); return null; ...
function to perform a Post https method. @param uri the URI of the request. @param params the form params to be posted, optional. @return the response object type of which is specified by user. @throws UnsupportedEncodingException, IOException.
httpsPost
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
Apache-2.0
public String doPost(final URI uri, final DispatchMethod dispatchMethod, final Optional<Integer> httpTimeout, final List<Pair<String, String>> params) throws IOException { // If in future tls support is added for POLL based model, then following condition // can be simplified if (isTlsEnable...
function to perform a Post https method. @param uri the URI of the request. @param params the form params to be posted, optional. @return the response object type of which is specified by user. @throws UnsupportedEncodingException, IOException.
doPost
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
Apache-2.0
protected String sendAndReturnHttps(final HttpUriRequest request, final Optional<Integer> httpTimeout) throws IOException { try (final CloseableHttpClient client = this.createHttpsClient(httpTimeout)) { return this.parseResponse(client.execute(request)); } }
function to dispatch the https request and pass back the response.
sendAndReturnHttps
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
Apache-2.0
@Override protected String parseResponse(final HttpResponse response) throws HttpResponseException, IOException { final StatusLine statusLine = response.getStatusLine(); final String responseBody = response.getEntity() != null ? EntityUtils.toString(response.getEntity()) : ""; if (statusLin...
Implementing the parseResponse function to return de-serialized Json object. @param response the returned response from the HttpClient. @return de-serialized object from Json or null if the response doesn't have a body.
parseResponse
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiClient.java
Apache-2.0
<T> T callForJsonType(final String host, final int port, final String path, final DispatchMethod dispatchMethod, final Optional<Integer> httpTimeout, final List<Pair<String, String>> paramList, final Class<T> valueType) throws IOException { final String responseString = callForJsonString(host, por...
Call executor and parse the JSON response as an instance of the class given as an argument.
callForJsonType
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiGateway.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiGateway.java
Apache-2.0
Map<String, Object> callForJsonObjectMap(final String host, final int port, final String path, final DispatchMethod dispatchMethod, final Optional<Integer> httpTimeout, final List<Pair<String, String>> paramList) throws IOException { final String responseString = callForJsonString(host, port, pa...
Call executor and parse the JSON response as an instance of the class given as an argument.
callForJsonObjectMap
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/ExecutorApiGateway.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/ExecutorApiGateway.java
Apache-2.0