Package com.uc4.api.objects
Class AttributesBS2000
java.lang.Object
com.uc4.api.objects.AttributesBS2000
- All Implemented Interfaces:
IHostAttributes
Host attributes for BS2000 Jobs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of fields in the host attributes.Returns enter parameters of this BS2000 Job.Returns the specification of the Job's class.intReturns the maximum CPU time (in seconds) that is available for the Job.Returns the order name (PNAME).intReturns the jobs priority.booleanReturnstrueif the express flag is set for this job.booleanReturns whether SYSLST protocol is saved only in the Automation Engine database.booleanReturns whether SYSLST protocol is saved only in case of an error.booleanReturns whether SYSLST protocol should be available as a file.booleanReturns whether SYSOUT protocol is saved only in the Automation Engine database.booleanReturns whether SYSOUT protocol is saved only in case of an error.booleanReturns whether SYSOUT protocol should be available as a file.voidload(com.uc4.util.XMLDocument doc, Element hostAttr, ConnectionAttributes info) Loads the host attributes.name()Returns the host attributes name.voidsetEnterParameter(String enterParameter) Sets the enter parameters.voidsetExpress(boolean express) Sets the express flag.voidsetJobclass(String jobclass) Sets the job class.voidsetMaxCPU(int maxCPU) Sets the maximum CPU time (in seconds) that is available for the Job.voidsetOrderName(String orderName) Sets the order name (PNAME).voidsetPriority(int priority) Sets the jobs priority.voidsetSyslstDatabase(boolean syslstDatabase) Sets if the SYSLST protocol should be transfered to the Automation Engine database.voidsetSyslstErrorOnly(boolean syslstErrorOnly) In case of Job interruption, the SYSLST protocol is saved in the Automation Engine database and/or a file in the target system.voidsetSyslstFile(boolean syslstFile) Sets if the SYSLST protocol should be available as a file in the target system.voidsetSysoutDatabase(boolean sysoutDatabase) Sets if the SYSOUT protocol should be transfered to the Automation Engine database.voidsetSysoutErrorOnly(boolean sysoutErrorOnly) In case of Job interruption, the SYSOUT protocol is saved in the Automation Engine database and/or a file in the target system.voidsetSysoutFile(boolean sysoutFile) Sets if the SYSOUT protocol should be available as a file in the target system.voidstore(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes info) Writes the host attributes back to theXMLDocument.
-
Constructor Details
-
AttributesBS2000
public AttributesBS2000()
-
-
Method Details
-
load
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
-
store
Description copied from interface:IHostAttributesWrites the host attributes back to theXMLDocument.- Specified by:
storein interfaceIHostAttributes- Parameters:
doc- DocumentobjectElement- ObjectElementinfo- Session details
-
isSyslstDatabase
public boolean isSyslstDatabase()Returns whether SYSLST protocol is saved only in the Automation Engine database.- Returns:
trueif the SYSOUT protocol is saved in the databasefalseotherwise
-
setSyslstDatabase
public void setSyslstDatabase(boolean syslstDatabase) Sets if the SYSLST protocol should be transfered to the Automation Engine database.- Parameters:
syslstDatabase-trueif the SYSLSTSOUT protocol should be saved in the databasefalseotherwise
-
isSyslstErrorOnly
public boolean isSyslstErrorOnly()Returns whether SYSLST protocol is saved only in case of an error.- Returns:
trueif the SYSLST protocol is saved only in case of an errorfalseotherwise
-
setSyslstErrorOnly
public void setSyslstErrorOnly(boolean syslstErrorOnly) In case of Job interruption, the SYSLST protocol is saved in the Automation Engine database and/or a file in the target system. This is only available when "Database" and/or "File" have been selected.- Parameters:
syslstErrorOnly- Save SYSLST protocol in error case only
-
isSyslstFile
public boolean isSyslstFile()Returns whether SYSLST protocol should be available as a file.- Returns:
trueif the SYSLST protocol should be available as a filefalseotherwise
-
setSyslstFile
public void setSyslstFile(boolean syslstFile) Sets if the SYSLST protocol should be available as a file in the target system.- Parameters:
syslstFile-trueif the SYSLST protocol should be available as a file
-
isSysoutDatabase
public boolean isSysoutDatabase()Returns whether SYSOUT protocol is saved only in the Automation Engine database.- Returns:
trueif the SYSOUT protocol is saved in the databasefalseotherwise
-
setSysoutDatabase
public void setSysoutDatabase(boolean sysoutDatabase) Sets if the SYSOUT protocol should be transfered to the Automation Engine database.- Parameters:
sysoutDatabase-trueif the SYSOUT protocol should be saved in the databasefalseotherwise
-
isSysoutErrorOnly
public boolean isSysoutErrorOnly()Returns whether SYSOUT protocol is saved only in case of an error.- Returns:
trueif the SYSOUT protocol is saved only in case of an errorfalseotherwise
-
setSysoutErrorOnly
public void setSysoutErrorOnly(boolean sysoutErrorOnly) In case of Job interruption, the SYSOUT protocol is saved in the Automation Engine database and/or a file in the target system. This is only available when "Database" and/or "File" have been selected.- Parameters:
sysoutErrorOnly- Save SYSOUT protocol in error case only
-
isSysoutFile
public boolean isSysoutFile()Returns whether SYSOUT protocol should be available as a file.- Returns:
trueif the SYSOUT protocol should be available as a filefalseotherwise
-
setSysoutFile
public void setSysoutFile(boolean sysoutFile) Sets if the SYSOUT protocol should be available as a file in the target system.- Parameters:
sysoutFile-trueif the SYSOUT protocol should be available as a file
-
getEnterParameter
Returns enter parameters of this BS2000 Job.- Returns:
- enter parameters
-
setEnterParameter
Sets the enter parameters.Any number of enter parameters can be set separated with commas. The permitted parameters are dependent on the BS2000 version being used. Their detailed descriptions are found in the "BS2000/OSD Commands" manual under the "/ENTER-JOB" command.
Example: TIME=NTL, RERUN-AFTER-CRASH=YES
The parameterenterParametermust not contain more than 255 characters. Lowercase letters are converted to uppercase.- Parameters:
enterParameter- Enter parameter
-
isExpress
public boolean isExpress()Returnstrueif the express flag is set for this job. If express is set the Job should be immediately started independently of the batch limit.- Returns:
- express
-
setExpress
public void setExpress(boolean express) Sets the express flag.If express is set the Job should be immediately started independently of the batch limit.
- Parameters:
express- Express flag
-
getJobclass
Returns the specification of the Job's class.- Returns:
- job class
-
setJobclass
Sets the job class.The parameter is converted to uppercase. The maximum length for
jobclassis eight characters.- Parameters:
jobclass- job class
-
getMaxCPU
public int getMaxCPU()Returns the maximum CPU time (in seconds) that is available for the Job.- Returns:
- maximum CPU time in seconds
-
setMaxCPU
public void setMaxCPU(int maxCPU) Sets the maximum CPU time (in seconds) that is available for the Job.If the value specified in here is exceeded, the operating system cancels the Job and it gets the Automation Engine status ENDED_VANISHED.
The value of the parametermaxCPUmust be between 0 and 32767.- Parameters:
maxCPU- CPU
-
getOrderName
Returns the order name (PNAME).- Returns:
- order name
-
setOrderName
Sets the order name (PNAME). The parameterorderNameis converted to upper case. The maximum length is eight characters. IforderNamecontains more than eight characters, everything is truncated after the eighth character.- Parameters:
orderName- order name
-
getPriority
public int getPriority()Returns the jobs priority.- Returns:
- priority
-
setPriority
public void setPriority(int priority) Sets the jobs priority. The number range for the priority is 0 to 255.- Parameters:
priority- Priority
-
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
-
name
Description copied from interface:IHostAttributesReturns the host attributes name.- Specified by:
namein interfaceIHostAttributes- Returns:
- name
-