com.citrix.netscaler.nitro.resource.stat.appqoe.appqoepolicy_stats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nitro Show documentation
Show all versions of nitro Show documentation
The Citrix® NetScaler® NITRO client for Java allows you to configure and monitor the NetScaler appliance programmatically in Java based applications. Source code taken from Build 121 of NetScaler release 10.1
The newest version!
/*
* Copyright (c) 2008-2015 Citrix Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.citrix.netscaler.nitro.resource.stat.appqoe;
import com.citrix.netscaler.nitro.resource.base.*;
import com.citrix.netscaler.nitro.service.nitro_service;
import com.citrix.netscaler.nitro.service.options;
import com.citrix.netscaler.nitro.util.*;
import com.citrix.netscaler.nitro.exception.nitro_exception;
class appqoepolicy_response extends base_response
{
public appqoepolicy_stats[] appqoepolicy;
}
/**
* Statistics for AppQoS policy resource.
*/
public class appqoepolicy_stats extends base_resource
{
private String name;
private String clearstats;
private Long qosavgserverttfb;
private Long qosavgserverttfbrate;
private Long qosavgserverttlb;
private Long qosavgserverttlbrate;
private Long qosavgclientttlb;
private Long qosavgclientttlbrate;
private Long totthroughput;
private Long throughputrate;
private Long totsvrlinkedto;
private Long svrlinkedtorate;
private Long totcltrequests;
private Long cltrequestsrate;
private Long totrequests;
private Long requestsrate;
private Long totrequestbytes;
private Long requestbytesrate;
private Long totresponse;
private Long responserate;
private Long totresponsebytes;
private Long responsebytesrate;
private Long totjssent;
private Long jssentrate;
private Long totjsbytessent;
private Long jsbytessentrate;
private Long pipolicyhits;
private Long pipolicyhitsrate;
/**
*
* policyName
*
*/
public void set_name(String name) throws Exception{
this.name = name;
}
/**
*
* policyName.
Minimum length = 1
*
*/
public String get_name() throws Exception {
return this.name;
}
/**
*
* Clear the statsistics / counters
*
*/
public void set_clearstats(String clearstats) throws Exception{
this.clearstats = clearstats;
}
/**
*
* Clear the statsistics / counters.
Possible values = basic, full
*
*/
public String get_clearstats() throws Exception {
return this.clearstats;
}
/**
*
* Rate (/s) counter for qosavgclientttlb
*
*/
public Long get_qosavgclientttlbrate() throws Exception {
return this.qosavgclientttlbrate;
}
/**
*
* Total number of in-memory responses sent instead of expected responses through this AppQoE policy
*
*/
public Long get_totjssent() throws Exception {
return this.totjssent;
}
/**
*
* Rate (/s) counter for totresponsebytes
*
*/
public Long get_responsebytesrate() throws Exception {
return this.responsebytesrate;
}
/**
*
* Rate (/s) counter for totcltrequests
*
*/
public Long get_cltrequestsrate() throws Exception {
return this.cltrequestsrate;
}
/**
*
* Throughput in KBps calculated on this AppQoE policy
*
*/
public Long get_totthroughput() throws Exception {
return this.totthroughput;
}
/**
*
* Rate (/s) counter for totrequestbytes
*
*/
public Long get_requestbytesrate() throws Exception {
return this.requestbytesrate;
}
/**
*
* Rate (/s) counter for totthroughput
*
*/
public Long get_throughputrate() throws Exception {
return this.throughputrate;
}
/**
*
* Total bytes of in-memory responses sent through this AppQoE policy
*
*/
public Long get_totjsbytessent() throws Exception {
return this.totjsbytessent;
}
/**
*
* Rate (/s) counter for totsvrlinkedto
*
*/
public Long get_svrlinkedtorate() throws Exception {
return this.svrlinkedtorate;
}
/**
*
* Total number of server connections that were established through this AppQoE Policy
*
*/
public Long get_totsvrlinkedto() throws Exception {
return this.totsvrlinkedto;
}
/**
*
* Total number of responses received by this AppQoE policy
*
*/
public Long get_totresponse() throws Exception {
return this.totresponse;
}
/**
*
* Total number of response bytes received by this AppQoE policy
*
*/
public Long get_totresponsebytes() throws Exception {
return this.totresponsebytes;
}
/**
*
* Average Server Time-To-First-Byte in milliseconds calculated for this AppQoE policy.
*
*/
public Long get_qosavgserverttfb() throws Exception {
return this.qosavgserverttfb;
}
/**
*
* Rate (/s) counter for pipolicyhits
*
*/
public Long get_pipolicyhitsrate() throws Exception {
return this.pipolicyhitsrate;
}
/**
*
* Rate (/s) counter for totjssent
*
*/
public Long get_jssentrate() throws Exception {
return this.jssentrate;
}
/**
*
* Rate (/s) counter for qosavgserverttfb
*
*/
public Long get_qosavgserverttfbrate() throws Exception {
return this.qosavgserverttfbrate;
}
/**
*
* Number of hits on the policy
*
*/
public Long get_pipolicyhits() throws Exception {
return this.pipolicyhits;
}
/**
*
* Average Client Time-To-Last-Byte in milliseconds calculated for this AppQoE policy.
*
*/
public Long get_qosavgclientttlb() throws Exception {
return this.qosavgclientttlb;
}
/**
*
* Rate (/s) counter for totjsbytessent
*
*/
public Long get_jsbytessentrate() throws Exception {
return this.jsbytessentrate;
}
/**
*
* Total number of client connections that were requested through this AppQoE Policy
*
*/
public Long get_totcltrequests() throws Exception {
return this.totcltrequests;
}
/**
*
* Total number of requests that were requested through this AppQoE policy
*
*/
public Long get_totrequests() throws Exception {
return this.totrequests;
}
/**
*
* Rate (/s) counter for qosavgserverttlb
*
*/
public Long get_qosavgserverttlbrate() throws Exception {
return this.qosavgserverttlbrate;
}
/**
*
* Rate (/s) counter for totresponse
*
*/
public Long get_responserate() throws Exception {
return this.responserate;
}
/**
*
* Rate (/s) counter for totrequests
*
*/
public Long get_requestsrate() throws Exception {
return this.requestsrate;
}
/**
*
* Total number of requests bytes that were requested through this AppQoE policy
*
*/
public Long get_totrequestbytes() throws Exception {
return this.totrequestbytes;
}
/**
*
* Average Server Time-To-Last-Byte in milliseconds calculated for this AppQoE policy.
*
*/
public Long get_qosavgserverttlb() throws Exception {
return this.qosavgserverttlb;
}
/**
*
* converts nitro response into object and returns the object array in case of get request.
*
*/
protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception{
appqoepolicy_response result = (appqoepolicy_response) service.get_payload_formatter().string_to_resource(appqoepolicy_response.class, response);
if(result.errorcode != 0) {
if (result.errorcode == 444) {
service.clear_session();
}
if(result.severity != null)
{
if (result.severity.equals("ERROR"))
throw new nitro_exception(result.message,result.errorcode);
}
else
{
throw new nitro_exception(result.message,result.errorcode);
}
}
return result.appqoepolicy;
}
/**
*
* Returns the value of object identifier argument
*
*/
protected String get_object_name() {
return this.name;
}
/**
* Use this API to fetch the statistics of all appqoepolicy_stats resources that are configured on netscaler.
*/
public static appqoepolicy_stats[] get(nitro_service service) throws Exception{
appqoepolicy_stats obj = new appqoepolicy_stats();
appqoepolicy_stats[] response = (appqoepolicy_stats[])obj.stat_resources(service);
return response;
}
/**
* Use this API to fetch the statistics of all appqoepolicy_stats resources that are configured on netscaler.
*/
public static appqoepolicy_stats[] get(nitro_service service, options option) throws Exception{
appqoepolicy_stats obj = new appqoepolicy_stats();
appqoepolicy_stats[] response = (appqoepolicy_stats[])obj.stat_resources(service,option);
return response;
}
/**
* Use this API to fetch statistics of appqoepolicy_stats resource of given name .
*/
public static appqoepolicy_stats get(nitro_service service, String name) throws Exception{
appqoepolicy_stats obj = new appqoepolicy_stats();
obj.set_name(name);
appqoepolicy_stats response = (appqoepolicy_stats) obj.stat_resource(service);
return response;
}
public static class clearstatsEnum {
public static final String basic = "basic";
public static final String full = "full";
}
}