public class CauDeploy extends XMLRequest
| Constructor and Description |
|---|
CauDeploy(java.util.List<UC4HostName> hosts,
java.lang.String versionOrStoragename)
Creates new CAU deploy request, using a list of agents and a version or storage reference.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
int |
getRunID()
Returns the RunID of the CAU statistics record.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
void |
setCustomText(java.lang.String customText)
Sets the custom text for the upgrade, which will be used as name prefix for the top statistics record instead of 'CAU'.
|
void |
setForced(boolean forced)
Sets the forced flag.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotificationpublic CauDeploy(java.util.List<UC4HostName> hosts, java.lang.String versionOrStoragename)
hosts - list of agent names which should be upgrade. The list
must contain at least one host.versionOrStoragename - version (e.g. 12.0.0-DEV+MAIN.BUILD.1285)
or storage (e.g. UC_AGENT_UNIX_12.0.0-DEV@MAIN.BUILD.1285)
to which the agents should be upgraded to.protected java.lang.String getSrc()
XMLRequestgetSrc in class XMLRequestprotected boolean isAllowedInClientZero()
XMLRequestXMLRequest is allowed in client 0.
The default implementation returns false, subclasses may override.isAllowedInClientZero in class XMLRequesttrue if this request is allowed in client 0, false otherwiseprotected void createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
XMLRequestcreateRequest in class XMLRequestdoc - Document, used to create new Elementsrequest - Request Element - classes append information to this request elementsessionInfo - Information about the sessionprotected void handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session)
handleContent in class XMLRequestpublic void setCustomText(java.lang.String customText)
customText - Custom text as string, max length is 20public void setForced(boolean forced)
forced - When true, also agents which are not linked to the service manager will be upgraded.public int getRunID()
getMsgbox() returns the error message.
The return value is also 0 if the request has never been sent.