public class AttributesOS400 extends Object implements IHostAttributes
| Constructor and Description |
|---|
AttributesOS400() |
| Modifier and Type | Method and Description |
|---|---|
int |
fieldCount()
Returns the number of fields in the host attributes.
|
String |
getJobDescription()
Returns the name of the Job description used for this Job in the form Library/Job description.
|
String |
getJobName()
Returns the Job name.
|
String |
getJobQueue()
Returns the name of the Job queue in which the this Job has been put.
|
int |
getPriority()
Returns the priority with which the Job should be executed.
|
String |
getRoutingData()
Returns the rooting data with which the Job's first rooting step is initiated.
|
boolean |
isReportDatabase()
Returns whether the Job report transfered to the Automation Engine database.
|
boolean |
isReportErrorOnly()
Returns
true if the Job report will be stored only in case of Job interruption. |
boolean |
isReportFile()
Returns
true if the Job report is stored in the file system
on the target system. |
boolean |
isSpoolAll()
Returns
true if the entire spool contents of the Job is saved. |
boolean |
isSpoolQPJOBLOG()
Returns
true if the spool contents from QPJOBLOG is saved. |
boolean |
isTypeCMD()
Returns
true if the type CMD is selected. |
boolean |
isTypeILE_CL()
Returns
true if the type ILE CL is selected. |
boolean |
isTypeREXX()
Returns
true if the type REXX is selected. |
void |
load(com.uc4.util.XMLDocument doc,
Element hostAttr)
Loads the host attributes.
|
String |
name()
Returns the host attributes name.
|
void |
setJobDescription(String jobDescription)
Sets the name of the Job description used for this Job in the form Library/Job description.
|
void |
setJobName(String jobName)
Sets the name which is assigned to the Job during its processing.
|
void |
setJobQueue(String jobQueue)
Sets the name of the Job queue in which the this Job has been put.
|
void |
setPriority(int priority)
Sets the priority with which the Job should be executed.
|
void |
setReportDatabase(boolean reportDatabase)
Sets whether the Job report should be transfered to the database.
|
void |
setReportErrorOnly(boolean reportErrorOnly)
Sets whether the Job report should be stored only in case of Job interruption.
|
void |
setReportFile(boolean reportFile)
Sets whether the Job report should be stored in the file system on the target system.
|
void |
setRoutingData(String rootingData)
Sets the rooting data with which the Job's first rooting step is initiated.
|
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.
|
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.
|
void |
setTypeCMD()
The Job consists of OS/400 commands.
|
void |
setTypeILE_CL()
The Job consists of an ILE CL script and is compiled by the Agent
before the execution.
|
void |
setTypeREXX()
The Job consists of a REXX script and is given to the interpreter.
|
void |
store(com.uc4.util.XMLDocument doc,
Element objectElement)
Writes the host attributes back to the
XMLDocument. |
public int fieldCount()
IHostAttributesfieldCount in interface IHostAttributespublic void load(com.uc4.util.XMLDocument doc,
Element hostAttr)
IHostAttributesload in interface IHostAttributesdoc - XML Document containing the JobhostAttr - Element which contains host attributespublic String name()
IHostAttributesname in interface IHostAttributespublic void store(com.uc4.util.XMLDocument doc,
Element objectElement)
IHostAttributesXMLDocument.store in interface IHostAttributesdoc - DocumentobjectElement - ObjectElementpublic String getRoutingData()
public void setRoutingData(String rootingData)
rootingData is converted to upper case.
Maximum 255 characters are allowed for rootingData.rootingData - Rooting datapublic String getJobQueue()
public void setJobQueue(String jobQueue)
jobQueue is converted to upper case.
Maximum 21 characters are allowed for jobQueue.jobQueue - Job queuepublic String getJobDescription()
public void setJobDescription(String jobDescription)
jobDescription is converted to upper case.
Maximum 21 characters are allowed for jobDescription.jobDescription - Job Descriptionpublic int getPriority()
public void setPriority(int priority)
priority - Prioritypublic String getJobName()
public void setJobName(String jobName)
jobName is converted to upper case.
Maximum 10 characters are allowed for jobName.jobName - Job Namepublic boolean isTypeREXX()
true if the type REXX is selected.public void setTypeREXX()
retcode = 6
public boolean isTypeILE_CL()
true if the type ILE CL is selected.public void setTypeILE_CL()
"CHGVAR VAR(&RETCODE) VALUE('0')"
public boolean isTypeCMD()
true if the type CMD is selected.public void setTypeCMD()
public boolean isSpoolAll()
true if the entire spool contents of the Job is saved.public void setSpoolAll()
public void setSpoolQPJOBLOG()
public boolean isSpoolQPJOBLOG()
true if the spool contents from QPJOBLOG is saved.public boolean isReportDatabase()
true if the Job report is transfered to the database false otherwisepublic void setReportDatabase(boolean reportDatabase)
reportDatabase - true if the job report should be transfered
to the database false otherwisepublic boolean isReportErrorOnly()
true if 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.true if the job report is stored only in case of Job interruptionpublic void setReportErrorOnly(boolean reportErrorOnly)
reportErrorOnly - true if the job report should be stored
only in case of Job interruptionpublic boolean isReportFile()
true if the Job report is stored in the file system
on the target system.true if the job report is stored in the file system.public void setReportFile(boolean reportFile)
reportFile - true if the job report should be stored in the file systemCopyright © 2021. All rights reserved.