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, wait
cancelJob, deleteJob, getFiles, getKey, newJobFile, newPreProcessGroup, writeGroupInput
public AbstractJobController(CpfDataAccessObject dataAccessObject)
public CpfDataAccessObject getDataAccessObject()
getDataAccessObject
in interface JobController
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)
public com.revolsys.io.map.MapReader getGroupErrorReader(com.revolsys.identifier.Identifier jobId, int sequenceNumber)
getGroupErrorReader
in interface JobController
public String getGroupInputContentType(com.revolsys.identifier.Identifier batchJobId, int sequenceNumber)
getGroupInputContentType
in interface JobController
public InputStream getGroupInputStream(com.revolsys.identifier.Identifier jobId, int sequenceNumber)
getGroupInputStream
in interface JobController
public String getGroupInputString(com.revolsys.identifier.Identifier jobId, int sequenceNumber)
getGroupInputString
in interface JobController
public com.revolsys.io.map.MapReader getGroupResultReader(com.revolsys.identifier.Identifier jobId, int sequenceNumber)
getGroupResultReader
in interface JobController
public InputStream getGroupResultStream(com.revolsys.identifier.Identifier jobId, int sequenceNumber)
getGroupResultStream
in interface JobController
public InputStream getJobInputStream(com.revolsys.identifier.Identifier jobId)
getJobInputStream
in interface JobController
public long getJobResultSize(com.revolsys.identifier.Identifier jobId, int sequenceNumber)
getJobResultSize
in interface JobController
public InputStream getJobResultStream(com.revolsys.identifier.Identifier jobId, int sequenceNumber)
getJobResultStream
in interface JobController
public InputStream getJobResultStream(com.revolsys.identifier.Identifier jobId, int sequenceNumber, long fromIndex, long toIndex)
getJobResultStream
in interface JobController
public void newJobInputFile(com.revolsys.identifier.Identifier jobId, String contentType, Object data)
newJobInputFile
in interface JobController
public void setGroupError(com.revolsys.identifier.Identifier jobId, int sequenceNumber, Object data)
setGroupError
in interface JobController
public void setGroupInput(com.revolsys.identifier.Identifier jobId, int sequenceNumber, String contentType, Object data)
setGroupInput
in interface JobController
public void setGroupResult(com.revolsys.identifier.Identifier jobId, int sequenceNumber, InputStream in)
setGroupResult
in interface JobController
public void setJobResult(com.revolsys.identifier.Identifier jobId, int sequenceNumber, String contentType, Object data)
setJobResult
in interface JobController
public void writeFile(javax.servlet.http.HttpServletResponse response, com.revolsys.identifier.Identifier jobId, String path, int sequenceNumber) throws IOException
writeFile
in interface JobController
IOException
Copyright © 2008–2017 Province of British Columbia. All rights reserved.