Package com.uc4.api.objects
Class AttributesNSK
- java.lang.Object
-
- com.uc4.api.objects.AttributesNSK
-
- All Implemented Interfaces:
IHostAttributes
public class AttributesNSK extends java.lang.Object implements IHostAttributes
Host attributes for NSK Jobs.
-
-
Constructor Summary
Constructors Constructor Description AttributesNSK()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfieldCount()Returns 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.intgetPriority()Returns the Job's priority.java.lang.StringgetVhTerm()Returns the virual terminal.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.booleanisTypeNBEXEC()Returnstrueif the Job type is NetBatch - NBEXEC scripts.booleanisTypeOSS()Returnstrueif the Job type is OSS - UNIX commands (osh Shell).booleanisTypeTACL()Returnstrueif the Job type is Guardian - TACL commands.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.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.voidsetTypeNBEXEC()Sets the Job type for NetBatch - NBEXEC scripts.voidsetTypeOSS()Sets the Job type for OSS - UNIX commands (osh Shell).voidsetTypeTACL()Sets the Job type for Guardian - TACL commands.voidsetVhTerm(java.lang.String vhTerm)Sets the virtual terminal.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
-
getVhTerm
public java.lang.String getVhTerm()
Returns the virual terminal.- Returns:
- Virtual Terminal
-
setVhTerm
public void setVhTerm(java.lang.String vhTerm)
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
-
-