public class PipelineStage extends Object
Constructor and Description |
---|
PipelineStage(com.typesafe.config.Config config,
Collection<PipelineStage> previousStages,
Map<String,org.wikibrain.core.model.MetaInfo> loadedInfo) |
Modifier and Type | Method and Description |
---|---|
double |
estimateDiskMegabytes(org.wikibrain.core.lang.LanguageSet langs) |
double |
estimateDownloadMegabytes(org.wikibrain.core.lang.LanguageSet langs) |
double |
estimateSeconds(org.wikibrain.core.lang.LanguageSet langs) |
String[] |
getActualArgs() |
double |
getElapsedSeconds() |
Class |
getKlass() |
String |
getName() |
Boolean |
getShouldRun() |
Date |
getStartTime() |
Boolean |
getSucceeded() |
boolean |
hasBeenRun() |
boolean |
isNeeded(boolean forceRerun) |
void |
reset() |
void |
run(String[] cmdLineArgs) |
void |
runWithDependenciesIfNeeded(String[] cmdLineArgs,
boolean forceRerun) |
void |
setDryRun(boolean dryRun) |
void |
setOverrideOptions(Boolean run,
String[] args) |
String |
toString() |
public PipelineStage(com.typesafe.config.Config config, Collection<PipelineStage> previousStages, Map<String,org.wikibrain.core.model.MetaInfo> loadedInfo) throws ClassNotFoundException
ClassNotFoundException
public boolean isNeeded(boolean forceRerun)
public void runWithDependenciesIfNeeded(String[] cmdLineArgs, boolean forceRerun) throws IOException, InterruptedException, StageFailedException
public void run(String[] cmdLineArgs) throws IOException, InterruptedException, StageFailedException
public void setDryRun(boolean dryRun)
public String getName()
public Class getKlass()
public boolean hasBeenRun()
public Boolean getShouldRun()
public void reset()
public String[] getActualArgs()
public Date getStartTime()
public double getElapsedSeconds()
public Boolean getSucceeded()
public double estimateSeconds(org.wikibrain.core.lang.LanguageSet langs)
public double estimateDiskMegabytes(org.wikibrain.core.lang.LanguageSet langs)
public double estimateDownloadMegabytes(org.wikibrain.core.lang.LanguageSet langs)
Copyright © 2014. All rights reserved.