Package com.uc4.communication.requests
Class GetWPProperties
- java.lang.Object
-
- com.uc4.communication.requests.XMLRequest
-
- com.uc4.communication.requests.GetWPProperties
-
public class GetWPProperties extends XMLRequest
Returns the trace options for a Work Process using existing XREQ
-
-
Constructor Summary
Constructors Constructor Description GetWPProperties(UC4ObjectName wpName)Creates an instance of GetWPPropertiesGetWPProperties(java.lang.String idnr)Creates an instance of GetWPProperties
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<java.lang.String>agentPropertyKeyIterator()Returns anjava.util.Iteratorover Server property keys.protected voidcreateRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)Creates the XML Document for the request.java.lang.StringgetIdnr()Returns idnr of the WP objectintgetLastUse()intgetLoggingDays()intgetLoggingMb()intgetMaxTraceSize()returns the max trace size parameterintgetMinEventInterval()longgetMqmemCache()returns MQMEM cachelonggetMqmemCacheActual()returns Actual MQMEM cacheintgetNumberOfWPDetails()Returns the number of detail entries.longgetObjectCache()returns object cachelonggetObjectCacheActual()returns Actual Object cacheorg.w3c.dom.ElementgetOptionsElement()Returns the option elementintgetReservedApiUsers()longgetScriptCache()returns script cachelonggetScriptCacheActual()returns Actual Script cachejava.lang.StringgetServLanguage()returns the language of the serverjava.lang.StringgetSnmpInUse()returns if SNMP is in use or notprotected java.lang.StringgetSrc()Returns the request source.intgetTraceFlag(int index)Returns the trace flag value.java.lang.StringgetTraceFlagDescription(int index)Returns a detailed description of a trace flag.intgetTraceFlagsSize()returns the length of the trace flag arrayjava.lang.StringgetTraceFlagText(int index)Returns the caption of a trace flag.java.lang.StringgetTraceType()returns the trace typejava.lang.StringgetTriggerText()returns the trigger textlonggetUserCache()returns user cachelonggetUserCacheActual()returns Actual User cachelonggetVaraCache()returns vara cachelonggetVaraCacheActual()returns Actual Vara Cacheorg.w3c.dom.ElementgetWPDetailElement()Returns a value of the ServerDetail sectionUC4ObjectNamegetWPName()Returns the WP name.org.w3c.dom.ElementgetWPPropertiesElement()Returns the WP property elementjava.lang.StringgetWPProperty(java.lang.String key)Returns the value of an Server property ornullif the key was not found.org.w3c.dom.ElementgetWPTraceElement()Returns a value of the ServerDetail sectionWPTraceOptionsgetWPTraceOptions()Returns a WPTraceOptions Objectprotected voidhandleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)Sub classes extract the values from the XML document and provide public getter methods.protected booleanisAllowedInClientZero()This method is used internally.booleanisServerAlive()Returns true if the Server is running or false if not.-
Methods inherited from class com.uc4.communication.requests.XMLRequest
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
-
-
-
-
Constructor Detail
-
GetWPProperties
public GetWPProperties(UC4ObjectName wpName)
Creates an instance of GetWPProperties- Parameters:
wpName- Name of the WP
-
GetWPProperties
public GetWPProperties(java.lang.String idnr)
Creates an instance of GetWPProperties- Parameters:
idnr- Idnr of the WP Object
-
-
Method Detail
-
getWPProperty
public java.lang.String getWPProperty(java.lang.String key)
Returns the value of an Server property ornullif the key was not found.- Parameters:
key- Property name- Returns:
- Value or
nullif not found
-
getNumberOfWPDetails
public int getNumberOfWPDetails()
Returns the number of detail entries.- Returns:
- Number of details
-
isServerAlive
public boolean isServerAlive()
Returns true if the Server is running or false if not.- Returns:
- boolean
-
getWPName
public UC4ObjectName getWPName()
Returns the WP name.- Returns:
- UC4ObjectName
-
getIdnr
public java.lang.String getIdnr()
Returns idnr of the WP object- Returns:
- idnr
-
agentPropertyKeyIterator
public java.util.Iterator<java.lang.String> agentPropertyKeyIterator()
Returns anjava.util.Iteratorover Server property keys. These keys can be used with the methodgetWPProperty. Theremove()method will throw an exception.- Returns:
- Iterator over existing keys
-
getSrc
protected java.lang.String getSrc()
Description copied from class:XMLRequestReturns the request source. This method is used internally.- Specified by:
getSrcin classXMLRequest- Returns:
- Source
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)Description copied from class:XMLRequestCreates the XML Document for the request. This method is used internally.- Specified by:
createRequestin classXMLRequest- Parameters:
doc- Document, used to create new Elementsrequest- Request Element - classes append information to this request elementsessionInfo- Information about the session
-
handleContent
protected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)Description copied from class:XMLRequestSub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContentin classXMLRequest- Parameters:
doc- XML Documentsession- Info about the user session
-
getTraceFlagText
public java.lang.String getTraceFlagText(int index)
Returns the caption of a trace flag.- Parameters:
index- Index between 0 and 15- Returns:
- Text
-
getTraceFlag
public int getTraceFlag(int index)
Returns the trace flag value.- Parameters:
index- Index between 0 and 15- Returns:
- value
-
getTraceFlagDescription
public java.lang.String getTraceFlagDescription(int index)
Returns a detailed description of a trace flag.- Parameters:
index- Index between 0 and 15- Returns:
- Text
-
isAllowedInClientZero
protected boolean isAllowedInClientZero()
Description copied from class:XMLRequestThis method is used internally. Tests if thisXMLRequestis allowed in client 0. The default implementation returnsfalse, subclasses may override.- Overrides:
isAllowedInClientZeroin classXMLRequest- Returns:
trueif this request is allowed in client 0,falseotherwise
-
getWPTraceElement
public org.w3c.dom.Element getWPTraceElement()
Returns a value of the ServerDetail section- Returns:
- Element
-
getWPDetailElement
public org.w3c.dom.Element getWPDetailElement()
Returns a value of the ServerDetail section- Returns:
- Element
-
getOptionsElement
public org.w3c.dom.Element getOptionsElement()
Returns the option element- Returns:
- Element
-
getWPPropertiesElement
public org.w3c.dom.Element getWPPropertiesElement()
Returns the WP property element- Returns:
- Element
-
getWPTraceOptions
public WPTraceOptions getWPTraceOptions()
Returns a WPTraceOptions Object- Returns:
- WPTraceOptions
-
getTraceFlagsSize
public int getTraceFlagsSize()
returns the length of the trace flag array- Returns:
- int
-
getMaxTraceSize
public int getMaxTraceSize()
returns the max trace size parameter- Returns:
- int
-
getTraceType
public java.lang.String getTraceType()
returns the trace type- Returns:
- String
-
getTriggerText
public java.lang.String getTriggerText()
returns the trigger text- Returns:
- String
-
getLoggingMb
public int getLoggingMb()
- Returns:
- logging size in Mb
-
getLoggingDays
public int getLoggingDays()
- Returns:
- logging days
-
getReservedApiUsers
public int getReservedApiUsers()
- Returns:
- Number of reserved API users
-
getMinEventInterval
public int getMinEventInterval()
- Returns:
- minimum event interval
-
getLastUse
public int getLastUse()
- Returns:
- last use
-
getServLanguage
public java.lang.String getServLanguage()
returns the language of the server- Returns:
- String
-
getSnmpInUse
public java.lang.String getSnmpInUse()
returns if SNMP is in use or not- Returns:
- String
-
getScriptCache
public long getScriptCache()
returns script cache- Returns:
- the size of the script cache in bytes
-
getScriptCacheActual
public long getScriptCacheActual()
returns Actual Script cache- Returns:
- the actual size of the script cache in bytes
-
getMqmemCache
public long getMqmemCache()
returns MQMEM cache- Returns:
- the size of the MQMEM cache in bytes
-
getMqmemCacheActual
public long getMqmemCacheActual()
returns Actual MQMEM cache- Returns:
- the actual size of the MQMEM cache in bytes
-
getObjectCache
public long getObjectCache()
returns object cache- Returns:
- the size of the object cache in bytes
-
getObjectCacheActual
public long getObjectCacheActual()
returns Actual Object cache- Returns:
- the actual size of the object cache in bytes
-
getVaraCache
public long getVaraCache()
returns vara cache- Returns:
- the size of the vara cache in bytes
-
getVaraCacheActual
public long getVaraCacheActual()
returns Actual Vara Cache- Returns:
- the actual size of the Vara cache in bytes
-
getUserCache
public long getUserCache()
returns user cache- Returns:
- the size of the user cache in bytes
-
getUserCacheActual
public long getUserCacheActual()
returns Actual User cache- Returns:
- the actual size of the user cache in bytes
-
-