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 Tommaso Burlon (tommaso.burlon@link.it)
  75.  * @author $Author$
  76.  * */

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

  114. @XmlRootElement(name = "statistica")

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  321.   private static final long serialVersionUID = 1L;



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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  420. }