public class AttributesWin extends java.lang.Object implements IHostAttributes
Constructor and Description |
---|
AttributesWin() |
Modifier and Type | Method and Description |
---|---|
int |
fieldCount()
Returns the number of fields in the host attributes.
|
java.lang.String |
getCommand()
Returns the program to be executed.
|
java.lang.String |
getWorkingDirectory()
Returns the working directory in which the Job should run.
|
boolean |
isGeneratedByScript()
Returns
true if the Job report is generated by script. |
boolean |
isJobObjectDefault()
Returns
true if Job Object is set to default. |
boolean |
isJobObjectNo()
Returns
true if Job Object is set to no. |
boolean |
isJobObjectYes()
Returns
true if Job Object is set to yes. |
boolean |
isLogOnAsBatch()
Returns
true if the Job is executed in batch mode. |
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 |
isShowAtDesktop()
Returns
true if the Job is executed and visible to a logged-on user. |
boolean |
isTypeBAT()
Returns
true if type BAT is selected. |
boolean |
isTypeCOM()
Returns
true if type COM is selected. |
boolean |
isTypeInterpreter()
Returns
true if type Interpreter is selected. |
boolean |
isViewMaximized()
Returns
true if the view is set to maximized. |
boolean |
isViewMinimized()
Returns
true if the view is set to minimized. |
boolean |
isViewStandard()
Returns
true if the view is set to standard. |
void |
load(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element hostAttr)
Loads the host attributes.
|
java.lang.String |
name()
Returns the host attributes name.
|
void |
setCommand(java.lang.String command)
Sets the program to be executed.
|
void |
setGeneratedByScript(boolean isGeneratedByScript)
Sets whether the script should generate the Job report instead of STDOUT/STERR.
|
void |
setJobObjectDefault()
Whether or not the Windows Job Object is used depends on the
configuration settings made in the INI file of the Agent.
|
void |
setJobObjectNo()
The Job does not use the Windows Job Object.
|
void |
setJobObjectYes()
The Job uses the Windows Job Object.
|
void |
setLogOnAsBatch(boolean logOnAsBatch)
If set the Job is executed in batch mode and is not visible to a logged-on user.
|
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 |
setShowAtDesktop(boolean showAtDesktop)
If set the Job is executed and visible to a logged-on user.
|
void |
setTypeBAT()
The script statements and DATA lines stored in the script are executed as MS-DOS batch file.
|
void |
setTypeCOM()
The program stored in the field "Command" is executed.
|
void |
setTypeInterpreter()
The processing stored in the script is transferred to an Interpreter as a file.
|
void |
setViewMaximized()
Sets the display to maximized.
|
void |
setViewMinimized()
Sets the display to minimized.
|
void |
setViewStandard()
Set the display to normal view.
|
void |
setWorkingDirectory(java.lang.String workingDirectory)
Sets the working directory in which the Job should run.
|
void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element objectElement)
Writes the host attributes back to the
XMLDocument . |
public int fieldCount()
IHostAttributes
fieldCount
in interface IHostAttributes
public void load(com.uc4.util.XMLDocument doc, org.w3c.dom.Element hostAttr)
IHostAttributes
load
in interface IHostAttributes
doc
- XML Document containing the JobhostAttr
- Element which contains host attributespublic java.lang.String name()
IHostAttributes
name
in interface IHostAttributes
public void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
IHostAttributes
XMLDocument
.store
in interface IHostAttributes
doc
- DocumentobjectElement
- ObjectElementpublic boolean isShowAtDesktop()
true
if the Job is executed and visible to a logged-on user.public void setShowAtDesktop(boolean showAtDesktop)
showAtDesktop
- Show job on the desktoppublic boolean isLogOnAsBatch()
true
if the Job is executed in batch mode.public void setLogOnAsBatch(boolean logOnAsBatch)
logOnAsBatch
- Logon as batch userpublic java.lang.String getCommand()
public void setCommand(java.lang.String command)
command
.command
- Commandpublic java.lang.String getWorkingDirectory()
public void setWorkingDirectory(java.lang.String workingDirectory)
workingDirectory
.workingDirectory
- Working directorypublic boolean isJobObjectNo()
true
if Job Object is set to no.public void setJobObjectNo()
public boolean isJobObjectYes()
true
if Job Object is set to yes.public void setJobObjectYes()
public boolean isJobObjectDefault()
true
if Job Object is set to default.public void setJobObjectDefault()
public boolean isViewMaximized()
true
if the view is set to maximized.public void setViewMaximized()
public boolean isViewMinimized()
true
if the view is set to minimized.public void setViewMinimized()
public boolean isViewStandard()
true
if the view is set to standard.public void setViewStandard()
public boolean isTypeInterpreter()
true
if type Interpreter is selected.public void setTypeInterpreter()
ECPEXE=Interpreterand
ECPEXT=File Extension.
public boolean isTypeCOM()
true
if type COM is selected.public void setTypeCOM()
public boolean isTypeBAT()
true
if type BAT is selected.public void setTypeBAT()
public boolean isGeneratedByScript()
true
if the Job report is generated by script.public void setGeneratedByScript(boolean isGeneratedByScript)
isGeneratedByScript
- Is generated by scriptpublic 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 system