Package com.uc4.api.objects
Class AttributesVMS
- java.lang.Object
-
- com.uc4.api.objects.AttributesVMS
-
- All Implemented Interfaces:
IHostAttributes
public class AttributesVMS extends java.lang.Object implements IHostAttributes
Host attributes for VMS Jobs.
-
-
Constructor Summary
Constructors Constructor Description AttributesVMS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfieldCount()Returns the number of fields in the host attributes.java.lang.StringgetJobName()Returns the name under which a Job should be executed.intgetPriority()Returns the priority for the Job.java.lang.StringgetQueueName()Returns the name of the queue in which the Job should be activated.booleanisReportDatabase()Returns whether the Job report transfered to the 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.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.voidsetJobName(java.lang.String jobName)Specification of the name under which a Job should be executed.voidsetPriority(int priority)Specification of the priority for the Job.voidsetQueueName(java.lang.String queueName)Specification of the queue in which the Job should be activated.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.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
-
getQueueName
public java.lang.String getQueueName()
Returns the name of the queue in which the Job should be activated.- Returns:
- Queue name
-
setQueueName
public void setQueueName(java.lang.String queueName)
Specification of the queue in which the Job should be activated. Maximum 31 characters permitted.- Parameters:
queueName- Queue name
-
getJobName
public java.lang.String getJobName()
Returns the name under which a Job should be executed.- Returns:
- Job name
-
setJobName
public void setJobName(java.lang.String jobName)
Specification of the name under which a Job should be executed. Maximum 39 characters permitted.- Parameters:
jobName- Job name
-
getPriority
public int getPriority()
Returns the priority for the Job.- Returns:
- Priority
-
setPriority
public void setPriority(int priority)
Specification of the priority for the Job. A value between "0" and "255" may be entered. Priority is currently not analyzed by VMS.- Parameters:
priority- Priority
-
isReportDatabase
public boolean isReportDatabase()
Returns whether the Job report transfered to the 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
-
-