Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Reduced the thread # -made traversing trees more efficient (hopefully should speed up restart on large flows) -Re-did the UI due to very slow tree performances with custom UI built on JQuery.
- Loading branch information
Showing
50 changed files
with
5,409 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package azkaban.jobs; | ||
|
||
import azkaban.common.utils.Props; | ||
|
||
public interface Executor { | ||
|
||
/** | ||
* Returns a unique(should be checked in xml) string name/id for the Job. | ||
* | ||
* @return | ||
*/ | ||
public String getId(); | ||
|
||
/** | ||
* Run the job. In general this method can only be run once. Must either | ||
* succeed or throw an exception. | ||
*/ | ||
public void run() throws Exception; | ||
|
||
/** | ||
* Best effort attempt to cancel the job. | ||
* | ||
* @throws Exception If cancel fails | ||
*/ | ||
public void cancel() throws Exception; | ||
|
||
/** | ||
* Returns a progress report between [0 - 1.0] to indicate the percentage | ||
* complete | ||
* | ||
* @throws Exception If getting progress fails | ||
*/ | ||
public double getProgress() throws Exception; | ||
|
||
/** | ||
* Get the generated properties from this job. | ||
* @return | ||
*/ | ||
public Props getJobGeneratedProperties(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package azkaban.util; | ||
|
||
public class Pair<F, S> { | ||
private final F first; | ||
private final S second; | ||
|
||
public Pair(F first, S second) { | ||
this.first = first; | ||
this.second = second; | ||
} | ||
|
||
public F getFirst() { | ||
return first; | ||
} | ||
|
||
public S getSecond() { | ||
return second; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.