Package com.redwood.scheduler.api.model
Interface JobFile
-
- All Superinterfaces:
Detail,Readable,SchedulerEntity,SchedulerEntityComp
- All Known Subinterfaces:
WritableJobFile
public interface JobFile extends Detail, Readable
Output file of a job. Jobs can generate any number of output and log files of any format.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPS_EXTRAOUTPUTExtra Oracle Applications output file.static LongAPPS_EXTRAOUTPUT_ORDERExtra Oracle Applications output file order constant.static StringAPPS_JOBLOGStandard Oracle Applications job log file.static LongAPPS_JOBLOG_ORDERStandard Oracle Applications joblog file order constant.static StringAPPS_OUTPUTStandard Oracle Applications output file.static LongAPPS_OUTPUT_ORDERStandard Oracle Applications output file order constant.static LongAS400_FILENUMBER_STARTStandard AS/400 filenumber start file order constant.static LongCUSTOMER_ORDER_ENDFile order: end of customer defined files.static LongCUSTOMER_ORDER_STARTFile order: start of customer defined files.static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "JobFile" objects.static StringOHI_JOBLOGStandard Oracle Health Insurance job log file.static LongOHI_JOBLOG_ORDERStandard Oracle Health Insurance joblog file order constant.static StringOHI_OUTPUTStandard Oracle Health Insurance output file.static LongOHI_OUTPUT_ORDERStandard Oracle Health Insurance output file order constant.static StringPREFERRED_CHARACTERSETThe character encoding that we prefer for output files.static CharsetPREFERRED_CHARSETThe character encoding that we prefer for output files.static StringSAP_APPLLOGStandard SAP job application log file.static StringSAP_APPLLOG_CSVStandard SAP job application log file in CSV format.static StringSAP_APPLLOG_DATStandard SAP job application log file in DAT format.static StringSAP_APPLLOG_HTMLStandard SAP job application log file in HTML format.static StringSAP_APPLLOG_MHTMLStandard SAP job application log file in MHTML format.static StringSAP_APPLLOG_PDFStandard SAP job application log file in PDF format.static LongSAP_APPLLOGS_ORDER_STARTStandard SAP filenumber start of application logs file order constant.static StringSAP_CC_BASIC_LISTStandard SAP FCC basic list file in PDF format.static LongSAP_CC_BASIC_LIST_ORDERStandard SAP filenumber of FCC basic lists file order constant.static StringSAP_CC_DETAIL_LISTStandard SAP FCC detail list file in PDF format.static LongSAP_CC_DETAIL_LIST_ORDERStandard SAP filenumber of FCC detail list file order constant.static LongSAP_FILENUMBER_STARTStandard SAP filenumber start file order constant.static StringSAP_JOBLOGStandard SAP joblog file.static StringSAP_JOBLOG_DATStandard SAP joblog file in DAT format.static LongSAP_JOBLOG_ORDERStandard SAP joblog file order constant.static StringSAP_JOBLOG_PDFStandard SAP joblog file in PDF format.static StringSAP_SPOOLLISTStandard SAP spoollist file.static StringSAP_SPOOLLIST_BINStandard SAP spoollist file in BIN format.static StringSAP_SPOOLLIST_CSVStandard SAP spoollist file in CSV format.static StringSAP_SPOOLLIST_HTMLStandard SAP spoollist file in HTML format.static StringSAP_SPOOLLIST_MHTMLStandard SAP spoollist file in MHTML format.static StringSAP_SPOOLLIST_PDFStandard SAP spoollist file in PDF format.static StringSAP_SPOOLLIST_RTXStandard SAP spoollist file in RTX format.static StringSAP_SPOOLLIST_XLSStandard SAP spoollist file in XLS format.static StringSAP_SPOOLLIST_XLSXStandard SAP spoollist file in XLSX format.static StringSAP_SPOOLLISTID_MAPPINGAdditional output file with the mapping of the job file name to the spool id.static LongSAP_SPOOLLISTID_MAPPING_ORDERStandard spool id mapping file order constant.static LongSAP_SPOOLLISTS_ORDER_STARTStandard SAP filenumber start of spoollists file order constant.static StringSAP_STATISTICSStandard SAP job statistics file.static LongSAP_STATISTICS_ORDERStandard SAP job statistics file order constant.static StringSEC_RANK_ALLThis rank is made of the following privileges:static StringSEC_RANK_NONEThis rank has no privileges assigned to it.static StringSTANDARD_AUDIT_ARCHIVEStandard audit archive file name.static LongSTANDARD_AUDIT_ARCHIVE_ORDERStandard audit archive file order constant.static StringSTANDARD_CARINStandard carin file name.static LongSTANDARD_CARIN_ORDERStandard carin file order constant.static StringSTANDARD_CAROUTStandard carout file name.static LongSTANDARD_CAROUT_ORDERStandard carout file order constant.static StringSTANDARD_DATAINStandard data input file name.static StringSTANDARD_ERRORThe conventional name for the first job error file.static LongSTANDARD_ERROR_ORDERStandard error file order constant.static LongSTANDARD_EXPORT_INFOStandard export-info.xml output file order constant.static StringSTANDARD_INTERNAL_LOGThe conventional name for the first job log file used for internal purposes.static LongSTANDARD_INTERNAL_LOG_ORDERStandard internal log file order constant.static StringSTANDARD_JARINStandard jarin file name.static LongSTANDARD_JARIN_ORDERStandard jarin file order constant.static StringSTANDARD_ON_BEFORE_USER_JOB_CHANGEStandard OnBeforeUserJobChange file name.static LongSTANDARD_ON_BEFORE_USER_JOB_CHANGE_ORDERStandard log file order constant for trigger OnBeforeUserJobChange constant.static StringSTANDARD_OUTPUTThe conventional name for the first job output file.static LongSTANDARD_OUTPUT_ORDERStandard output file order constant.static StringSTANDARD_REPORTStandard report file name.static LongSTANDARD_REPORT_ORDERStandard report file order constant.static LongSTANDARD_REPORT_ORDER_XMLStandard report file as xml order constant.static StringSTANDARD_SEARCH_RESULTSStandard object search results file name.static LongSTANDARD_SEARCH_RESULTS_ORDERStandard object search results file order constant.static StringSTANDARD_TUTORIALSDeprecated.This constant is deprecated, do not use.static LongSTANDARD_TUTORIALS_ORDERDeprecated.This constant is deprecated, do not use.static LongSTANDARD_UPLOAD_ORDER_ENDFile order: end of uploaded files range.static LongSTANDARD_UPLOAD_ORDER_STARTFile order: start of uploaded files range.static QueryObjectType<JobFile>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).-
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCharacterSet()Get the value for CharacterSet.CommonLoggetCommonLog()Wraps up the output file, using the common log format.DateTimeZonegetFileLastModificationTime()Get the value for FileLastModificationTime.StringgetFileName()Get the value for FileName.LonggetFileOrder()Get the value for FileOrder.FormatgetFormat()Get the Format.InputStreamgetInputStream()Retrieve an input stream for this jobfile.InputStreamgetInputStream(Long offset, Long length)Retrieve an input stream for this jobfile.InputStreamgetInputStream(String searchPattern, long beginLine, long endLine, long searchOptions)Retrieve an input stream for this jobfile.InputStreamgetInputStream(String searchPattern, long beginLine, long endLine, SearchFile[] searchOptions)Retrieve an input stream for this jobfile.JobgetJob()Get the Job.StringgetName()Get the value for Name.SubjectgetOwnerSubject()Get the OwnerSubject.LonggetSize()Get the value for Size.JobFileTypegetType()Get the value for Type.StringgetURLTail()Request the tail portion of an URL to retrieve the job-file.StringgetViewerURL()Get the value for ViewerURL.booleanisInCommonLogFormat()Get the value for InCommonLogFormat.booleanisLinkedJobFile()Get the value for LinkedJobFile.SearchResultSetsearch(String pattern)Search the entire job file for a pattern (including?and*) from the beginning to the end, in a case insensitive way.SearchResultSetsearch(String pattern, long beginLine, long endLine, int options)Search the job file for a pattern.voidsetCharacterSet(String newCharacterSet)Set the value for CharacterSet.voidsetFileNameAutomatic()Set the file name to an automatically generated local name.voidsetFileType(JobFileType type)Set the file type.voidsetFormat(Format newFormat)Set the value for Format.voidsetInCommonLogFormat(boolean newInCommonLogFormat)Set the value for InCommonLogFormat.voidsetName(String newName)Set the value for Name.voidsetOrder(Long fileOrder)Set the file order (model attribute FileOrder).voidsetOwnerSubject(Subject newOwnerSubject)Set the value for OwnerSubject.voidupdateFromLocalFile()Set the size and last modification time (and time zone) information from a local file.voidupdateFromLocalFile(TimeZone timeZone)Set the size and last modification time (and time zone) information from a local file.-
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
canPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
-
-
-
-
Field Detail
-
OBJECT_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()for "JobFile" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<JobFile> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
-
PREFERRED_CHARACTERSET
static final String PREFERRED_CHARACTERSET
The character encoding that we prefer for output files.- See Also:
- Constant Field Values
-
PREFERRED_CHARSET
static final Charset PREFERRED_CHARSET
The character encoding that we prefer for output files.
-
STANDARD_INTERNAL_LOG
static final String STANDARD_INTERNAL_LOG
The conventional name for the first job log file used for internal purposes. (eg. by the job processor on UNIX).- See Also:
- Constant Field Values
-
STANDARD_ERROR
static final String STANDARD_ERROR
The conventional name for the first job error file. (eg. the standard error stream on UNIX).- See Also:
- Constant Field Values
-
STANDARD_OUTPUT
static final String STANDARD_OUTPUT
The conventional name for the first job output file. (eg. the standard output stream on UNIX).- See Also:
- Constant Field Values
-
STANDARD_OUTPUT_ORDER
static final Long STANDARD_OUTPUT_ORDER
Standard output file order constant.
-
STANDARD_ERROR_ORDER
static final Long STANDARD_ERROR_ORDER
Standard error file order constant.
-
STANDARD_INTERNAL_LOG_ORDER
static final Long STANDARD_INTERNAL_LOG_ORDER
Standard internal log file order constant.
-
STANDARD_JARIN_ORDER
static final Long STANDARD_JARIN_ORDER
Standard jarin file order constant.
-
STANDARD_JARIN
static final String STANDARD_JARIN
Standard jarin file name.- See Also:
- Constant Field Values
-
STANDARD_DATAIN
static final String STANDARD_DATAIN
Standard data input file name.- See Also:
- Constant Field Values
-
STANDARD_CARIN_ORDER
static final Long STANDARD_CARIN_ORDER
Standard carin file order constant.
-
STANDARD_CARIN
static final String STANDARD_CARIN
Standard carin file name.- See Also:
- Constant Field Values
-
STANDARD_TUTORIALS_ORDER
@Deprecated static final Long STANDARD_TUTORIALS_ORDER
Deprecated.This constant is deprecated, do not use.Standard tutorials file order constant.
-
STANDARD_TUTORIALS
@Deprecated static final String STANDARD_TUTORIALS
Deprecated.This constant is deprecated, do not use.Standard tutorials file name.
- See Also:
- Constant Field Values
-
STANDARD_CAROUT_ORDER
static final Long STANDARD_CAROUT_ORDER
Standard carout file order constant.
-
STANDARD_CAROUT
static final String STANDARD_CAROUT
Standard carout file name.- See Also:
- Constant Field Values
-
STANDARD_AUDIT_ARCHIVE_ORDER
static final Long STANDARD_AUDIT_ARCHIVE_ORDER
Standard audit archive file order constant.
-
STANDARD_AUDIT_ARCHIVE
static final String STANDARD_AUDIT_ARCHIVE
Standard audit archive file name.- See Also:
- Constant Field Values
-
STANDARD_REPORT_ORDER
static final Long STANDARD_REPORT_ORDER
Standard report file order constant.
-
STANDARD_REPORT_ORDER_XML
static final Long STANDARD_REPORT_ORDER_XML
Standard report file as xml order constant.
-
STANDARD_REPORT
static final String STANDARD_REPORT
Standard report file name.- See Also:
- Constant Field Values
-
STANDARD_ON_BEFORE_USER_JOB_CHANGE_ORDER
static final Long STANDARD_ON_BEFORE_USER_JOB_CHANGE_ORDER
Standard log file order constant for trigger OnBeforeUserJobChange constant.
-
STANDARD_ON_BEFORE_USER_JOB_CHANGE
static final String STANDARD_ON_BEFORE_USER_JOB_CHANGE
Standard OnBeforeUserJobChange file name.- See Also:
- Constant Field Values
-
AS400_FILENUMBER_START
static final Long AS400_FILENUMBER_START
Standard AS/400 filenumber start file order constant.
-
SAP_FILENUMBER_START
static final Long SAP_FILENUMBER_START
Standard SAP filenumber start file order constant.
-
SAP_JOBLOG_ORDER
static final Long SAP_JOBLOG_ORDER
Standard SAP joblog file order constant.
-
SAP_JOBLOG
static final String SAP_JOBLOG
Standard SAP joblog file.- See Also:
- Constant Field Values
-
SAP_JOBLOG_PDF
static final String SAP_JOBLOG_PDF
Standard SAP joblog file in PDF format.- See Also:
- Constant Field Values
-
SAP_JOBLOG_DAT
static final String SAP_JOBLOG_DAT
Standard SAP joblog file in DAT format.- See Also:
- Constant Field Values
-
SAP_STATISTICS_ORDER
static final Long SAP_STATISTICS_ORDER
Standard SAP job statistics file order constant.
-
SAP_STATISTICS
static final String SAP_STATISTICS
Standard SAP job statistics file.- See Also:
- Constant Field Values
-
SAP_SPOOLLISTS_ORDER_START
static final Long SAP_SPOOLLISTS_ORDER_START
Standard SAP filenumber start of spoollists file order constant.
-
SAP_SPOOLLIST
static final String SAP_SPOOLLIST
Standard SAP spoollist file.- See Also:
- Constant Field Values
-
SAP_SPOOLLIST_PDF
static final String SAP_SPOOLLIST_PDF
Standard SAP spoollist file in PDF format.- See Also:
- Constant Field Values
-
SAP_SPOOLLIST_XLS
static final String SAP_SPOOLLIST_XLS
Standard SAP spoollist file in XLS format.- See Also:
- Constant Field Values
-
SAP_SPOOLLIST_XLSX
static final String SAP_SPOOLLIST_XLSX
Standard SAP spoollist file in XLSX format.- See Also:
- Constant Field Values
-
SAP_SPOOLLIST_CSV
static final String SAP_SPOOLLIST_CSV
Standard SAP spoollist file in CSV format.- See Also:
- Constant Field Values
-
SAP_SPOOLLIST_HTML
static final String SAP_SPOOLLIST_HTML
Standard SAP spoollist file in HTML format.- See Also:
- Constant Field Values
-
SAP_SPOOLLIST_MHTML
static final String SAP_SPOOLLIST_MHTML
Standard SAP spoollist file in MHTML format.- See Also:
- Constant Field Values
-
SAP_SPOOLLIST_RTX
static final String SAP_SPOOLLIST_RTX
Standard SAP spoollist file in RTX format.- See Also:
- Constant Field Values
-
SAP_SPOOLLIST_BIN
static final String SAP_SPOOLLIST_BIN
Standard SAP spoollist file in BIN format.- See Also:
- Constant Field Values
-
SAP_SPOOLLISTID_MAPPING
static final String SAP_SPOOLLISTID_MAPPING
Additional output file with the mapping of the job file name to the spool id.- See Also:
- Constant Field Values
-
SAP_SPOOLLISTID_MAPPING_ORDER
static final Long SAP_SPOOLLISTID_MAPPING_ORDER
Standard spool id mapping file order constant.
-
SAP_APPLLOGS_ORDER_START
static final Long SAP_APPLLOGS_ORDER_START
Standard SAP filenumber start of application logs file order constant.
-
SAP_CC_BASIC_LIST
static final String SAP_CC_BASIC_LIST
Standard SAP FCC basic list file in PDF format.- See Also:
- Constant Field Values
-
SAP_CC_BASIC_LIST_ORDER
static final Long SAP_CC_BASIC_LIST_ORDER
Standard SAP filenumber of FCC basic lists file order constant.
-
SAP_CC_DETAIL_LIST
static final String SAP_CC_DETAIL_LIST
Standard SAP FCC detail list file in PDF format.- See Also:
- Constant Field Values
-
SAP_CC_DETAIL_LIST_ORDER
static final Long SAP_CC_DETAIL_LIST_ORDER
Standard SAP filenumber of FCC detail list file order constant.
-
CUSTOMER_ORDER_START
static final Long CUSTOMER_ORDER_START
File order: start of customer defined files.
-
CUSTOMER_ORDER_END
static final Long CUSTOMER_ORDER_END
File order: end of customer defined files.
-
SAP_APPLLOG
static final String SAP_APPLLOG
Standard SAP job application log file.- See Also:
- Constant Field Values
-
SAP_APPLLOG_PDF
static final String SAP_APPLLOG_PDF
Standard SAP job application log file in PDF format.- See Also:
- Constant Field Values
-
SAP_APPLLOG_HTML
static final String SAP_APPLLOG_HTML
Standard SAP job application log file in HTML format.- See Also:
- Constant Field Values
-
SAP_APPLLOG_MHTML
static final String SAP_APPLLOG_MHTML
Standard SAP job application log file in MHTML format.- See Also:
- Constant Field Values
-
SAP_APPLLOG_DAT
static final String SAP_APPLLOG_DAT
Standard SAP job application log file in DAT format.- See Also:
- Constant Field Values
-
SAP_APPLLOG_CSV
static final String SAP_APPLLOG_CSV
Standard SAP job application log file in CSV format.- See Also:
- Constant Field Values
-
APPS_JOBLOG
static final String APPS_JOBLOG
Standard Oracle Applications job log file.- See Also:
- Constant Field Values
-
APPS_JOBLOG_ORDER
static final Long APPS_JOBLOG_ORDER
Standard Oracle Applications joblog file order constant.
-
APPS_OUTPUT
static final String APPS_OUTPUT
Standard Oracle Applications output file.- See Also:
- Constant Field Values
-
APPS_OUTPUT_ORDER
static final Long APPS_OUTPUT_ORDER
Standard Oracle Applications output file order constant.
-
APPS_EXTRAOUTPUT
static final String APPS_EXTRAOUTPUT
Extra Oracle Applications output file.- See Also:
- Constant Field Values
-
APPS_EXTRAOUTPUT_ORDER
static final Long APPS_EXTRAOUTPUT_ORDER
Extra Oracle Applications output file order constant.
-
OHI_JOBLOG
static final String OHI_JOBLOG
Standard Oracle Health Insurance job log file.- See Also:
- Constant Field Values
-
OHI_JOBLOG_ORDER
static final Long OHI_JOBLOG_ORDER
Standard Oracle Health Insurance joblog file order constant.
-
OHI_OUTPUT
static final String OHI_OUTPUT
Standard Oracle Health Insurance output file.- See Also:
- Constant Field Values
-
OHI_OUTPUT_ORDER
static final Long OHI_OUTPUT_ORDER
Standard Oracle Health Insurance output file order constant.
-
STANDARD_UPLOAD_ORDER_START
static final Long STANDARD_UPLOAD_ORDER_START
File order: start of uploaded files range.
-
STANDARD_UPLOAD_ORDER_END
static final Long STANDARD_UPLOAD_ORDER_END
File order: end of uploaded files range.
-
STANDARD_EXPORT_INFO
static final Long STANDARD_EXPORT_INFO
Standard export-info.xml output file order constant.
-
STANDARD_SEARCH_RESULTS_ORDER
static final Long STANDARD_SEARCH_RESULTS_ORDER
Standard object search results file order constant.
-
STANDARD_SEARCH_RESULTS
static final String STANDARD_SEARCH_RESULTS
Standard object search results file name.- See Also:
- Constant Field Values
-
SEC_RANK_NONE
static final String SEC_RANK_NONE
This rank has no privileges assigned to it.- See Also:
- Constant Field Values
-
SEC_RANK_ALL
static final String SEC_RANK_ALL
This rank is made of the following privileges:- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
String getName()
Get the value for Name. (Short, standardized name of the file.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getFileName
String getFileName()
Get the value for FileName. (Name of the file (usually a full operating system dependent name)) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getFileOrder
Long getFileOrder()
Get the value for FileOrder. (Order in which this file (relative to siblings) should be presented.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getFileLastModificationTime
DateTimeZone getFileLastModificationTime()
Get the value for FileLastModificationTime. (When the file was last modified.)- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getSize
Long getSize()
Get the value for Size. (Length of the file in bytes.)- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getType
JobFileType getType()
Get the value for Type. (The type of file that this represents.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
isInCommonLogFormat
boolean isInCommonLogFormat()
Get the value for InCommonLogFormat. (The file uses the common log format.)- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getCharacterSet
String getCharacterSet()
Get the value for CharacterSet. (Character set of the content of the file.)- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getViewerURL
String getViewerURL()
Get the value for ViewerURL. ( Viewer URL of this JobFile. The URL returned can either point to the contents of the JobFile or the processed information of this JobFile by one or more ExtensionPoints. )- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
isLinkedJobFile
boolean isLinkedJobFile()
Get the value for LinkedJobFile. (Check if this JobFile is linked to another JobFile.)- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
setName
void setName(String newName)
Set the value for Name. (Short, standardized name of the file.) This value is mandatory.- Parameters:
newName- the new value for Name. If this isnull, then the object cannot be persisted.- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
setInCommonLogFormat
void setInCommonLogFormat(boolean newInCommonLogFormat)
Set the value for InCommonLogFormat. (The file uses the common log format.)- Parameters:
newInCommonLogFormat- the new value for InCommonLogFormat.- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
setCharacterSet
void setCharacterSet(String newCharacterSet)
Set the value for CharacterSet. (Character set of the content of the file.) This value is optional.- Parameters:
newCharacterSet- the new value for CharacterSet.- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getCommonLog
CommonLog getCommonLog() throws com.redwood.scheduler.api.exception.JobFileException, com.redwood.scheduler.api.exception.JobFileTransientException
Wraps up the output file, using the common log format.- Returns:
- Wrapper for common log format.
- Throws:
com.redwood.scheduler.api.exception.JobFileException- Failure to retrieve the job-file, likely permanent in nature.com.redwood.scheduler.api.exception.JobFileTransientException- Failure to retrieve the job-file, likely transient in nature.
-
getInputStream
InputStream getInputStream() throws com.redwood.scheduler.api.exception.JobFileException, com.redwood.scheduler.api.exception.JobFileTransientException
Retrieve an input stream for this jobfile. This is equivalent to calling:getInputStream(0L,-1L)- Returns:
- An input stream that corresponds to the jobfile.
- Throws:
com.redwood.scheduler.api.exception.JobFileException- Failure to retrieve the job-file, likely permanent in nature.com.redwood.scheduler.api.exception.JobFileTransientException- Failure to retrieve the job-file, likely transient in nature.
-
getInputStream
InputStream getInputStream(Long offset, Long length) throws com.redwood.scheduler.api.exception.JobFileException, com.redwood.scheduler.api.exception.JobFileTransientException
Retrieve an input stream for this jobfile. For example, to return anInputStreamon the JobFile ignoring first 6 and last 6 lines:JobFile.getInputStream("Hello World", 7L, -7L)- Parameters:
offset- Offset within the file at which the stream should be positioned.length- Length of the stream required.- Returns:
- An input stream that corresponds to the jobfile.
- Throws:
com.redwood.scheduler.api.exception.JobFileException- Failure to retrieve the job-file, likely permanent in nature.com.redwood.scheduler.api.exception.JobFileTransientException- Failure to retrieve the job-file, likely transient in nature.
-
getInputStream
InputStream getInputStream(String searchPattern, long beginLine, long endLine, long searchOptions) throws com.redwood.scheduler.api.exception.JobFileException
Retrieve an input stream for this jobfile. Parameters for this method allow for setting of filters to stream only certain information. For example, to search for"Hello World"case-insensitively in the whole JobFile and return anInputStreamof all matching lines:JobFile.getInputStream("Hello World", 1L, -1L, SearchFile.IgnoreCaseCode + SearchFile.RangeResultCode)- Parameters:
searchPattern- A character pattern to search for.beginLine- The line to start searching at: 0 or 1 mean beginning of file and -1 means end of the file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. IfSearchFile.ByteOffsetCodeis included in the searchOptions then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)endLine- The line to end searching at: 0 or 1 mean beginning of file and -1 means end of the file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. IfSearchFile.ByteOffsetCodeis included in the searchOptions then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)searchOptions- A long representing the search options. You add-up the constants to specify multiple options.SearchFile.NoOptionsCode= 0 - no options,SearchFile.WildCardCode= 1 - wild card search,SearchFile.ReverseCode= 4 - reverse search,SearchFile.IgnoreCaseCode= 8 - case-insensitive search,SearchFile.EntireLineCode= 16 - match entire line,SearchFile.RangeResultCode= 32 - return all results,SearchFile.ByteOffsetCode= 64 - beginLine and endLine refer to byte offsets, not lines, andSearchFile.LiveViewCode= 128 - response may be incomplete lines and all full lines are terminated by EOL;
1L+8L+32L so 41L(L for 'long' value) or a mathematical addition of the above constants.- Returns:
- An input stream that corresponds to the jobfile.
- Throws:
com.redwood.scheduler.api.exception.JobFileException- Failure to retrieve the job-file, likely permanent in nature.
-
getInputStream
InputStream getInputStream(String searchPattern, long beginLine, long endLine, SearchFile[] searchOptions) throws com.redwood.scheduler.api.exception.JobFileException
Retrieve an input stream for this jobfile. Parameters for this method allow for setting of filters to stream only certain information. For example, to search for"Hello World"case-insensitively in the whole JobFile and return anInputStreamof all matching linesJobFile.getInputStream("Hello World", 1L, -1L, new SearchFile[]{SearchFile.IgnoreCase, SearchFile.RangeResultCode})- Parameters:
searchPattern- A character pattern to search for.beginLine- The line to start searching at: 0 or 1 mean beginning of file and -1 means end of the file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. IfSearchFile.ByteOffsetCodeis included in the searchOptions then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)endLine- The line to end searching at: 0 or 1 mean beginning of file and -1 means end of the file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. IfSearchFile.ByteOffsetCodeis included in the searchOptions then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)searchOptions- An array ofSearchFilerepresenting the search options.SearchFile.NoOptions- no options,SearchFile.WildCard- wild card search,SearchFile.Reverse- reverse search,SearchFile.IgnoreCase- case-insensitive search,SearchFile.EntireLine- match entire line,SearchFile.RangeResult- return all results,SearchFile.ByteOffset- beginLine and endLine refer to byte offsets, not lines, andSearchFile.LiveView- response may be incomplete lines and all full lines are terminated by EOL;
- Returns:
- An input stream that corresponds to the jobfile.
- Throws:
com.redwood.scheduler.api.exception.JobFileException- Failure to retrieve the job-file, likely permanent in nature.
-
getURLTail
String getURLTail()
Request the tail portion of an URL to retrieve the job-file. This can be appended to an URL that refers to the job-file servlet to form a complete URL that allows the job-file contents to be retrieved. This operation will be removed in the future; it will be replaced with an operation that returns an absolute URL.- Returns:
- Portion of URL, without a leading '/' character.
-
search
SearchResultSet search(String pattern)
Search the entire job file for a pattern (including?and*) from the beginning to the end, in a case insensitive way. This is equivalent to calling:search(pattern, 1L, -1L, SearchFile.WildCardCode + SearchFile.IgnoreCaseCode)- Parameters:
pattern- The pattern to search for.- Returns:
- A SearchResultSet, from where you can get the individual SearchResults.
-
search
SearchResultSet search(String pattern, long beginLine, long endLine, int options)
Search the job file for a pattern.- Parameters:
pattern- The pattern to search for. IfSearchFile.WildCardCodeis in the options then?matches any character and*matches any sequence of characters. For example, to search for"Hello *@example.com"case insensitively and using*as a wildcard in the entire JobFile, returning all matched lines in aSearchResultSet:JobFile.search("Hello *@example.com", 1L, -1L, SearchFile.IgnoreCaseCode + SearchFile.RangeResultCode + SearchFile.WildCardCode)beginLine- The line to start searching at: 0 or 1 mean beginning and -1 means end of file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. IfSearchFile.ByteOffsetCodeis included in the options then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)endLine- The line to start searching at: 0 or 1 mean beginning and -1 means end of file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. IfSearchFile.ByteOffsetCodeis included in the options then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)options- Search file options, any combination of SearchFile options. See the 'searchOptions' ofJobFile.getInputStream- Returns:
- A SearchResultSet, from where you can get the individual SearchResults.
-
updateFromLocalFile
void updateFromLocalFile()
Set the size and last modification time (and time zone) information from a local file. The size and last modification time will be set from the local file specified by the job's FileName attribute. This method assumes that the file is local. The time zone will be set based on the System process server.
-
updateFromLocalFile
void updateFromLocalFile(TimeZone timeZone)
Set the size and last modification time (and time zone) information from a local file. The size and last modification time will be set from the local file specified by the job's FileName attribute. This method assumes that the file is local. The time zone will be set to the specified time zone.- Parameters:
timeZone- Time zone.
-
setOrder
void setOrder(Long fileOrder)
Set the file order (model attribute FileOrder). The value must not be null, and be between JobFile.CUSTOMER_ORDER_START and JobFile.CUSTOMER_ORDER_END (inclusive). If the value is not in this range then a RuntimeException will be thrown. The file order must be set to a different value for each file and the value must come from the range allocated to customer files.- Parameters:
fileOrder- The file order.
-
setFileNameAutomatic
void setFileNameAutomatic()
Set the file name to an automatically generated local name. The name will be generated based on process server parameters and values from the job and job file. This should be called after setting the short name (Name) and file order.
-
setFileType
void setFileType(JobFileType type)
Set the file type.- Parameters:
type- The type
-
getJob
Job getJob()
Get the Job.- Returns:
- Job
- Throws:
com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
-
getFormat
Format getFormat()
Get the Format.- Returns:
- Format
- Throws:
com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
-
getOwnerSubject
Subject getOwnerSubject()
Get the OwnerSubject.- Returns:
- OwnerSubject
- Throws:
com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
-
setFormat
void setFormat(Format newFormat)
Set the value for Format. This value is mandatory.- Parameters:
newFormat- is the object to set Format to. The default format for a job file is the format given to the JobDefinition If this isnull, then the object cannot be persisted.
-
setOwnerSubject
void setOwnerSubject(Subject newOwnerSubject)
Set the value for OwnerSubject. This value is optional.- Parameters:
newOwnerSubject- is the object to set OwnerSubject to. Job files associated with / input by the subject.
-
-