Previous page

Next page

Locate page in Contents

Print this page

get_state

Summary:

Gets the current states of Agent operators.

Request specification:

Name

Min/Max

Type

Description

get_state

1..1

none

 

Returns:

Name

Min/Max

Type

Description

state

0..[]

 

A list of operators.

{

 

 

 

operator

1..1

string

Operator name.

queue_size

1..1

int

The size of the queue.

queue_limit

1..1

int

The queue limit.

pool_total

0..1

int

The pool size.

pool_free

0..1

int

The number of operators that are currently available in the pool.

pool_busy

0..1

int

The number of operators that are currently busy.

pool_heavy

0..1

int

The number of operators that are busy processing "heavy" messages.

normal_dyn_limit

0..1

float

Normal messages dynamic limit.

heavy_dyn_limit

0..1

float

Heavy messages dynamic limit.

urgent_dyn_limit

0..1

float

Urgent messages dynamic limit.

normal_limit

0..1

int

Normal messages total limit.

heavy_limit

0..1

int

Heavy messages total limit.

urgent_limit

0..1

int

Urgent messages total limit.

timeout

0..1

int

The default timeout value for the operator.

kill_timeout

0..1

int

The timeout value after which the process associated with the operator will be killed if the default timeout (the timeout parameter above) has already happened.

timings

0..1

 

This structure contains the timing values for the individual operations associated with the given operator. The values can be used for performance evaluation while optimizing the client code.

{

 

 

 

timing

0..[]

 

A list of operations and their timing values.

{

 

 

operation

1..1

string

The name of the operation.

count

1..1

int

The total number of times the operation has been executed since the Agent was started on the current machine.

avg

1..1

int

The average time per instance the operation has taken to execute.

min

1..1

int

The minimum execution time.

max

1..1

int

The maximum execution time.

time

1..1

long

The execution time of all the invocation instances combined.

}

 

 

 

}

 

 

 

}

 

 

 

Example:

Input

<?xml version="1.0" encoding="UTF-8"?><ns1:packet xmlns:ns2="http://www.swsoft.com/webservices/vzl/4.0.0/system" xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/protocol" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="dc467128aet72aer81c" priority="0" version="4.0.0">

<ns1:origin>gend</ns1:origin>

<ns1:target>vzclient3-638a2a56-e689-c340-877d-bd0470f2448c</ns1:target>

<ns1:dst>

<ns1:director>gend</ns1:director>

</ns1:dst>

<ns1:data>

<ns1:system>

<ns2:state>

<ns2:operator>alertm</ns2:operator>

<ns2:queue_size>0</ns2:queue_size>

<ns2:queue_limit>50</ns2:queue_limit>

<ns2:timings/>

</ns2:state>

<ns2:state>

<ns2:operator>authm</ns2:operator>

<ns2:queue_size>0</ns2:queue_size>

<ns2:queue_limit>50</ns2:queue_limit>

<ns2:timings>

<ns2:timing>

<ns2:operation>authenticate</ns2:operation>

<ns2:count>3</ns2:count>

<ns2:avg>9</ns2:avg>

<ns2:min>5</ns2:min>

<ns2:max>15</ns2:max>

<ns2:time>29</ns2:time>

</ns2:timing>

</ns2:timings>

</ns2:state>

<ns2:state>

<ns2:operator>backup_deserializer</ns2:operator>

<ns2:queue_size>0</ns2:queue_size>

<ns2:queue_limit>50</ns2:queue_limit>

<ns2:pool_total>0</ns2:pool_total>

<ns2:pool_free>0</ns2:pool_free>

<ns2:pool_busy>0</ns2:pool_busy>

<ns2:pool_heavy>0</ns2:pool_heavy>

<ns2:normal_dyn_limit>10.000000</ns2:normal_dyn_limit>

<ns2:heavy_dyn_limit>4.000000</ns2:heavy_dyn_limit>

<ns2:urgent_dyn_limit>20.000000</ns2:urgent_dyn_limit>

<ns2:normal_limit>10</ns2:normal_limit>

<ns2:heavy_limit>4</ns2:heavy_limit>

<ns2:timeout>300</ns2:timeout>

<ns2:kill_timeout>20</ns2:kill_timeout>

<ns2:timings/>

</ns2:state>

<ns2:state>

<ns2:operator>backup_storagem</ns2:operator>

<ns2:queue_size>0</ns2:queue_size>

<ns2:queue_limit>50</ns2:queue_limit>

<ns2:pool_total>0</ns2:pool_total>

<ns2:pool_free>0</ns2:pool_free>

<ns2:pool_busy>0</ns2:pool_busy>

<ns2:pool_heavy>0</ns2:pool_heavy>

<ns2:normal_dyn_limit>10.000000</ns2:normal_dyn_limit>

<ns2:heavy_dyn_limit>4.000000</ns2:heavy_dyn_limit>

<ns2:urgent_dyn_limit>20.000000</ns2:urgent_dyn_limit>

<ns2:normal_limit>10</ns2:normal_limit>

<ns2:heavy_limit>4</ns2:heavy_limit>

<ns2:timeout>300</ns2:timeout>

<ns2:kill_timeout>20</ns2:kill_timeout>

<ns2:timings/>

</ns2:state>

<!-- The rest of the output is omitted for brevity -->

</ns1:system>

</ns1:data>

</ns1:packet>

Please send us your feedback on this help page