Package com.uc4.api.objects
Class AttributesOS400
- java.lang.Object
-
- com.uc4.api.objects.AttributesOS400
-
- All Implemented Interfaces:
IHostAttributes
public class AttributesOS400 extends java.lang.Object implements IHostAttributes
Host attributes for OS/400 Jobs.
-
-
Constructor Summary
Constructors Constructor Description AttributesOS400()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfieldCount()Returns the number of fields in the host attributes.java.lang.StringgetJobDescription()Returns the name of the Job description used for this Job in the form Library/Job description.java.lang.StringgetJobName()Returns the Job name.java.lang.StringgetJobQueue()Returns the name of the Job queue in which the this Job has been put.intgetPriority()Returns the priority with which the Job should be executed.java.lang.StringgetRoutingData()Returns the rooting data with which the Job's first rooting step is initiated.booleanisReportDatabase()Returns whether the Job report transfered to the Automation Engine database.booleanisReportErrorOnly()Returnstrueif the Job report will be stored only in case of Job interruption.booleanisReportFile()Returnstrueif the Job report is stored in the file system on the target system.booleanisSpoolAll()Returnstrueif the entire spool contents of the Job is saved.booleanisSpoolQPJOBLOG()Returnstrueif the spool contents from QPJOBLOG is saved.booleanisTypeCMD()Returnstrueif the type CMD is selected.booleanisTypeILE_CL()Returnstrueif the type ILE CL is selected.booleanisTypeREXX()Returnstrueif the type REXX is selected.voidload(com.uc4.util.XMLDocument doc, org.w3c.dom.Element hostAttr, ConnectionAttributes info)Loads the host attributes.java.lang.Stringname()Returns the host attributes name.voidsetJobDescription(java.lang.String jobDescription)Sets the name of the Job description used for this Job in the form Library/Job description.voidsetJobName(java.lang.String jobName)Sets the name which is assigned to the Job during its processing.voidsetJobQueue(java.lang.String jobQueue)Sets the name of the Job queue in which the this Job has been put.voidsetPriority(int priority)Sets the priority with which the Job should be executed.voidsetReportDatabase(boolean reportDatabase)Sets whether the Job report should be transfered to the database.voidsetReportErrorOnly(boolean reportErrorOnly)Sets whether the Job report should be stored only in case of Job interruption.voidsetReportFile(boolean reportFile)Sets whether the Job report should be stored in the file system on the target system.voidsetRoutingData(java.lang.String rootingData)Sets the rooting data with which the Job's first rooting step is initiated.voidsetSpoolAll()The entire spool contents of the Job are saved in the Automation Engine database and/or are available as a member in the target system.voidsetSpoolQPJOBLOG()Only the spool contents from QPJOBLOG are saved in the Automation Engine database and/or are available as a member in the target system.voidsetTypeCMD()The Job consists of OS/400 commands.voidsetTypeILE_CL()The Job consists of an ILE CL script and is compiled by the Agent before the execution.voidsetTypeREXX()The Job consists of a REXX script and is given to the interpreter.voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes info)Writes the host attributes back to theXMLDocument.
-
-
-
Method Detail
-
fieldCount
public int fieldCount()
Description copied from interface:IHostAttributesReturns the number of fields in the host attributes.- Specified by:
fieldCountin interfaceIHostAttributes- Returns:
- number of fields
-
load
public void load(com.uc4.util.XMLDocument doc, org.w3c.dom.Element hostAttr, ConnectionAttributes info)Description copied from interface:IHostAttributesLoads the host attributes.- Specified by:
loadin interfaceIHostAttributes- Parameters:
doc- XML Document containing the JobhostAttr- Element which contains host attributesinfo- Session details
-
name
public java.lang.String name()
Description copied from interface:IHostAttributesReturns the host attributes name.- Specified by:
namein interfaceIHostAttributes- Returns:
- name
-
store
public void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes info)Description copied from interface:IHostAttributesWrites the host attributes back to theXMLDocument.- Specified by:
storein interfaceIHostAttributes- Parameters:
doc- DocumentobjectElement- ObjectElementinfo- Session details
-
getRoutingData
public java.lang.String getRoutingData()
Returns the rooting data with which the Job's first rooting step is initiated.- Returns:
- Rooting data
-
setRoutingData
public void setRoutingData(java.lang.String rootingData)
Sets the rooting data with which the Job's first rooting step is initiated. With the rooting data, the root entry (which indicates the program executed by the Job) is determined. Default value: *JOBDrootingDatais converted to upper case. Maximum 255 characters are allowed forrootingData.- Parameters:
rootingData- Rooting data
-
getJobQueue
public java.lang.String getJobQueue()
Returns the name of the Job queue in which the this Job has been put.- Returns:
- Job queue
-
setJobQueue
public void setJobQueue(java.lang.String jobQueue)
Sets the name of the Job queue in which the this Job has been put. This appears in the form Library/Job queue where the library may be left out. Default value: *JOBDjobQueueis converted to upper case. Maximum 21 characters are allowed forjobQueue.- Parameters:
jobQueue- Job queue
-
getJobDescription
public java.lang.String getJobDescription()
Returns the name of the Job description used for this Job in the form Library/Job description.- Returns:
- Job Description
-
setJobDescription
public void setJobDescription(java.lang.String jobDescription)
Sets the name of the Job description used for this Job in the form Library/Job description. The library may be left out. Default value: *USRPRFjobDescriptionis converted to upper case. Maximum 21 characters are allowed forjobDescription.- Parameters:
jobDescription- Job Description
-
getPriority
public int getPriority()
Returns the priority with which the Job should be executed.- Returns:
- Priority
-
setPriority
public void setPriority(int priority)
Sets the priority with which the Job should be executed. The priority is a value of 1 (highest priority) to 99 (lowest priority). This value represents the intent of the Job if the Job competes with other Jobs for system resources. If a value has been specified, the Agent - after successful SBMJOB - executes a CHGJOB with this priority.- Parameters:
priority- Priority
-
getJobName
public java.lang.String getJobName()
Returns the Job name.- Returns:
- Job name
-
setJobName
public void setJobName(java.lang.String jobName)
Sets the name which is assigned to the Job during its processing. If this attribute is not specified, the Agent creates the name in the form "J" + 7-figure RunID + 2-figure client number. Example: J0421121504 The paramterjobNameis converted to upper case. Maximum 10 characters are allowed forjobName.- Parameters:
jobName- Job Name
-
isTypeREXX
public boolean isTypeREXX()
Returnstrueif the type REXX is selected.- Returns:
- Type REXX
-
setTypeREXX
public void setTypeREXX()
The Job consists of a REXX script and is given to the interpreter. The Job's Return Code may be set with the REXX statementretcode = 6
-
isTypeILE_CL
public boolean isTypeILE_CL()
Returnstrueif the type ILE CL is selected.- Returns:
- Type ILE CL
-
setTypeILE_CL
public void setTypeILE_CL()
The Job consists of an ILE CL script and is compiled by the Agent before the execution. The compiled CL program subsequently executed. The Job's Return Code may be set with the CL command"CHGVAR VAR(&RETCODE) VALUE('0')"
-
isTypeCMD
public boolean isTypeCMD()
Returnstrueif the type CMD is selected.- Returns:
- Type CMD
-
setTypeCMD
public void setTypeCMD()
The Job consists of OS/400 commands. If an error occurs in one of these commands, the Job ends incorrectly. The severity code is set as the Job's Return Code.
-
isSpoolAll
public boolean isSpoolAll()
Returnstrueif the entire spool contents of the Job is saved.- Returns:
- ALL
-
setSpoolAll
public void setSpoolAll()
The entire spool contents of the Job are saved in the Automation Engine database and/or are available as a member in the target system.
-
setSpoolQPJOBLOG
public void setSpoolQPJOBLOG()
Only the spool contents from QPJOBLOG are saved in the Automation Engine database and/or are available as a member in the target system.
-
isSpoolQPJOBLOG
public boolean isSpoolQPJOBLOG()
Returnstrueif the spool contents from QPJOBLOG is saved.- Returns:
- QPJOBLOG
-
isReportDatabase
public boolean isReportDatabase()
Returns whether the Job report transfered to the Automation Engine database.- Returns:
trueif the Job report is transfered to the databasefalseotherwise
-
setReportDatabase
public void setReportDatabase(boolean reportDatabase)
Sets whether the Job report should be transfered to the database.- Parameters:
reportDatabase-trueif the job report should be transfered to the databasefalseotherwise
-
isReportErrorOnly
public boolean isReportErrorOnly()
Returnstrueif the Job report will be stored only in case of Job interruption. This function is only available when "Database" and/or "File" have been selected.- Returns:
trueif the job report is stored only in case of Job interruption
-
setReportErrorOnly
public void setReportErrorOnly(boolean reportErrorOnly)
Sets whether the Job report should be stored only in case of Job interruption. This function is only available when "Database" and/or "File" have been selected.- Parameters:
reportErrorOnly-trueif the job report should be stored only in case of Job interruption
-
isReportFile
public boolean isReportFile()
Returnstrueif the Job report is stored in the file system on the target system.- Returns:
trueif the job report is stored in the file system.
-
setReportFile
public void setReportFile(boolean reportFile)
Sets whether the Job report should be stored in the file system on the target system.- Parameters:
reportFile-trueif the job report should be stored in the file system
-
-