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
private void validateAndPreProcess(AzPodStatusMetadata event) { // Confirm that event is for a FlowContainer and has the corresponding Flow metadata. if (!event.getFlowPodMetadata().isPresent()) { IllegalStateException ise = new IllegalStateException( format("Flow metadata is not present for pod...
Includes any validations needed on event that are common to all {@link AzPodStatus} @param event pod watch event
validateAndPreProcess
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
private void logEventCacheStats(long eventCount) { if (eventCount % EVENT_CACHE_STATS_FREQUENCY != 0) { return; } CacheStats stats = podStatusCache.stats(); logger.info("Pod Event Cache Stats at flow event count " + eventCount + ": " + stats.toString()); }
Common event processing required for all {@link AzPodStatus} callbacks. This is also responsible for updating the event cache/map. @param event pod watch event
logEventCacheStats
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
private boolean isUpdatedPodStatusDistinct(AzPodStatusMetadata event) { AzPodStatus currentStatus = getCurrentAzPodStatus(event.getPodName()); boolean skipUpdates = (currentStatus == event.getAzPodStatus()); if (skipUpdates) { logger.info(format("Event pod status is same as current %s, for pod %s." ...
Checks whether the {@link AzPodStatus} of a new event is the same as the one already cached. @param event pod watch event @return true if the status is different from cached value, false otherwise
isUpdatedPodStatusDistinct
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
private AzPodStatus getCurrentAzPodStatus(String podName) { AzPodStatus currentStatus = AzPodStatus.AZ_POD_UNSET; AzPodStatusMetadata currentEvent = podStatusCache.getIfPresent(podName); if (currentEvent != null ) { currentStatus = currentEvent.getAzPodStatus(); } return currentStatus; }
Checks whether the {@link AzPodStatus} of a new event is the same as the one already cached. @param event pod watch event @return true if the status is different from cached value, false otherwise
getCurrentAzPodStatus
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
private void updatePodStatus(AzPodStatusMetadata event) { podStatusCache.put(event.getPodName(), event); logger.debug(format("Updated status to %s, for pod %s", event.getAzPodStatus(), event.getPodName())); }
Checks whether the {@link AzPodStatus} of a new event is the same as the one already cached. @param event pod watch event @return true if the status is different from cached value, false otherwise
updatePodStatus
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
private Optional<Status> compareAndFinalizeFlowStatus(AzPodStatusMetadata event) { requireNonNull(event, "event must not be null"); int executionId = Integer.parseInt(event.getFlowPodMetadata().get().getExecutionId()); ExecutableFlow executableFlow = null; try { executableFlow = executorLoader.fe...
If the Flow corresponding to Pod event is not already in a final state then finalize the flow with the state {@link Status::Failed} <p> Note: Unfortunately many (if not all) of the Flow status updates in Azkaban don't fully enforce the Flow lifecycle state-machine and {@code ExecutionControllerUtils.finalizeFlow} used...
compareAndFinalizeFlowStatus
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
private void handleOOMKilledIfNeeded(final ExecutableFlow executableFlow, final AzPodStatusMetadata event) { try { if (event.getFlowPodMetadata().isPresent() && event.getFlowPodMetadata().get().isOOMKilled()) { if (containerizationMetrics.isInitialized()) { containerizationMetrics.mark...
If the Flow corresponding to Pod event is not already in a final state then finalize the flow with the state {@link Status::Failed} <p> Note: Unfortunately many (if not all) of the Flow status updates in Azkaban don't fully enforce the Flow lifecycle state-machine and {@code ExecutionControllerUtils.finalizeFlow} used...
handleOOMKilledIfNeeded
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
private void deleteFlowContainer(AzPodStatusMetadata event) { logger.info("Deleting Flow Pod: " + event.getPodName()); if (event.getFlowPodMetadata().get().isCleanupDisabled()) { logger.warn(format("Pod deletion is disabled for pod %s, please delete it manually.", event.getPodName())); ret...
Delete the the flow pod and any other related objects (such as services). @param event pod watch event
deleteFlowContainer
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
private void finalizeFlowAndDeleteContainer(AzPodStatusMetadata event) { Optional<Status> originalFlowStatus = compareAndFinalizeFlowStatus(event); if (originalFlowStatus.isPresent() && !Status.isStatusFinished(originalFlowStatus.get())) { logger.warn(format("Flow for pod %s was in the non-final s...
Finalize the flow for the given event and delete its container. @param event
finalizeFlowAndDeleteContainer
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
private void processFinalState(AzPodStatusMetadata event) { requireNonNull(event, "event must not be null"); validateAndPreProcess(event); boolean skipUpdates = !isUpdatedPodStatusDistinct(event); postProcess(event); if (!skipUpdates) { finalizeFlowAndDeleteContainer(event); } }
Common processing for all the final states of the flow-pod. This is responsible for deleting the flow container as well as finalizing the Flow status in the Db in case it's not already in a final state. @param event pod event
processFinalState
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
private void processNonFinalState(AzPodStatusMetadata event) { requireNonNull(event, "event must not be null"); validateAndPreProcess(event); postProcess(event); }
Common processing for the non-final states for the flow-pod. @param event pod event
processNonFinalState
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
@Override public void onPodRequested(AzPodStatusMetadata event) { executor.execute(() -> processNonFinalState(event)); }
Common processing for the non-final states for the flow-pod. @param event pod event
onPodRequested
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
@Override public void onPodScheduled(AzPodStatusMetadata event) { executor.execute(() -> processNonFinalState(event)); }
Common processing for the non-final states for the flow-pod. @param event pod event
onPodScheduled
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
@Override public void onPodInitContainersRunning(AzPodStatusMetadata event) { executor.execute(() -> processNonFinalState(event)); }
Common processing for the non-final states for the flow-pod. @param event pod event
onPodInitContainersRunning
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
@Override public void onPodAppContainersStarting(AzPodStatusMetadata event) { executor.execute(() -> processNonFinalState(event)); }
Common processing for the non-final states for the flow-pod. @param event pod event
onPodAppContainersStarting
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
@Override public void onPodReady(AzPodStatusMetadata event) { executor.execute(() -> processNonFinalState(event)); }
Common processing for the non-final states for the flow-pod. @param event pod event
onPodReady
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
@Override public void onPodCompleted(AzPodStatusMetadata event) { executor.execute(() -> processFinalState(event)); }
Common processing for the non-final states for the flow-pod. @param event pod event
onPodCompleted
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
@Override public void onPodInitFailure(AzPodStatusMetadata event) { executor.execute(() -> processFinalState(event)); }
Common processing for the non-final states for the flow-pod. @param event pod event
onPodInitFailure
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
@Override public void onPodAppFailure(AzPodStatusMetadata event) { executor.execute(() -> processFinalState(event)); }
Common processing for the non-final states for the flow-pod. @param event pod event
onPodAppFailure
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
@Override public void onPodUnexpected(AzPodStatusMetadata event) { executor.execute(() -> processFinalState(event)); }
Common processing for the non-final states for the flow-pod. @param event pod event
onPodUnexpected
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
public void shutdown() { this.executor.shutdown(); try { this.executor.awaitTermination(SHUTDOWN_TERMINATION_TIMEOUT_SECONDS, TimeUnit.SECONDS); } catch (InterruptedException e) { logger.warn("Executor service shutdown for flow-pod status listener was interrupted.", e); } }
Common processing for the non-final states for the flow-pod. @param event pod event
shutdown
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/FlowStatusManagerListener.java
Apache-2.0
public int getPodWatchInitCount() { return this.podWatchInitCount; }
We are setting call, read and connect timeouts since we have cluster specific requirements for them as we started noticing some clusters fail to refresh /close a stale K8s watch connection.
getPodWatchInitCount
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
Apache-2.0
@VisibleForTesting protected void setPodWatch(Watch<V1Pod> podWatch) { requireNonNull(podWatch, "pod watch must not be null"); this.podWatch = podWatch; }
We are setting call, read and connect timeouts since we have cluster specific requirements for them as we started noticing some clusters fail to refresh /close a stale K8s watch connection.
setPodWatch
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
Apache-2.0
protected void startPodWatch() throws IOException { requireNonNull(this.podWatch, "watch must be initialized"); logger.info("Starting Pod watch loop."); for (Watch.Response<V1Pod> item : this.podWatch) { if (this.isShutdownRequested.get()) { logger.info("Exiting pod watch event loop as shutdow...
This starts the continuous event processing loop for fetching the pod watch events. Processing of the events is callback driven and the registered {@link RawPodWatchEventListener} provides the processing implementation. @throws IOException
startPodWatch
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
Apache-2.0
private void closePodWatchQuietly() { if (this.podWatch == null) { logger.debug("Pod watch is null"); return; } try { this.podWatch.close(); } catch (IOException e) { logger.error("IOException while closing pod watch.", e); } }
This starts the continuous event processing loop for fetching the pod watch events. Processing of the events is callback driven and the registered {@link RawPodWatchEventListener} provides the processing implementation. @throws IOException
closePodWatchQuietly
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
Apache-2.0
private void initializeAndStartPodWatch() { while(!this.isShutdownRequested.get()) { try { this.podWatchInitCount++; logger.info("Initializing pod watch, initialization count: " + this.podWatchInitCount); initializePodWatch(); startPodWatch(); } catch (Exception e) { ...
Initialize and start the Pod watch procedure. The processing is expected to continue until a shutdown request is received. The method will handle any exceptions received during both (1) the execution of kubernetes API calls (2) processing of events received by the watch. This also includes re-initialization of the watc...
initializeAndStartPodWatch
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
Apache-2.0
@VisibleForTesting public synchronized Thread launchPodWatch() { if (this.isLaunched) { AzkabanWatchException awe = new AzkabanWatchException("Pod watch has already been launched"); logger.error("Pod watch launch failure", awe); throw awe; } if (this.isShutdownRequested.get()) { Az...
Launch the pod watch processing in a separate thread and return its reference. @return reference to watch processing thread @throws AzkabanWatchException if watch can't be launched.
launchPodWatch
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
Apache-2.0
@Override public void launchWatch() { this.launchPodWatch(); }
Launch the pod watch processing in a separate thread and return its reference. @return reference to watch processing thread @throws AzkabanWatchException if watch can't be launched.
launchWatch
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
Apache-2.0
public String getNamespace() { return this.namespace; }
Parameters used for setting up the Pod watch.
getNamespace
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
Apache-2.0
public String getLabelSelector() { return this.labelSelector; }
Parameters used for setting up the Pod watch.
getLabelSelector
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
Apache-2.0
public int getResetDelayMillis() { return this.resetDelayMillis; }
Parameters used for setting up the Pod watch.
getResetDelayMillis
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/KubernetesWatch.java
Apache-2.0
public static void logWatchEvent(AzPodStatusMetadata event, String message) { try { logger.info(new StringBuffer(message) .append(System.lineSeparator()) .append(event.getPodWatchEvent().object.toString()) .toString()); } catch (Exception e) { logger.error("Unexpected e...
Contains methods for logging of Kubernetes watch events. This currently utilizes the {@code toString()} method of {@link V1Pod} which generates a human-friendly string representation of the event. However, there is value in logging the raw json representation of the events received from the Kubernetes APIServer as the...
logWatchEvent
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/WatchEventLogger.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/WatchEventLogger.java
Apache-2.0
public static ApiClient createApiClient(final Props azkProps) { final String kubeConfigPath; final KubeConfig kubeConfig; final ApiClient apiClient; requireNonNull(azkProps, "azkaban properties must not be null"); try { kubeConfigPath = azkProps .getString(ContainerizedDispatchManage...
Utility method for creating a Kubernetes (@link ApiClient} from given Azkaban properties. @param azkProps @return api client
createApiClient
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/WatchUtils.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/WatchUtils.java
Apache-2.0
public static PodWatchParams createPodWatchParams(final Props azkProps) { requireNonNull(azkProps, "azkaban properties must not be null"); final String namespace = azkProps.getString(ContainerizedDispatchManagerProperties.KUBERNETES_NAMESPACE); final String labelSelector = KubernetesContainerizedImp...
Creates {@link PodWatchParams} using Akzaban properties, with the correct Pod {@code labelSelector} provied by the Kubernetes dispatch implementation. @param azkProps @return
createPodWatchParams
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/container/watch/WatchUtils.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/container/watch/WatchUtils.java
Apache-2.0
protected boolean tieBreak(final T object1, final T object2) { if (null == object2) { return true; } if (null == object1) { return false; } return object1.hashCode() >= object2.hashCode(); }
tieBreak method which will kick in when the comparator list generated an equality result for both sides. the tieBreak method will try best to make sure a stable result is returned.
tieBreak
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/CandidateComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/CandidateComparator.java
Apache-2.0
protected void registerFactorComparator(final FactorComparator<T> comparator) { if (null == comparator || Integer.MAX_VALUE - this.getTotalWeight() < comparator.getWeight()) { throw new IllegalArgumentException("unable to register comparator." + " The passed comparator is null or has an inva...
function to register a factorComparator to the internal Map for future reference. @param factorComparator : the comparator object to be registered.
registerFactorComparator
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/CandidateComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/CandidateComparator.java
Apache-2.0
public int getTotalWeight() { int totalWeight = 0; // save out a copy of the values as HashMap.values() takes o(n) to return the value. final Collection<FactorComparator<T>> allValues = this.factorComparatorList.values(); for (final FactorComparator<T> item : allValues) { if (item != null) { ...
function returns the total weight of the registered comparators. @return the value of total weight.
getTotalWeight
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/CandidateComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/CandidateComparator.java
Apache-2.0
public Pair<Integer, Integer> getComparisonScore(final T object1, final T object2) { logger.debug(String.format("start comparing '%s' with '%s', total weight = %s ", object1 == null ? "(null)" : object1.toString(), object2 == null ? "(null)" : object2.toString(), this.getTotalWeight())); ...
<pre> function to actually calculate the scores for the two objects that are being compared. the comparison follows the following logic - 1. if both objects are equal return 0 score for both. 2. if one side is null, the other side gets all the score. 3. if both sides are non-null value, both values will be passed t...
getComparisonScore
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/CandidateComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/CandidateComparator.java
Apache-2.0
@Override public int compare(final T o1, final T o2) { final Pair<Integer, Integer> result = this.getComparisonScore(o1, o2); return Objects.equals(result.getFirst(), result.getSecond()) ? 0 : result.getFirst() > result.getSecond() ? 1 : -1; }
<pre> function to actually calculate the scores for the two objects that are being compared. the comparison follows the following logic - 1. if both objects are equal return 0 score for both. 2. if one side is null, the other side gets all the score. 3. if both sides are non-null value, both values will be passed t...
compare
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/CandidateComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/CandidateComparator.java
Apache-2.0
protected void registerFactorFilter(final FactorFilter<T, V> filter) { if (null == filter) { throw new IllegalArgumentException("unable to register factor filter. " + "The passed comaractor is null or has an invalid weight value."); } // add or replace the filter. this.factorFilterList....
function to register a factorFilter to the internal Map for future reference. @param factorfilter : the Filter object to be registered.
registerFactorFilter
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/CandidateFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/CandidateFilter.java
Apache-2.0
public boolean filterTarget(final T filteringTarget, final V referencingObject) { logger.debug(String.format("start filtering '%s' with factor filter for '%s'", filteringTarget == null ? "(null)" : filteringTarget.toString(), this.getName())); final Collection<FactorFilter<T, V>> filterList = t...
function to analyze the target item according to the reference object to decide whether the item should be filtered. @param filteringTarget: object to be checked. @param referencingObject: object which contains statistics based on which a decision is made whether the object being checked need to be filtered or not. @r...
filterTarget
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/CandidateFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/CandidateFilter.java
Apache-2.0
@Override public K getBest(final Collection<K> candidateList, final V dispatchingObject) { // shortcut if the candidateList is empty. if (null == candidateList || candidateList.size() == 0) { logger.error("failed to getNext candidate as the passed candidateList is null or empty."); return null; ...
constructor of the class. @param filter CandidateFilter object to be used to perform the candidate filtering. @param comparator CandidateComparator object to be used to find the best suit candidate from the filtered list.
getBest
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/CandidateSelector.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/CandidateSelector.java
Apache-2.0
@Override public String getName() { return "CandidateSelector"; }
constructor of the class. @param filter CandidateFilter object to be used to perform the candidate filtering. @param comparator CandidateComparator object to be used to find the best suit candidate from the filtered list.
getName
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/CandidateSelector.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/CandidateSelector.java
Apache-2.0
public static Set<String> getAvailableComparatorNames() { return comparatorCreatorRepository.keySet(); }
Gets the name list of all available comparators. @return the list of the names.
getAvailableComparatorNames
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
Apache-2.0
private static boolean statisticsObjectCheck(final ExecutorInfo statisticsObj1, final ExecutorInfo statisticsObj2, final String caller) { // both doesn't expose the info if (null == statisticsObj1 && null == statisticsObj2) { logger.debug(String.format("%s : neither of the executors exposed statisti...
<pre> helper function that does the object on two statistics, comparator can leverage this function to provide shortcuts if the statistics object is missing from one or both sides of the executors. </pre> @param stat1 the first statistics object to be checked . @param stat2 the second statistics object to be check...
statisticsObjectCheck
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
Apache-2.0
private static FactorComparator<Executor> getNumberOfAssignedFlowComparator(final int weight) { return FactorComparator .create(NUMOFASSIGNEDFLOW_COMPARATOR_NAME, weight, new Comparator<Executor>() { @Override public int compare(final Executor o1, final Executor o2) { final ...
function defines the number of assigned flow comparator. @param weight weight of the comparator.
getNumberOfAssignedFlowComparator
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
Apache-2.0
@Override public int compare(final Executor o1, final Executor o2) { final ExecutorInfo stat1 = o1.getExecutorInfo(); final ExecutorInfo stat2 = o2.getExecutorInfo(); final Integer result = 0; if (statisticsObjectCheck(stat1, stat2, NUMOFASSIGNEDFLOW_COMPARATOR...
function defines the number of assigned flow comparator. @param weight weight of the comparator.
compare
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
Apache-2.0
private static FactorComparator<Executor> getCpuUsageComparator(final int weight) { return FactorComparator.create(CPUUSAGE_COMPARATOR_NAME, weight, new Comparator<Executor>() { @Override public int compare(final Executor o1, final Executor o2) { final ExecutorInfo stat1 = o1.getExecutorInfo();...
function defines the cpuUsage comparator. @param weight weight of the comparator.
getCpuUsageComparator
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
Apache-2.0
@Override public int compare(final Executor o1, final Executor o2) { final ExecutorInfo stat1 = o1.getExecutorInfo(); final ExecutorInfo stat2 = o2.getExecutorInfo(); final int result = 0; if (statisticsObjectCheck(stat1, stat2, CPUUSAGE_COMPARATOR_NAME)) { return result...
function defines the cpuUsage comparator. @param weight weight of the comparator.
compare
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
Apache-2.0
private static FactorComparator<Executor> getLstDispatchedTimeComparator(final int weight) { return FactorComparator .create(LSTDISPATCHED_COMPARATOR_NAME, weight, new Comparator<Executor>() { @Override public int compare(final Executor o1, final Executor o2) { final Executo...
function defines the last dispatched time comparator. @param weight weight of the comparator.
getLstDispatchedTimeComparator
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
Apache-2.0
@Override public int compare(final Executor o1, final Executor o2) { final ExecutorInfo stat1 = o1.getExecutorInfo(); final ExecutorInfo stat2 = o2.getExecutorInfo(); final int result = 0; if (statisticsObjectCheck(stat1, stat2, LSTDISPATCHED_COMPARATOR_NAME)) ...
function defines the last dispatched time comparator. @param weight weight of the comparator.
compare
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
Apache-2.0
private static FactorComparator<Executor> getMemoryComparator(final int weight) { return FactorComparator.create(MEMORY_COMPARATOR_NAME, weight, new Comparator<Executor>() { @Override public int compare(final Executor o1, final Executor o2) { final ExecutorInfo stat1 = o1.getExecutorInfo(); ...
<pre> function defines the Memory comparator. Note: comparator firstly take the absolute value of the remaining memory, if both sides have the same value, it go further to check the percent of the remaining memory. </pre> @param weight weight of the comparator.
getMemoryComparator
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
Apache-2.0
@Override public int compare(final Executor o1, final Executor o2) { final ExecutorInfo stat1 = o1.getExecutorInfo(); final ExecutorInfo stat2 = o2.getExecutorInfo(); final int result = 0; if (statisticsObjectCheck(stat1, stat2, MEMORY_COMPARATOR_NAME)) { return result; ...
<pre> function defines the Memory comparator. Note: comparator firstly take the absolute value of the remaining memory, if both sides have the same value, it go further to check the percent of the remaining memory. </pre> @param weight weight of the comparator.
compare
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
Apache-2.0
@Override public String getName() { return "ExecutorComparator"; }
<pre> function defines the Memory comparator. Note: comparator firstly take the absolute value of the remaining memory, if both sides have the same value, it go further to check the percent of the remaining memory. </pre> @param weight weight of the comparator.
getName
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorComparator.java
Apache-2.0
public static Set<String> getAvailableFilterNames() { return filterRepository.keySet(); }
Gets the name list of all available filters. @return the list of the names.
getAvailableFilterNames
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
Apache-2.0
private static FactorFilter<Executor, ExecutableFlow> getStaticRemainingFlowSizeFilter() { return FactorFilter .create(STATICREMAININGFLOWSIZE_FILTER_NAME, (filteringTarget, referencingObject) -> { if (null == filteringTarget) { logger.debug(String.format("%s : filtering out the target...
<pre> function to register the static remaining flow size filter. NOTE : this is a static filter which means the filter will be filtering based on the system standard which is not Coming for the passed flow. Ideally this filter will make sure only the executor hasn't reached the Max allowed # of executing...
getStaticRemainingFlowSizeFilter
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
Apache-2.0
private static FactorFilter<Executor, ExecutableFlow> getMinimumReservedMemoryFilter() { return FactorFilter .create(MINIMUMFREEMEMORY_FILTER_NAME, new FactorFilter.Filter<Executor, ExecutableFlow>() { private static final int MINIMUM_FREE_MEMORY = 6 * 1024; @Override public b...
<pre> function to register the static Minimum Reserved Memory filter. NOTE : this is a static filter which means the filter will be filtering based on the system standard which is not Coming for the passed flow. This filter will filter out any executors that has the remaining memory below 6G </pre>
getMinimumReservedMemoryFilter
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
Apache-2.0
@Override public boolean filterTarget(final Executor filteringTarget, final ExecutableFlow referencingObject) { if (null == filteringTarget) { logger.debug(String.format("%s : filtering out the target as it is null.", MINIMUMFREEMEMORY_FILTER_NAME)); ...
<pre> function to register the static Minimum Reserved Memory filter. NOTE : this is a static filter which means the filter will be filtering based on the system standard which is not Coming for the passed flow. This filter will filter out any executors that has the remaining memory below 6G </pre>
filterTarget
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
Apache-2.0
private static FactorFilter<Executor, ExecutableFlow> getCpuStatusFilter() { return FactorFilter .create(CPUSTATUS_FILTER_NAME, new FactorFilter.Filter<Executor, ExecutableFlow>() { private static final int MAX_CPU_CURRENT_USAGE = 95; @Override public boolean filterTarget(fina...
<pre> function to register the static Minimum Reserved Memory filter. NOTE : this is a static filter which means the filter will be filtering based on the system standard which is not Coming for the passed flow. This filter will filter out any executors that the current CPU usage exceed 95% </pre>
getCpuStatusFilter
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
Apache-2.0
@Override public boolean filterTarget(final Executor filteringTarget, final ExecutableFlow referencingObject) { if (null == filteringTarget) { logger.debug(String .format("%s : filtering out the target as it is null.", CPUSTATUS_FILTER_NAME)); ...
<pre> function to register the static Minimum Reserved Memory filter. NOTE : this is a static filter which means the filter will be filtering based on the system standard which is not Coming for the passed flow. This filter will filter out any executors that the current CPU usage exceed 95% </pre>
filterTarget
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
Apache-2.0
@Override public String getName() { return "ExecutorFilter"; }
<pre> function to register the static Minimum Reserved Memory filter. NOTE : this is a static filter which means the filter will be filtering based on the system standard which is not Coming for the passed flow. This filter will filter out any executors that the current CPU usage exceed 95% </pre>
getName
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/ExecutorFilter.java
Apache-2.0
public static <T> FactorComparator<T> create(final String factorName, final int weight, final Comparator<T> comparator) { if (null == factorName || factorName.length() == 0 || weight < 0 || null == comparator) { logger.error( "failed to create instance of FactorComparator, at least one of the...
static function to generate an instance of the class. refer to the constructor for the param definitions.
create
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/FactorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/FactorComparator.java
Apache-2.0
public String getFactorName() { return this.factorName; }
static function to generate an instance of the class. refer to the constructor for the param definitions.
getFactorName
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/FactorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/FactorComparator.java
Apache-2.0
public int getWeight() { return this.weight; }
static function to generate an instance of the class. refer to the constructor for the param definitions.
getWeight
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/FactorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/FactorComparator.java
Apache-2.0
public void updateWeight(final int value) { this.weight = value; }
static function to generate an instance of the class. refer to the constructor for the param definitions.
updateWeight
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/FactorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/FactorComparator.java
Apache-2.0
public int compare(final T object1, final T object2) { return this.comparator.compare(object1, object2); }
static function to generate an instance of the class. refer to the constructor for the param definitions.
compare
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/FactorComparator.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/FactorComparator.java
Apache-2.0
public static <T, V> FactorFilter<T, V> create(final String factorName, final Filter<T, V> filter) { if (null == factorName || factorName.length() == 0 || null == filter) { logger.error( "failed to create instance of FactorFilter, at least one of the input paramters are invalid"); retur...
static function to generate an instance of the class. refer to the constructor for the param definitions.
create
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/FactorFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/FactorFilter.java
Apache-2.0
public String getFactorName() { return this.factorName; }
static function to generate an instance of the class. refer to the constructor for the param definitions.
getFactorName
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/FactorFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/FactorFilter.java
Apache-2.0
public boolean filterTarget(final T filteringTarget, final V referencingObject) { return this.filter.filterTarget(filteringTarget, referencingObject); }
static function to generate an instance of the class. refer to the constructor for the param definitions.
filterTarget
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/executor/selector/FactorFilter.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/executor/selector/FactorFilter.java
Apache-2.0
public List<Pair<String, String>> getParents() { final List<Pair<String, String>> parents = new ArrayList<>(); // Tuple (flow name, node path) final String[] parentNames = getId().split(Constants.PATH_DELIMITER, 0); parents.add(new Pair<>(parentNames[0], parentNames[0])); // root flow is first element f...
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getParents
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public void addError(final String error) { if (this.errors == null) { this.errors = new ArrayList<>(); } this.errors.add(error); }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
addError
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public List<String> getErrors() { return this.errors; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getErrors
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public boolean hasErrors() { return this.errors != null && !this.errors.isEmpty(); }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
hasErrors
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public Collection<Node> getNodes() { return this.nodes.values(); }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getNodes
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public Collection<Edge> getEdges() { return this.edges.values(); }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getEdges
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public void addAllEdges(final Collection<Edge> edges) { for (final Edge edge : edges) { addEdge(edge); } }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
addAllEdges
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public void addEdge(final Edge edge) { final String source = edge.getSourceId(); final String target = edge.getTargetId(); if (edge.hasError()) { addError("Error on " + edge.getId() + ". " + edge.getError()); } final Set<Edge> sourceSet = getEdgeSet(this.outEdges, source); sourceSet.add(...
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
addEdge
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
private Set<Edge> getEdgeSet(final HashMap<String, Set<Edge>> map, final String id) { Set<Edge> edges = map.get(id); if (edges == null) { edges = new HashSet<>(); map.put(id, edges); } return edges; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getEdgeSet
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public Map<String, Object> toObject() { final HashMap<String, Object> flowObj = new HashMap<>(); flowObj.put(TYPE_PROPERTY, "flow"); flowObj.put(FLOW_NAME_PROPERTY, getId()); flowObj.put(PROJECT_ID_PROPERTY, this.projectId); flowObj.put(PROJECT_VERSION_PROPERTY, this.version); flowObj.put(PROPS_...
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
toObject
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
private List<Object> objectizeProperties() { final ArrayList<Object> result = new ArrayList<>(); for (final ImmutableFlowProps props : this.flowProps.values()) { final Object objProps = props.toObject(); result.add(objProps); } return result; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
objectizeProperties
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
private List<Object> objectizeNodes() { final ArrayList<Object> result = new ArrayList<>(); for (final Node node : getNodes()) { final Object nodeObj = node.toObject(); result.add(nodeObj); } return result; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
objectizeNodes
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
private List<Object> objectizeEdges() { final ArrayList<Object> result = new ArrayList<>(); for (final Edge edge : getEdges()) { final Object edgeObj = edge.toObject(); result.add(edgeObj); } return result; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
objectizeEdges
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public boolean isLayedOut() { return this.isLayedOut; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
isLayedOut
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public void setLayedOut(final boolean layedOut) { this.isLayedOut = layedOut; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
setLayedOut
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public boolean isEmbeddedFlow() { return this.isEmbeddedFlow; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
isEmbeddedFlow
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public void setEmbeddedFlow(final boolean embeddedFlow) { this.isEmbeddedFlow = embeddedFlow; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
setEmbeddedFlow
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public double getAzkabanFlowVersion() { return this.azkabanFlowVersion; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getAzkabanFlowVersion
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public void setAzkabanFlowVersion(final double azkabanFlowVersion) { this.azkabanFlowVersion = azkabanFlowVersion; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
setAzkabanFlowVersion
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public String getCondition() { return this.condition; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getCondition
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public void setCondition(final String condition) { this.condition = condition; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
setCondition
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public Map<String, Object> getMetadata() { if (this.metadata == null) { this.metadata = new HashMap<>(); } return this.metadata; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getMetadata
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public void setMetadata(final Map<String, Object> metadata) { this.metadata = metadata; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
setMetadata
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public Map<String, Node> getNodeMap() { return this.nodes; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getNodeMap
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public Map<String, Set<Edge>> getOutEdgeMap() { return this.outEdges; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getOutEdgeMap
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public Map<String, Set<Edge>> getInEdgeMap() { return this.inEdges; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getInEdgeMap
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public ImmutableFlowProps getFlowProps(final String propSource) { return this.flowProps.get(propSource); }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getFlowProps
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public Map<String, ImmutableFlowProps> getAllFlowProps() { return this.flowProps; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getAllFlowProps
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public int getProjectId() { return this.projectId; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
getProjectId
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public void setProjectId(final int projectId) { this.projectId = projectId; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
setProjectId
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0
public boolean isLocked() { return this.isLocked; }
Return all flow parents of this flow. From each parent its name and node path are returned. @return the list of parents
isLocked
java
azkaban/azkaban
azkaban-common/src/main/java/azkaban/flow/Flow.java
https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/main/java/azkaban/flow/Flow.java
Apache-2.0