public class HostGroup extends UC4Object
Constructor and Description |
---|
HostGroup() |
Modifier and Type | Method and Description |
---|---|
void |
addHost(HostGroupItem item)
Adds a host or filter definition to this HostGroup.
|
void |
addHost(HostGroupItem item,
int index)
Adds a host or filter definition on the specified position the this HostGroup.
|
Authorizations |
authorizations()
Returns the authorization data of this object.
|
void |
clear()
Removes all filter and host definitions from this HostGroup.
|
java.lang.String |
getCITName()
Returns the CIT Name for the CIT Host Group Type.
|
java.lang.String |
getHostGroupType()
Returns the Job type of all hosts in this HostGroup.
|
int |
getMaxParallelJobs()
Returns the maximum number of parallel tasks when the execution mode is
set to ALL.
|
Header |
header()
Returns the header data of this object.
|
java.util.Iterator<HostGroupItem> |
hosts()
Returns an
java.util.Iterator over HostGroupItem . |
boolean |
isEnforced() |
boolean |
isExecutable()
Returns
true if this Object can be executed. |
boolean |
isExecuteLoadDependent() |
boolean |
isExecuteOnAllHosts() |
boolean |
isExecuteOnAnyHost() |
boolean |
isExecuteOnFirstHost() |
boolean |
isExecuteOnNextHost() |
protected void |
loadContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
void |
setCITName(java.lang.String citName)
Sets the CIT Name for the CIT Host Group Type.
|
void |
setEnforced(boolean enforced)
Sets the enforced flag:
|
void |
setExecuteLoadDependent()
Sets the execution mode to LOAD_DEPENDENT.
|
void |
setExecuteOnAllHosts()
Sets the execution mode to all hosts.
|
void |
setExecuteOnAnyHost()
Sets the execution mode to ANY.
|
void |
setExecuteOnFirstHost()
Sets the execution mode to FIRST.
|
void |
setExecuteOnNextHost()
Sets the execution mode to NEXT.
|
void |
setHostGroupType(java.lang.String hostGroupType)
Sets the Job type for the HostGroup.
|
void |
setMaxParallelJobs(int maxParallelJobs)
Sets the maximum number of parallel tasks when the
execution mode is set to ALL.
|
int |
size() |
protected void |
storeContent(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element objectElement,
ConnectionAttributes sessionInfo)
Stores the object specific data under the
objectElement element. |
protected void loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
protected void storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
UC4Object
objectElement
element.doc
- XML Document, used to create subelementsobjectElement
- the newly created elements are children of the objectElement
elementsessionInfo
- Information about the current sessionpublic Header header()
public Authorizations authorizations()
null
if it's called in a client other than 0.public void setHostGroupType(java.lang.String hostGroupType)
hostGroupType
are
all generic host namens without the angle brackets:
hostGroupType
- Job typepublic java.lang.String getHostGroupType()
public void setCITName(java.lang.String citName)
citName
- Name of the RA solutionpublic java.lang.String getCITName()
public boolean isExecuteOnAllHosts()
public void setExecuteOnAllHosts()
public boolean isExecuteOnFirstHost()
public void setExecuteOnFirstHost()
public boolean isExecuteOnNextHost()
public void setExecuteOnNextHost()
public boolean isExecuteLoadDependent()
public void setExecuteLoadDependent()
public boolean isExecuteOnAnyHost()
public void setExecuteOnAnyHost()
public boolean isEnforced()
public void setEnforced(boolean enforced)
If a task should be executed on all hosts in this HostGroup and the enforced flag is set the task will wait for the host.
enforced
- Enforcedpublic int getMaxParallelJobs()
public void setMaxParallelJobs(int maxParallelJobs)
maxParallelJobs
- Paralell Jobspublic int size()
public void addHost(HostGroupItem item)
item
- Filter or Host definitionpublic void addHost(HostGroupItem item, int index)
item
- Filter or Host definitionindex
- Positionpublic void clear()
public java.util.Iterator<HostGroupItem> hosts()
java.util.Iterator
over HostGroupItem
.
This iterator can also be used to remove items using the Iterator.remove
method.public boolean isExecutable()
UC4Object
true
if this Object can be executed.isExecutable
in class UC4Object