public abstract class AbstractBinaryWithTimeout extends AbstractBinary
| Modifier and Type | Field and Description |
|---|---|
protected int |
max_time |
logger, outputCommandline| Constructor and Description |
|---|
AbstractBinaryWithTimeout() |
| Modifier and Type | Method and Description |
|---|---|
com.github.fracpete.processoutput4j.output.CollectingProcessOutput |
execute()
Executes the rsync binary for the platform and waits for its completion.
|
int |
getMaxTime()
Returns the maximum time in seconds for the rsync process to run.
|
protected net.sourceforge.argparse4j.inf.ArgumentParser |
getParser()
Configures and returns the commandline parser.
|
AbstractBinaryWithTimeout |
maxTime(int max_time)
Sets the maximum time in seconds for the rsync process to run.
|
void |
reset()
Resets the members.
|
protected boolean |
setOptions(net.sourceforge.argparse4j.inf.Namespace ns)
Sets the parsed options.
|
builder, commandLineArgs, description, getOutputCommandline, options, outputCommandline, run, setOptions, startpublic void reset()
reset in class AbstractBinarypublic int getMaxTime()
public AbstractBinaryWithTimeout maxTime(int max_time)
max_time - the maximum time in seconds, ignored if less than 1public com.github.fracpete.processoutput4j.output.CollectingProcessOutput execute()
throws java.lang.Exception
AbstractBinary.start() and
monitor the output yourself.execute in class AbstractBinaryjava.lang.Exception - if execution fails or failed to determine binaryAbstractBinary.commandLineArgs()protected net.sourceforge.argparse4j.inf.ArgumentParser getParser()
getParser in class AbstractBinaryprotected boolean setOptions(net.sourceforge.argparse4j.inf.Namespace ns)
setOptions in class AbstractBinaryns - the parsed optionsCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.