Class AbstractJobController
- java.lang.Object
-
- ca.bc.gov.open.cpf.api.web.controller.AbstractJobController
-
- All Implemented Interfaces:
JobController
- Direct Known Subclasses:
DatabaseJobController
,FileJobController
public abstract class AbstractJobController extends Object implements JobController
-
-
Field Summary
-
Fields inherited from interface ca.bc.gov.open.cpf.api.web.controller.JobController
GROUP_ERRORS, GROUP_INPUTS, GROUP_RESULTS, JOB_INPUTS, JOB_RESULTS
-
-
Constructor Summary
Constructors Constructor Description AbstractJobController(CpfDataAccessObject dataAccessObject)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CpfDataAccessObject
getDataAccessObject()
protected abstract String
getFileContentType(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber)
protected abstract long
getFileSize(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber)
protected abstract InputStream
getFileStream(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber)
protected abstract InputStream
getFileStream(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber, long fromIndex, long toIndex)
com.revolsys.io.map.MapReader
getGroupErrorReader(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
String
getGroupInputContentType(org.jeometry.common.data.identifier.Identifier batchJobId, int sequenceNumber)
InputStream
getGroupInputStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
String
getGroupInputString(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
com.revolsys.io.map.MapReader
getGroupResultReader(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
InputStream
getGroupResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
InputStream
getJobInputStream(org.jeometry.common.data.identifier.Identifier jobId)
long
getJobResultSize(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
InputStream
getJobResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
InputStream
getJobResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, long fromIndex, long toIndex)
void
newJobInputFile(org.jeometry.common.data.identifier.Identifier jobId, String contentType, Object data)
void
setGroupError(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, Object data)
void
setGroupInput(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, String contentType, Object data)
void
setGroupResult(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, InputStream in)
void
setJobResult(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, String contentType, Object data)
void
writeFile(javax.servlet.http.HttpServletResponse response, org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ca.bc.gov.open.cpf.api.web.controller.JobController
deleteJob, getFiles, getKey, newJobFile, newPreProcessGroup, writeGroupInput
-
-
-
-
Constructor Detail
-
AbstractJobController
public AbstractJobController(CpfDataAccessObject dataAccessObject)
-
-
Method Detail
-
getDataAccessObject
public CpfDataAccessObject getDataAccessObject()
- Specified by:
getDataAccessObject
in interfaceJobController
-
getFileContentType
protected abstract String getFileContentType(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber)
-
getFileSize
protected abstract long getFileSize(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber)
-
getFileStream
protected abstract InputStream getFileStream(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber)
-
getFileStream
protected abstract InputStream getFileStream(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber, long fromIndex, long toIndex)
-
getGroupErrorReader
public com.revolsys.io.map.MapReader getGroupErrorReader(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
- Specified by:
getGroupErrorReader
in interfaceJobController
-
getGroupInputContentType
public String getGroupInputContentType(org.jeometry.common.data.identifier.Identifier batchJobId, int sequenceNumber)
- Specified by:
getGroupInputContentType
in interfaceJobController
-
getGroupInputStream
public InputStream getGroupInputStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
- Specified by:
getGroupInputStream
in interfaceJobController
-
getGroupInputString
public String getGroupInputString(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
- Specified by:
getGroupInputString
in interfaceJobController
-
getGroupResultReader
public com.revolsys.io.map.MapReader getGroupResultReader(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
- Specified by:
getGroupResultReader
in interfaceJobController
-
getGroupResultStream
public InputStream getGroupResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
- Specified by:
getGroupResultStream
in interfaceJobController
-
getJobInputStream
public InputStream getJobInputStream(org.jeometry.common.data.identifier.Identifier jobId)
- Specified by:
getJobInputStream
in interfaceJobController
-
getJobResultSize
public long getJobResultSize(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
- Specified by:
getJobResultSize
in interfaceJobController
-
getJobResultStream
public InputStream getJobResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
- Specified by:
getJobResultStream
in interfaceJobController
-
getJobResultStream
public InputStream getJobResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, long fromIndex, long toIndex)
- Specified by:
getJobResultStream
in interfaceJobController
-
newJobInputFile
public void newJobInputFile(org.jeometry.common.data.identifier.Identifier jobId, String contentType, Object data)
- Specified by:
newJobInputFile
in interfaceJobController
-
setGroupError
public void setGroupError(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, Object data)
- Specified by:
setGroupError
in interfaceJobController
-
setGroupInput
public void setGroupInput(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, String contentType, Object data)
- Specified by:
setGroupInput
in interfaceJobController
-
setGroupResult
public void setGroupResult(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, InputStream in)
- Specified by:
setGroupResult
in interfaceJobController
-
setJobResult
public void setJobResult(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, String contentType, Object data)
- Specified by:
setJobResult
in interfaceJobController
-
writeFile
public void writeFile(javax.servlet.http.HttpServletResponse response, org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber) throws IOException
- Specified by:
writeFile
in interfaceJobController
- Throws:
IOException
-
-