public class SetAgentProperties extends XMLRequest
Constructor and Description |
---|
SetAgentProperties(GetAgentProperties gap)
creates new instance of SetAgentProperties.
|
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.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
boolean |
isDirty()
Returns true if the object data has changed
|
void |
setCheckInterval(int checkInterval)
Sets the check interval for this Agent.
|
void |
setHostTraceOptions(HostTraceOptions opt)
Set the HostTraceOptions to the SetAgentProperties request prior to sending it to the server.
|
void |
setMaxFileTransfer(int maxFileTransfer)
Sets the maximum number of file transfer for this Agent.
|
void |
setMaxJobs(int maxJobs)
Sets the maximum number of jobs for this Agent.
|
void |
setMaxReportBlocks(int maxReportBlocks)
Sets the maximum number of report blocks for this Agent.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleContent, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public SetAgentProperties(GetAgentProperties gap)
gap
- GetAgentPropertiesprotected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
XMLRequest
createRequest
in class XMLRequest
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the sessionprotected boolean isAllowedInClientZero()
XMLRequest
XMLRequest
is allowed in client 0.
The default implementation returns false
, subclasses may override.isAllowedInClientZero
in class XMLRequest
true
if this request is allowed in client 0, false
otherwisepublic void setHostTraceOptions(HostTraceOptions opt)
opt
- Optionspublic boolean isDirty()
public void setMaxJobs(int maxJobs)
-1
can be used to set max jobs to unlimited.maxJobs
- Positive Integer between 0 and 100000 or -1 for unlimitedpublic void setMaxFileTransfer(int maxFileTransfer)
-1
can be used to set max file transfer to unlimited.maxFileTransfer
- Positive Integer between 0 and 100000 or -1 for unlimitedpublic void setMaxReportBlocks(int maxReportBlocks)
-1
can be used to set max report blocks transfer to unlimited.maxReportBlocks
- Positive Integer between 0 and 10000 or -1 for unlimitedpublic void setCheckInterval(int checkInterval)
-1
can be used to set check interval to unlimited.checkInterval
- Positive Integer between 0 and 32767 or -1 for unlimited