Package com.uc4.api.objects
Class AttributesServer
java.lang.Object
com.uc4.api.objects.AttributesServer
- All Implemented Interfaces:
AIJob,IHostAttributes,JobReportAttributes
Attributes of a Server Job executed in JWP.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsAIJobAttributesor empty if the sub type of the OS Job is not AI.intReturns the number of fields in the host attributes.booleanReturns whether the job report is transferred to the Automation Engine database.booleanNot supported for Server jobs.booleanNot supported for Server jobs.voidload(com.uc4.util.XMLDocument doc, Element hostAttr, ConnectionAttributes info) Loads the host attributes.name()Returns the host attributes name.voidsetReportDatabase(boolean reportDatabase) Sets whether the job report should be transferred to the Automation Engine database.voidsetReportErrorOnly(boolean reportErrorOnly) Not supported for Server jobs.voidsetReportFile(boolean reportFile) Not supported for Server jobs.voidstore(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes info) Writes the host attributes back to theXMLDocument.
-
Constructor Details
-
AttributesServer
public AttributesServer()
-
-
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
-
aiAttributes
Description copied from interface:AIJobReturnsAIJobAttributesor empty if the sub type of the OS Job is not AI.- Specified by:
aiAttributesin interfaceAIJob- Returns:
- AI job attributes
-
isReportDatabase
public boolean isReportDatabase()Returns whether the job report is transferred to the Automation Engine database.- Specified by:
isReportDatabasein interfaceJobReportAttributes- Returns:
trueif the Job report is transfered to the databasefalseotherwise
-
setReportDatabase
public void setReportDatabase(boolean reportDatabase) Sets whether the job report should be transferred to the Automation Engine database.- Specified by:
setReportDatabasein interfaceJobReportAttributes- Parameters:
reportDatabase-trueif the job report should be transfered to the databasefalseotherwise
-
isReportErrorOnly
public boolean isReportErrorOnly()Not supported for Server jobs.- Specified by:
isReportErrorOnlyin interfaceJobReportAttributes- Returns:
trueif the job report is stored only in case of Job interruption- Throws:
UnsupportedOperationException- always
-
setReportErrorOnly
public void setReportErrorOnly(boolean reportErrorOnly) Not supported for Server jobs.- Specified by:
setReportErrorOnlyin interfaceJobReportAttributes- Parameters:
reportErrorOnly-trueif the job report should be stored only in case of Job interruption- Throws:
UnsupportedOperationException- always
-
isReportFile
public boolean isReportFile()Not supported for Server jobs.- Specified by:
isReportFilein interfaceJobReportAttributes- Returns:
trueif the job report is stored in the file system.- Throws:
UnsupportedOperationException- always
-
setReportFile
public void setReportFile(boolean reportFile) Not supported for Server jobs.- Specified by:
setReportFilein interfaceJobReportAttributes- Parameters:
reportFile-trueif the job report should be stored in the file system- Throws:
UnsupportedOperationException- always
-