public abstract class AbstractJobController extends Object implements JobController
GROUP_ERRORS, GROUP_INPUTS, GROUP_RESULTS, JOB_INPUTS, JOB_RESULTS| Constructor and Description |
|---|
AbstractJobController(CpfDataAccessObject dataAccessObject) |
| Modifier and Type | Method and Description |
|---|---|
CpfDataAccessObject |
getDataAccessObject() |
protected abstract String |
getFileContentType(com.revolsys.identifier.Identifier jobId,
String path,
int sequenceNumber) |
protected abstract long |
getFileSize(com.revolsys.identifier.Identifier jobId,
String path,
int sequenceNumber) |
protected abstract InputStream |
getFileStream(com.revolsys.identifier.Identifier jobId,
String path,
int sequenceNumber) |
protected abstract InputStream |
getFileStream(com.revolsys.identifier.Identifier jobId,
String path,
int sequenceNumber,
long fromIndex,
long toIndex) |
com.revolsys.io.map.MapReader |
getGroupErrorReader(com.revolsys.identifier.Identifier jobId,
int sequenceNumber) |
String |
getGroupInputContentType(com.revolsys.identifier.Identifier batchJobId,
int sequenceNumber) |
InputStream |
getGroupInputStream(com.revolsys.identifier.Identifier jobId,
int sequenceNumber) |
String |
getGroupInputString(com.revolsys.identifier.Identifier jobId,
int sequenceNumber) |
com.revolsys.io.map.MapReader |
getGroupResultReader(com.revolsys.identifier.Identifier jobId,
int sequenceNumber) |
InputStream |
getGroupResultStream(com.revolsys.identifier.Identifier jobId,
int sequenceNumber) |
InputStream |
getJobInputStream(com.revolsys.identifier.Identifier jobId) |
long |
getJobResultSize(com.revolsys.identifier.Identifier jobId,
int sequenceNumber) |
InputStream |
getJobResultStream(com.revolsys.identifier.Identifier jobId,
int sequenceNumber) |
InputStream |
getJobResultStream(com.revolsys.identifier.Identifier jobId,
int sequenceNumber,
long fromIndex,
long toIndex) |
void |
newJobInputFile(com.revolsys.identifier.Identifier jobId,
String contentType,
Object data) |
void |
setGroupError(com.revolsys.identifier.Identifier jobId,
int sequenceNumber,
Object data) |
void |
setGroupInput(com.revolsys.identifier.Identifier jobId,
int sequenceNumber,
String contentType,
Object data) |
void |
setGroupResult(com.revolsys.identifier.Identifier jobId,
int sequenceNumber,
InputStream in) |
void |
setJobResult(com.revolsys.identifier.Identifier jobId,
int sequenceNumber,
String contentType,
Object data) |
void |
writeFile(javax.servlet.http.HttpServletResponse response,
com.revolsys.identifier.Identifier jobId,
String path,
int sequenceNumber) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelJob, deleteJob, getFiles, getKey, newJobFile, newPreProcessGroup, writeGroupInputpublic AbstractJobController(CpfDataAccessObject dataAccessObject)
public CpfDataAccessObject getDataAccessObject()
getDataAccessObject in interface JobControllerprotected abstract String getFileContentType(com.revolsys.identifier.Identifier jobId, String path, int sequenceNumber)
protected abstract long getFileSize(com.revolsys.identifier.Identifier jobId,
String path,
int sequenceNumber)
protected abstract InputStream getFileStream(com.revolsys.identifier.Identifier jobId, String path, int sequenceNumber)
protected abstract InputStream getFileStream(com.revolsys.identifier.Identifier jobId, String path, int sequenceNumber, long fromIndex, long toIndex)
public com.revolsys.io.map.MapReader getGroupErrorReader(com.revolsys.identifier.Identifier jobId,
int sequenceNumber)
getGroupErrorReader in interface JobControllerpublic String getGroupInputContentType(com.revolsys.identifier.Identifier batchJobId, int sequenceNumber)
getGroupInputContentType in interface JobControllerpublic InputStream getGroupInputStream(com.revolsys.identifier.Identifier jobId, int sequenceNumber)
getGroupInputStream in interface JobControllerpublic String getGroupInputString(com.revolsys.identifier.Identifier jobId, int sequenceNumber)
getGroupInputString in interface JobControllerpublic com.revolsys.io.map.MapReader getGroupResultReader(com.revolsys.identifier.Identifier jobId,
int sequenceNumber)
getGroupResultReader in interface JobControllerpublic InputStream getGroupResultStream(com.revolsys.identifier.Identifier jobId, int sequenceNumber)
getGroupResultStream in interface JobControllerpublic InputStream getJobInputStream(com.revolsys.identifier.Identifier jobId)
getJobInputStream in interface JobControllerpublic long getJobResultSize(com.revolsys.identifier.Identifier jobId,
int sequenceNumber)
getJobResultSize in interface JobControllerpublic InputStream getJobResultStream(com.revolsys.identifier.Identifier jobId, int sequenceNumber)
getJobResultStream in interface JobControllerpublic InputStream getJobResultStream(com.revolsys.identifier.Identifier jobId, int sequenceNumber, long fromIndex, long toIndex)
getJobResultStream in interface JobControllerpublic void newJobInputFile(com.revolsys.identifier.Identifier jobId,
String contentType,
Object data)
newJobInputFile in interface JobControllerpublic void setGroupError(com.revolsys.identifier.Identifier jobId,
int sequenceNumber,
Object data)
setGroupError in interface JobControllerpublic void setGroupInput(com.revolsys.identifier.Identifier jobId,
int sequenceNumber,
String contentType,
Object data)
setGroupInput in interface JobControllerpublic void setGroupResult(com.revolsys.identifier.Identifier jobId,
int sequenceNumber,
InputStream in)
setGroupResult in interface JobControllerpublic void setJobResult(com.revolsys.identifier.Identifier jobId,
int sequenceNumber,
String contentType,
Object data)
setJobResult in interface JobControllerpublic void writeFile(javax.servlet.http.HttpServletResponse response,
com.revolsys.identifier.Identifier jobId,
String path,
int sequenceNumber)
throws IOException
writeFile in interface JobControllerIOExceptionCopyright © 2008–2017 Province of British Columbia. All rights reserved.