ensembl-hive-java
2.6
|
Public Member Functions | |
void | setFileDescriptors (FileDescriptor inputDescriptor, FileDescriptor outputDescriptor) throws IOException |
void | processLifeCycle () |
Static Public Member Functions | |
static Long | numericParamToLong (Object param) |
static String | numericParamToStr (Object param) |
Static Public Attributes | |
static final String | VERSION = "5.0" |
Protected Member Functions | |
Logger | getLog () |
void | runLifeCycle (Job job, boolean executeWrites) |
void | init () |
Map< String, Object > | getParamDefaults () |
void | preCleanUp (Job job) |
abstract void | fetchInput (Job job) |
abstract void | run (Job job) |
void | postHealthcheck (Job job) |
void | postCleanUp (Job job) |
abstract void | writeOutput (Job job) |
void | warning (String message, boolean isError) |
Map< String, Object > | dataflow (ParamContainer params, Collection< Object > outputIds) |
Map< String, Object > | dataflow (ParamContainer params, Collection< Object > outputIds, int branchNameOrCode) |
String | workerTempDirectory () |
void | sendMessageAndWait (String event, Object content) |
void | sendEventMessage (String event, Object content) |
Map< String, Object > | readMessage () |
Map< String, Object > | readMessageAndRespond () |
void | sendOK () |
Static Protected Member Functions | |
static Map< String, Object > | toMap (Object... o) |
Static Protected Attributes | |
static final Map< String, Object > | DEFAULT_PARAMS = new HashMap<>() |
Base class implementing the runnable lifecycle
Definition at line 48 of file BaseRunnable.java.
|
inlineprotected |
Dataflows the output_id(s) on a given branch (default 1). Returns whatever the Perl side returns
params | The current Parameters structure of job |
outputIds | Collection of hashes representing the parameters of the new jobs |
Definition at line 281 of file BaseRunnable.java.
|
inlineprotected |
Dataflows the output_id(s) on a given branch (default 1). Returns whatever the Perl side returns
params | The current Parameters structure of job |
outputIds | Collection of hashes representing the parameters of the new jobs |
branchNameOrCode | Branch number |
Definition at line 295 of file BaseRunnable.java.
|
abstractprotected |
Reimplemented in org.ensembl.hive.longmult.PartMultiply, org.ensembl.hive.longmult.DigitFactory, org.ensembl.hive.TestRunnable, and org.ensembl.hive.longmult.AddTogether.
|
inlineprotected |
|
inlineprotected |
Reimplemented in org.ensembl.hive.longmult.PartMultiply, org.ensembl.hive.longmult.DigitFactory, org.ensembl.hive.longmult.AddTogether, and org.ensembl.hive.TestRunnable.
Definition at line 242 of file BaseRunnable.java.
|
inlineprotected |
Definition at line 235 of file BaseRunnable.java.
|
inlinestatic |
Helper method for dealing with numbers that have been passed around through JSON and may be of different types
param | The source object. Currently only numeric and string types are handled |
Definition at line 429 of file BaseRunnable.java.
|
inlinestatic |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
Definition at line 138 of file BaseRunnable.java.
|
inlineprotected |
Read a JSON message from the parent
Definition at line 381 of file BaseRunnable.java.
|
inlineprotected |
Definition at line 394 of file BaseRunnable.java.
|
abstractprotected |
Reimplemented in org.ensembl.hive.longmult.DigitFactory, org.ensembl.hive.longmult.AddTogether, org.ensembl.hive.longmult.PartMultiply, and org.ensembl.hive.TestRunnable.
|
inlineprotected |
Definition at line 213 of file BaseRunnable.java.
|
inlineprotected |
Send an event-based message to the parent
event | Type of the event |
content | Content of the event |
Definition at line 348 of file BaseRunnable.java.
|
inlineprotected |
Send a message and wait for OK from the parent
event | Type of the event |
content | Content of the event |
Definition at line 333 of file BaseRunnable.java.
|
inlineprotected |
Definition at line 400 of file BaseRunnable.java.
|
inline |
|
inlinestaticprotected |
Utility method for building a hash from key-value pairs
o | A list with an even number of elemements |
Definition at line 86 of file BaseRunnable.java.
|
inlineprotected |
Store a message in the log_message table with is_error indicating whether the warning is actually an error or not
message | The message string |
isError | Directly maps to the log_message.is_error columns |
Definition at line 268 of file BaseRunnable.java.
|
inlineprotected |
Returns the full path of the temporary directory created by the worker. Runnables can override this to return the name they would like to use
Definition at line 318 of file BaseRunnable.java.
|
abstractprotected |
Reimplemented in org.ensembl.hive.longmult.AddTogether, org.ensembl.hive.longmult.PartMultiply, org.ensembl.hive.longmult.DigitFactory, and org.ensembl.hive.TestRunnable.
|
staticprotected |
Definition at line 78 of file BaseRunnable.java.
|
static |
Definition at line 76 of file BaseRunnable.java.