public class AttributesOS400 extends java.lang.Object implements IHostAttributes
Constructor and Description |
---|
AttributesOS400() |
Modifier and Type | Method and Description |
---|---|
int |
fieldCount()
Returns the number of fields in the host attributes.
|
java.lang.String |
getJobDescription()
Returns the name of the Job description used for this Job in the form Library/Job description.
|
java.lang.String |
getJobName()
Returns the Job name.
|
java.lang.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.
|
java.lang.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,
org.w3c.dom.Element hostAttr)
Loads the host attributes.
|
java.lang.String |
name()
Returns the host attributes name.
|
void |
setJobDescription(java.lang.String jobDescription)
Sets the name of the Job description used for this Job in the form Library/Job description.
|
void |
setJobName(java.lang.String jobName)
Sets the name which is assigned to the Job during its processing.
|
void |
setJobQueue(java.lang.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(java.lang.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,
org.w3c.dom.Element objectElement)
Writes the host attributes back to the
XMLDocument . |
public int fieldCount()
IHostAttributes
fieldCount
in interface IHostAttributes
public void load(com.uc4.util.XMLDocument doc, org.w3c.dom.Element hostAttr)
IHostAttributes
load
in interface IHostAttributes
doc
- XML Document containing the JobhostAttr
- Element which contains host attributespublic java.lang.String name()
IHostAttributes
name
in interface IHostAttributes
public void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
IHostAttributes
XMLDocument
.store
in interface IHostAttributes
doc
- DocumentobjectElement
- ObjectElementpublic java.lang.String getRoutingData()
public void setRoutingData(java.lang.String rootingData)
rootingData
is converted to upper case.
Maximum 255 characters are allowed for rootingData
.rootingData
- Rooting datapublic java.lang.String getJobQueue()
public void setJobQueue(java.lang.String jobQueue)
jobQueue
is converted to upper case.
Maximum 21 characters are allowed for jobQueue
.jobQueue
- Job queuepublic java.lang.String getJobDescription()
public void setJobDescription(java.lang.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 java.lang.String getJobName()
public void setJobName(java.lang.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 system