public class AttributesUnix extends Object implements IHostAttributes
| Constructor and Description |
|---|
AttributesUnix() |
| Modifier and Type | Method and Description |
|---|---|
int |
fieldCount()
Returns the number of fields in the host attributes.
|
String |
getCommand()
Returns the shell command.
|
String |
getShell()
Returns the Unix Shell, under which the Job should run.
|
String |
getShellOptions()
Returns shell options.
|
boolean |
isReportDatabase()
Returns whether the Job report transfered to the database.
|
boolean |
isReportErrorOnly()
Returns
true if the Job report will be stored only in case of Job interruption. |
boolean |
isReportFile()
Returns
true if the Job report is stored in the file system
on the target system. |
boolean |
isTypeCommand()
Returns
true if the Job type is Command. |
boolean |
isTypeShellScript()
Returns
true if the Job type is Shell Script. |
void |
load(com.uc4.util.XMLDocument doc,
Element hostAttr)
Loads the host attributes.
|
String |
name()
Returns the host attributes name.
|
void |
setCommand(String command)
Set a single shell command or sequence of shell commands.
|
void |
setReportDatabase(boolean reportDatabase)
Sets whether the Job report should be transfered to the database.
|
void |
setReportErrorOnly(boolean reportErrorOnly)
Sets whether the Job report should be stored only in case of Job interruption.
|
void |
setReportFile(boolean reportFile)
Sets whether the Job report should be stored in the file system on the target system.
|
void |
setShell(String shell)
Sets the Unix Shell, under which the Job should run.
|
void |
setShellOptions(String shellOptions)
Specification of shell options.
|
void |
setTypeCommand()
The command or command sequence, stored in the "Command" field, are given
to the UNIX command line.
|
void |
setTypeShellScript()
A Job is generated, transferred to the target system and executed as a shell script.
|
void |
store(com.uc4.util.XMLDocument doc,
Element objectElement)
Writes the host attributes back to the
XMLDocument. |
public int fieldCount()
IHostAttributesfieldCount in interface IHostAttributespublic void load(com.uc4.util.XMLDocument doc,
Element hostAttr)
IHostAttributesload in interface IHostAttributesdoc - XML Document containing the JobhostAttr - Element which contains host attributespublic String name()
IHostAttributesname in interface IHostAttributespublic void store(com.uc4.util.XMLDocument doc,
Element objectElement)
IHostAttributesXMLDocument.store in interface IHostAttributesdoc - DocumentobjectElement - ObjectElementpublic String getCommand()
public void setCommand(String command)
command.command - Commandpublic String getShellOptions()
public void setShellOptions(String shellOptions)
shellOptions.shellOptions - Shell optionspublic String getShell()
public void setShell(String shell)
shell.shell - Unix Shellpublic boolean isTypeCommand()
true if the Job type is Command.public void setTypeCommand()
public boolean isTypeShellScript()
true if the Job type is Shell Script.public void setTypeShellScript()
public boolean isReportDatabase()
true if the Job report is transfered to the database false otherwisepublic void setReportDatabase(boolean reportDatabase)
reportDatabase - true if the job report should be transfered
to the database false otherwisepublic boolean isReportErrorOnly()
true if 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.true if the job report is stored only in case of Job interruptionpublic void setReportErrorOnly(boolean reportErrorOnly)
reportErrorOnly - true if the job report should be stored
only in case of Job interruptionpublic boolean isReportFile()
true if the Job report is stored in the file system
on the target system.true if the job report is stored in the file system.public void setReportFile(boolean reportFile)
reportFile - true if the job report should be stored in the file systemCopyright © 2021. All rights reserved.