public abstract class JobServer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
basePath |
protected JobConfig |
config |
protected AtomicInteger |
executorCounter |
protected String |
jobId |
protected String |
jobUrl |
protected static org.slf4j.Logger |
LOGGER |
protected String |
reportDir |
protected File |
ZIP_FILE |
| Constructor and Description |
|---|
JobServer(JobConfig config,
String reportDir) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addFeature(ExecutionContext exec,
List<ScenarioExecutionUnit> units,
Runnable onComplete) |
byte[] |
getDownload() |
static File |
getFirstFileWithExtension(File parent,
String extension) |
abstract ChunkResult |
getNextChunk(String executorId) |
int |
getPort() |
protected void |
handleUpload(byte[] bytes,
String executorId,
String chunkId) |
abstract void |
handleUpload(File file,
String executorId,
String chunkId) |
protected String |
resolveUploadDir() |
void |
startExecutors() |
void |
stop() |
void |
waitSync() |
protected static final org.slf4j.Logger LOGGER
protected final JobConfig config
protected final String basePath
protected final File ZIP_FILE
protected final String jobId
protected final String jobUrl
protected final String reportDir
protected final AtomicInteger executorCounter
public static File getFirstFileWithExtension(File parent, String extension)
public void startExecutors()
protected String resolveUploadDir()
public byte[] getDownload()
public abstract void addFeature(ExecutionContext exec, List<ScenarioExecutionUnit> units, Runnable onComplete)
public abstract ChunkResult getNextChunk(String executorId)
public int getPort()
public void waitSync()
public void stop()
Copyright © 2020. All rights reserved.