Statistica.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */
  20. package org.openspcoop2.core.statistiche;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.core.statistiche.constants.TipoPorta;
  27. import java.io.Serializable;


  28. /** <p>Java class for statistica complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="statistica"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="data" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="stato-record" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="id-porta" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="tipo-porta" type="{http://www.openspcoop2.org/core/statistiche}tipo-porta" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="tipo-mittente" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  40.  *          &lt;element name="mittente" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  41.  *          &lt;element name="tipo-destinatario" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  42.  *          &lt;element name="destinatario" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  43.  *          &lt;element name="tipo-servizio" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  44.  *          &lt;element name="servizio" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  45.  *          &lt;element name="versione-servizio" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1" maxOccurs="1"/&gt;
  46.  *          &lt;element name="azione" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  47.  *          &lt;element name="servizio-applicativo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  48.  *          &lt;element name="trasporto-mittente" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  49.  *          &lt;element name="token-issuer" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  50.  *          &lt;element name="token-client-id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  51.  *          &lt;element name="token-subject" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  52.  *          &lt;element name="token-username" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  53.  *          &lt;element name="token-mail" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  54.  *          &lt;element name="esito" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="1" maxOccurs="1"/&gt;
  55.  *          &lt;element name="esito-contesto" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  56.  *          &lt;element name="client-address" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  57.  *          &lt;element name="gruppi" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  58.  *          &lt;element name="uri-api" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  59.  *          &lt;element name="cluster-id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  60.  *          &lt;element name="numero-transazioni" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="1" maxOccurs="1"/&gt;
  61.  *          &lt;element name="dimensioni-bytes-banda-complessiva" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" minOccurs="0" maxOccurs="1"/&gt;
  62.  *          &lt;element name="dimensioni-bytes-banda-interna" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" minOccurs="0" maxOccurs="1"/&gt;
  63.  *          &lt;element name="dimensioni-bytes-banda-esterna" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" minOccurs="0" maxOccurs="1"/&gt;
  64.  *          &lt;element name="latenza-totale" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" minOccurs="0" maxOccurs="1"/&gt;
  65.  *          &lt;element name="latenza-porta" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" minOccurs="0" maxOccurs="1"/&gt;
  66.  *          &lt;element name="latenza-servizio" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" minOccurs="0" maxOccurs="1"/&gt;
  67.  *      &lt;/sequence&gt;
  68.  * &lt;/complexType&gt;
  69.  * </pre>
  70.  *
  71.  * @version $Rev$, $Date$
  72.  *
  73.  * @author Poli Andrea (poli@link.it)
  74.  * @author $Author$
  75.  * */

  76. @XmlAccessorType(XmlAccessType.FIELD)
  77. @XmlType(name = "statistica",
  78.   propOrder = {
  79.     "data",
  80.     "statoRecord",
  81.     "idPorta",
  82.     "tipoPorta",
  83.     "tipoMittente",
  84.     "mittente",
  85.     "tipoDestinatario",
  86.     "destinatario",
  87.     "tipoServizio",
  88.     "servizio",
  89.     "versioneServizio",
  90.     "azione",
  91.     "servizioApplicativo",
  92.     "trasportoMittente",
  93.     "tokenIssuer",
  94.     "tokenClientId",
  95.     "tokenSubject",
  96.     "tokenUsername",
  97.     "tokenMail",
  98.     "esito",
  99.     "esitoContesto",
  100.     "clientAddress",
  101.     "gruppi",
  102.     "uriApi",
  103.     "clusterId",
  104.     "numeroTransazioni",
  105.     "dimensioniBytesBandaComplessiva",
  106.     "dimensioniBytesBandaInterna",
  107.     "dimensioniBytesBandaEsterna",
  108.     "latenzaTotale",
  109.     "latenzaPorta",
  110.     "latenzaServizio"
  111.   }
  112. )

  113. @XmlRootElement(name = "statistica")

  114. public class Statistica extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  115.   public Statistica() {
  116.     super();
  117.   }

  118.   public java.util.Date getData() {
  119.     return this.data;
  120.   }

  121.   public void setData(java.util.Date data) {
  122.     this.data = data;
  123.   }

  124.   public int getStatoRecord() {
  125.     return this.statoRecord;
  126.   }

  127.   public void setStatoRecord(int statoRecord) {
  128.     this.statoRecord = statoRecord;
  129.   }

  130.   public java.lang.String getIdPorta() {
  131.     return this.idPorta;
  132.   }

  133.   public void setIdPorta(java.lang.String idPorta) {
  134.     this.idPorta = idPorta;
  135.   }

  136.   public void setTipoPortaRawEnumValue(String value) {
  137.     this.tipoPorta = (TipoPorta) TipoPorta.toEnumConstantFromString(value);
  138.   }

  139.   public String getTipoPortaRawEnumValue() {
  140.     if(this.tipoPorta == null){
  141.         return null;
  142.     }else{
  143.         return this.tipoPorta.toString();
  144.     }
  145.   }

  146.   public org.openspcoop2.core.statistiche.constants.TipoPorta getTipoPorta() {
  147.     return this.tipoPorta;
  148.   }

  149.   public void setTipoPorta(org.openspcoop2.core.statistiche.constants.TipoPorta tipoPorta) {
  150.     this.tipoPorta = tipoPorta;
  151.   }

  152.   public java.lang.String getTipoMittente() {
  153.     return this.tipoMittente;
  154.   }

  155.   public void setTipoMittente(java.lang.String tipoMittente) {
  156.     this.tipoMittente = tipoMittente;
  157.   }

  158.   public java.lang.String getMittente() {
  159.     return this.mittente;
  160.   }

  161.   public void setMittente(java.lang.String mittente) {
  162.     this.mittente = mittente;
  163.   }

  164.   public java.lang.String getTipoDestinatario() {
  165.     return this.tipoDestinatario;
  166.   }

  167.   public void setTipoDestinatario(java.lang.String tipoDestinatario) {
  168.     this.tipoDestinatario = tipoDestinatario;
  169.   }

  170.   public java.lang.String getDestinatario() {
  171.     return this.destinatario;
  172.   }

  173.   public void setDestinatario(java.lang.String destinatario) {
  174.     this.destinatario = destinatario;
  175.   }

  176.   public java.lang.String getTipoServizio() {
  177.     return this.tipoServizio;
  178.   }

  179.   public void setTipoServizio(java.lang.String tipoServizio) {
  180.     this.tipoServizio = tipoServizio;
  181.   }

  182.   public java.lang.String getServizio() {
  183.     return this.servizio;
  184.   }

  185.   public void setServizio(java.lang.String servizio) {
  186.     this.servizio = servizio;
  187.   }

  188.   public int getVersioneServizio() {
  189.     return this.versioneServizio;
  190.   }

  191.   public void setVersioneServizio(int versioneServizio) {
  192.     this.versioneServizio = versioneServizio;
  193.   }

  194.   public java.lang.String getAzione() {
  195.     return this.azione;
  196.   }

  197.   public void setAzione(java.lang.String azione) {
  198.     this.azione = azione;
  199.   }

  200.   public java.lang.String getServizioApplicativo() {
  201.     return this.servizioApplicativo;
  202.   }

  203.   public void setServizioApplicativo(java.lang.String servizioApplicativo) {
  204.     this.servizioApplicativo = servizioApplicativo;
  205.   }

  206.   public java.lang.String getTrasportoMittente() {
  207.     return this.trasportoMittente;
  208.   }

  209.   public void setTrasportoMittente(java.lang.String trasportoMittente) {
  210.     this.trasportoMittente = trasportoMittente;
  211.   }

  212.   public java.lang.String getTokenIssuer() {
  213.     return this.tokenIssuer;
  214.   }

  215.   public void setTokenIssuer(java.lang.String tokenIssuer) {
  216.     this.tokenIssuer = tokenIssuer;
  217.   }

  218.   public java.lang.String getTokenClientId() {
  219.     return this.tokenClientId;
  220.   }

  221.   public void setTokenClientId(java.lang.String tokenClientId) {
  222.     this.tokenClientId = tokenClientId;
  223.   }

  224.   public java.lang.String getTokenSubject() {
  225.     return this.tokenSubject;
  226.   }

  227.   public void setTokenSubject(java.lang.String tokenSubject) {
  228.     this.tokenSubject = tokenSubject;
  229.   }

  230.   public java.lang.String getTokenUsername() {
  231.     return this.tokenUsername;
  232.   }

  233.   public void setTokenUsername(java.lang.String tokenUsername) {
  234.     this.tokenUsername = tokenUsername;
  235.   }

  236.   public java.lang.String getTokenMail() {
  237.     return this.tokenMail;
  238.   }

  239.   public void setTokenMail(java.lang.String tokenMail) {
  240.     this.tokenMail = tokenMail;
  241.   }

  242.   public java.lang.Integer getEsito() {
  243.     return this.esito;
  244.   }

  245.   public void setEsito(java.lang.Integer esito) {
  246.     this.esito = esito;
  247.   }

  248.   public java.lang.String getEsitoContesto() {
  249.     return this.esitoContesto;
  250.   }

  251.   public void setEsitoContesto(java.lang.String esitoContesto) {
  252.     this.esitoContesto = esitoContesto;
  253.   }

  254.   public java.lang.String getClientAddress() {
  255.     return this.clientAddress;
  256.   }

  257.   public void setClientAddress(java.lang.String clientAddress) {
  258.     this.clientAddress = clientAddress;
  259.   }

  260.   public java.lang.String getGruppi() {
  261.     return this.gruppi;
  262.   }

  263.   public void setGruppi(java.lang.String gruppi) {
  264.     this.gruppi = gruppi;
  265.   }

  266.   public java.lang.String getUriApi() {
  267.     return this.uriApi;
  268.   }

  269.   public void setUriApi(java.lang.String uriApi) {
  270.     this.uriApi = uriApi;
  271.   }

  272.   public java.lang.String getClusterId() {
  273.     return this.clusterId;
  274.   }

  275.   public void setClusterId(java.lang.String clusterId) {
  276.     this.clusterId = clusterId;
  277.   }

  278.   public java.lang.Integer getNumeroTransazioni() {
  279.     return this.numeroTransazioni;
  280.   }

  281.   public void setNumeroTransazioni(java.lang.Integer numeroTransazioni) {
  282.     this.numeroTransazioni = numeroTransazioni;
  283.   }

  284.   public java.lang.Long getDimensioniBytesBandaComplessiva() {
  285.     return this.dimensioniBytesBandaComplessiva;
  286.   }

  287.   public void setDimensioniBytesBandaComplessiva(java.lang.Long dimensioniBytesBandaComplessiva) {
  288.     this.dimensioniBytesBandaComplessiva = dimensioniBytesBandaComplessiva;
  289.   }

  290.   public java.lang.Long getDimensioniBytesBandaInterna() {
  291.     return this.dimensioniBytesBandaInterna;
  292.   }

  293.   public void setDimensioniBytesBandaInterna(java.lang.Long dimensioniBytesBandaInterna) {
  294.     this.dimensioniBytesBandaInterna = dimensioniBytesBandaInterna;
  295.   }

  296.   public java.lang.Long getDimensioniBytesBandaEsterna() {
  297.     return this.dimensioniBytesBandaEsterna;
  298.   }

  299.   public void setDimensioniBytesBandaEsterna(java.lang.Long dimensioniBytesBandaEsterna) {
  300.     this.dimensioniBytesBandaEsterna = dimensioniBytesBandaEsterna;
  301.   }

  302.   public java.lang.Long getLatenzaTotale() {
  303.     return this.latenzaTotale;
  304.   }

  305.   public void setLatenzaTotale(java.lang.Long latenzaTotale) {
  306.     this.latenzaTotale = latenzaTotale;
  307.   }

  308.   public java.lang.Long getLatenzaPorta() {
  309.     return this.latenzaPorta;
  310.   }

  311.   public void setLatenzaPorta(java.lang.Long latenzaPorta) {
  312.     this.latenzaPorta = latenzaPorta;
  313.   }

  314.   public java.lang.Long getLatenzaServizio() {
  315.     return this.latenzaServizio;
  316.   }

  317.   public void setLatenzaServizio(java.lang.Long latenzaServizio) {
  318.     this.latenzaServizio = latenzaServizio;
  319.   }

  320.   private static final long serialVersionUID = 1L;



  321.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  322.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  323.   @XmlElement(name="data",required=true,nillable=false,type=java.lang.String.class)
  324.   protected java.util.Date data;

  325.   @javax.xml.bind.annotation.XmlSchemaType(name="int")
  326.   @XmlElement(name="stato-record",required=true,nillable=false)
  327.   protected int statoRecord;

  328.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  329.   @XmlElement(name="id-porta",required=true,nillable=false)
  330.   protected java.lang.String idPorta;

  331.   @javax.xml.bind.annotation.XmlTransient
  332.   protected java.lang.String tipoPortaRawEnumValue;

  333.   @XmlElement(name="tipo-porta",required=true,nillable=false)
  334.   protected TipoPorta tipoPorta;

  335.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  336.   @XmlElement(name="tipo-mittente",required=true,nillable=false)
  337.   protected java.lang.String tipoMittente;

  338.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  339.   @XmlElement(name="mittente",required=true,nillable=false)
  340.   protected java.lang.String mittente;

  341.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  342.   @XmlElement(name="tipo-destinatario",required=true,nillable=false)
  343.   protected java.lang.String tipoDestinatario;

  344.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  345.   @XmlElement(name="destinatario",required=true,nillable=false)
  346.   protected java.lang.String destinatario;

  347.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  348.   @XmlElement(name="tipo-servizio",required=true,nillable=false)
  349.   protected java.lang.String tipoServizio;

  350.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  351.   @XmlElement(name="servizio",required=true,nillable=false)
  352.   protected java.lang.String servizio;

  353.   @javax.xml.bind.annotation.XmlSchemaType(name="int")
  354.   @XmlElement(name="versione-servizio",required=true,nillable=false)
  355.   protected int versioneServizio;

  356.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  357.   @XmlElement(name="azione",required=true,nillable=false)
  358.   protected java.lang.String azione;

  359.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  360.   @XmlElement(name="servizio-applicativo",required=true,nillable=false)
  361.   protected java.lang.String servizioApplicativo;

  362.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  363.   @XmlElement(name="trasporto-mittente",required=true,nillable=false)
  364.   protected java.lang.String trasportoMittente;

  365.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  366.   @XmlElement(name="token-issuer",required=true,nillable=false)
  367.   protected java.lang.String tokenIssuer;

  368.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  369.   @XmlElement(name="token-client-id",required=true,nillable=false)
  370.   protected java.lang.String tokenClientId;

  371.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  372.   @XmlElement(name="token-subject",required=true,nillable=false)
  373.   protected java.lang.String tokenSubject;

  374.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  375.   @XmlElement(name="token-username",required=true,nillable=false)
  376.   protected java.lang.String tokenUsername;

  377.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  378.   @XmlElement(name="token-mail",required=true,nillable=false)
  379.   protected java.lang.String tokenMail;

  380.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  381.   @XmlElement(name="esito",required=true,nillable=false)
  382.   protected java.lang.Integer esito;

  383.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  384.   @XmlElement(name="esito-contesto",required=true,nillable=false)
  385.   protected java.lang.String esitoContesto;

  386.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  387.   @XmlElement(name="client-address",required=true,nillable=false)
  388.   protected java.lang.String clientAddress;

  389.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  390.   @XmlElement(name="gruppi",required=true,nillable=false)
  391.   protected java.lang.String gruppi;

  392.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  393.   @XmlElement(name="uri-api",required=true,nillable=false)
  394.   protected java.lang.String uriApi;

  395.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  396.   @XmlElement(name="cluster-id",required=true,nillable=false)
  397.   protected java.lang.String clusterId;

  398.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  399.   @XmlElement(name="numero-transazioni",required=true,nillable=false)
  400.   protected java.lang.Integer numeroTransazioni;

  401.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedLong")
  402.   @XmlElement(name="dimensioni-bytes-banda-complessiva",required=false,nillable=false)
  403.   protected java.lang.Long dimensioniBytesBandaComplessiva;

  404.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedLong")
  405.   @XmlElement(name="dimensioni-bytes-banda-interna",required=false,nillable=false)
  406.   protected java.lang.Long dimensioniBytesBandaInterna;

  407.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedLong")
  408.   @XmlElement(name="dimensioni-bytes-banda-esterna",required=false,nillable=false)
  409.   protected java.lang.Long dimensioniBytesBandaEsterna;

  410.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedLong")
  411.   @XmlElement(name="latenza-totale",required=false,nillable=false)
  412.   protected java.lang.Long latenzaTotale;

  413.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedLong")
  414.   @XmlElement(name="latenza-porta",required=false,nillable=false)
  415.   protected java.lang.Long latenzaPorta;

  416.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedLong")
  417.   @XmlElement(name="latenza-servizio",required=false,nillable=false)
  418.   protected java.lang.Long latenzaServizio;

  419. }