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 CpfDataAccessObjectgetDataAccessObject()protected abstract StringgetFileContentType(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber)protected abstract longgetFileSize(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber)protected abstract InputStreamgetFileStream(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber)protected abstract InputStreamgetFileStream(org.jeometry.common.data.identifier.Identifier jobId, String path, int sequenceNumber, long fromIndex, long toIndex)com.revolsys.io.map.MapReadergetGroupErrorReader(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)StringgetGroupInputContentType(org.jeometry.common.data.identifier.Identifier batchJobId, int sequenceNumber)InputStreamgetGroupInputStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)StringgetGroupInputString(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)com.revolsys.io.map.MapReadergetGroupResultReader(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)InputStreamgetGroupResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)InputStreamgetJobInputStream(org.jeometry.common.data.identifier.Identifier jobId)longgetJobResultSize(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)InputStreamgetJobResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)InputStreamgetJobResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, long fromIndex, long toIndex)voidnewJobInputFile(org.jeometry.common.data.identifier.Identifier jobId, String contentType, Object data)voidsetGroupError(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, Object data)voidsetGroupInput(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, String contentType, Object data)voidsetGroupResult(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, InputStream in)voidsetJobResult(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, String contentType, Object data)voidwriteFile(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:
getDataAccessObjectin 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:
getGroupErrorReaderin interfaceJobController
-
getGroupInputContentType
public String getGroupInputContentType(org.jeometry.common.data.identifier.Identifier batchJobId, int sequenceNumber)
- Specified by:
getGroupInputContentTypein interfaceJobController
-
getGroupInputStream
public InputStream getGroupInputStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
- Specified by:
getGroupInputStreamin interfaceJobController
-
getGroupInputString
public String getGroupInputString(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
- Specified by:
getGroupInputStringin interfaceJobController
-
getGroupResultReader
public com.revolsys.io.map.MapReader getGroupResultReader(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)- Specified by:
getGroupResultReaderin interfaceJobController
-
getGroupResultStream
public InputStream getGroupResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
- Specified by:
getGroupResultStreamin interfaceJobController
-
getJobInputStream
public InputStream getJobInputStream(org.jeometry.common.data.identifier.Identifier jobId)
- Specified by:
getJobInputStreamin interfaceJobController
-
getJobResultSize
public long getJobResultSize(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)- Specified by:
getJobResultSizein interfaceJobController
-
getJobResultStream
public InputStream getJobResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber)
- Specified by:
getJobResultStreamin interfaceJobController
-
getJobResultStream
public InputStream getJobResultStream(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, long fromIndex, long toIndex)
- Specified by:
getJobResultStreamin interfaceJobController
-
newJobInputFile
public void newJobInputFile(org.jeometry.common.data.identifier.Identifier jobId, String contentType, Object data)- Specified by:
newJobInputFilein interfaceJobController
-
setGroupError
public void setGroupError(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, Object data)- Specified by:
setGroupErrorin interfaceJobController
-
setGroupInput
public void setGroupInput(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, String contentType, Object data)- Specified by:
setGroupInputin interfaceJobController
-
setGroupResult
public void setGroupResult(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, InputStream in)- Specified by:
setGroupResultin interfaceJobController
-
setJobResult
public void setJobResult(org.jeometry.common.data.identifier.Identifier jobId, int sequenceNumber, String contentType, Object data)- Specified by:
setJobResultin 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:
writeFilein interfaceJobController- Throws:
IOException
-
-