Package com.uc4.api.objects
Class AttributesNSK
java.lang.Object
com.uc4.api.objects.AttributesNSK
- All Implemented Interfaces:
IHostAttributes
Host attributes for NSK Jobs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of fields in the host attributes.intgetCpu()Returns the number of the CPU on which the Job should run or -1 if the system should selects a CPU.intReturns the Job's priority.Returns the virual terminal.booleanReturns whether the Job report transfered to the Automation Engine database.booleanReturnstrueif the Job report will be stored only in case of Job interruption.booleanReturnstrueif the Job report is stored in the file system on the target system.booleanReturnstrueif the Job type is NetBatch - NBEXEC scripts.booleanReturnstrueif the Job type is OSS - UNIX commands (osh Shell).booleanReturnstrueif the Job type is Guardian - TACL commands.voidload(com.uc4.util.XMLDocument doc, Element hostAttr, ConnectionAttributes info) Loads the host attributes.name()Returns the host attributes name.voidsetCpu(int cpu) Sets the number of the CPU on which the Job should run.voidsetPriority(int priority) Sets the Job's priority.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.voidSets the Job type for NetBatch - NBEXEC scripts.voidSets the Job type for OSS - UNIX commands (osh Shell).voidSets the Job type for Guardian - TACL commands.voidSets the virtual terminal.voidstore(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes info) Writes the host attributes back to theXMLDocument.
-
Constructor Details
-
AttributesNSK
public AttributesNSK()
-
-
Method Details
-
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
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
Description copied from interface:IHostAttributesReturns the host attributes name.- Specified by:
namein interfaceIHostAttributes- Returns:
- name
-
store
Description copied from interface:IHostAttributesWrites the host attributes back to theXMLDocument.- Specified by:
storein interfaceIHostAttributes- Parameters:
doc- DocumentobjectElement- ObjectElementinfo- Session details
-
getVhTerm
Returns the virual terminal.- Returns:
- Virtual Terminal
-
setVhTerm
Sets the virtual terminal.Tandem file name comprising of a maximum of 26 alphanumeric characters and the separators \ $ . # and -. Inputs and outputs are made on this device. Therefore, no disk file may be specified as this might cause error messages. Physical or virtual terminals or the corresponding processes (e.g. subtype 30 processes) may be used instead. Use the keyword "none" to suppress the values defined in the INI file.
- Parameters:
vhTerm- Virtual Terminal
-
getCpu
public int getCpu()Returns the number of the CPU on which the Job should run or -1 if the system should selects a CPU.- Returns:
- CPU number
-
setCpu
public void setCpu(int cpu) Sets the number of the CPU on which the Job should run. Values between -1 and 15 may be selected. With value -1 being used, the system selects a CPU.- Parameters:
cpu- CPU number
-
getPriority
public int getPriority()Returns the Job's priority.- Returns:
- priority
-
setPriority
public void setPriority(int priority) Sets the Job's priority. Values between 1 and 199 are possible.- Parameters:
priority- Priority
-
isTypeNBEXEC
public boolean isTypeNBEXEC()Returnstrueif the Job type is NetBatch - NBEXEC scripts.- Returns:
- NBEXEC Job type
-
setTypeNBEXEC
public void setTypeNBEXEC()Sets the Job type for NetBatch - NBEXEC scripts. -
isTypeOSS
public boolean isTypeOSS()Returnstrueif the Job type is OSS - UNIX commands (osh Shell).- Returns:
- OSS Job type
-
setTypeOSS
public void setTypeOSS()Sets the Job type for OSS - UNIX commands (osh Shell). -
setTypeTACL
public void setTypeTACL()Sets the Job type for Guardian - TACL commands. -
isTypeTACL
public boolean isTypeTACL()Returnstrueif the Job type is Guardian - TACL commands.- Returns:
- TACL Job type
-
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
-