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.Iterator
over Server property keys.protected void
createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
Creates the XML Document for the request.java.lang.String
getIdnr()
Returns idnr of the WP objectint
getLastUse()
int
getLoggingDays()
int
getLoggingMb()
int
getMaxTraceSize()
returns the max trace size parameterint
getMinEventInterval()
long
getMqmemCache()
returns MQMEM cachelong
getMqmemCacheActual()
returns Actual MQMEM cacheint
getNumberOfWPDetails()
Returns the number of detail entries.long
getObjectCache()
returns object cachelong
getObjectCacheActual()
returns Actual Object cacheorg.w3c.dom.Element
getOptionsElement()
Returns the option elementint
getReservedApiUsers()
long
getScriptCache()
returns script cachelong
getScriptCacheActual()
returns Actual Script cachejava.lang.String
getServLanguage()
returns the language of the serverjava.lang.String
getSnmpInUse()
returns if SNMP is in use or notprotected java.lang.String
getSrc()
Returns the request source.int
getTraceFlag(int index)
Returns the trace flag value.java.lang.String
getTraceFlagDescription(int index)
Returns a detailed description of a trace flag.int
getTraceFlagsSize()
returns the length of the trace flag arrayjava.lang.String
getTraceFlagText(int index)
Returns the caption of a trace flag.java.lang.String
getTraceType()
returns the trace typejava.lang.String
getTriggerText()
returns the trigger textlong
getUserCache()
returns user cachelong
getUserCacheActual()
returns Actual User cachelong
getVaraCache()
returns vara cachelong
getVaraCacheActual()
returns Actual Vara Cacheorg.w3c.dom.Element
getWPDetailElement()
Returns a value of the ServerDetail sectionUC4ObjectName
getWPName()
Returns the WP name.org.w3c.dom.Element
getWPPropertiesElement()
Returns the WP property elementjava.lang.String
getWPProperty(java.lang.String key)
Returns the value of an Server property ornull
if the key was not found.org.w3c.dom.Element
getWPTraceElement()
Returns a value of the ServerDetail sectionWPTraceOptions
getWPTraceOptions()
Returns a WPTraceOptions Objectprotected void
handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
Sub classes extract the values from the XML document and provide public getter methods.protected boolean
isAllowedInClientZero()
This method is used internally.boolean
isServerAlive()
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 ornull
if the key was not found.- Parameters:
key
- Property name- Returns:
- Value or
null
if 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.Iterator
over 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:XMLRequest
Returns the request source. This method is used internally.- Specified by:
getSrc
in classXMLRequest
- Returns:
- Source
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
Description copied from class:XMLRequest
Creates the XML Document for the request. This method is used internally.- Specified by:
createRequest
in 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:XMLRequest
Sub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContent
in 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:XMLRequest
This method is used internally. Tests if thisXMLRequest
is allowed in client 0. The default implementation returnsfalse
, subclasses may override.- Overrides:
isAllowedInClientZero
in classXMLRequest
- Returns:
true
if this request is allowed in client 0,false
otherwise
-
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
-
-