StatoPdd.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.pdd.monitor;

  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 java.io.Serializable;


  27. /** <p>Java class for stato-pdd complex type.
  28.  *
  29.  * <p>The following schema fragment specifies the expected content contained within this class.
  30.  *
  31.  * <pre>
  32.  * &lt;complexType name="stato-pdd"&gt;
  33.  *      &lt;sequence&gt;
  34.  *          &lt;element name="num-msg-in-consegna" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="0"/&gt;
  35.  *          &lt;element name="tempo-medio-attesa-in-consegna" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="-1"/&gt;
  36.  *          &lt;element name="tempo-max-attesa-in-consegna" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="-1"/&gt;
  37.  *          &lt;element name="num-msg-in-spedizione" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="0"/&gt;
  38.  *          &lt;element name="tempo-medio-attesa-in-spedizione" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="-1"/&gt;
  39.  *          &lt;element name="tempo-max-attesa-in-spedizione" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="-1"/&gt;
  40.  *          &lt;element name="num-msg-in-processamento" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="0"/&gt;
  41.  *          &lt;element name="tempo-medio-attesa-in-processamento" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="-1"/&gt;
  42.  *          &lt;element name="tempo-max-attesa-in-processamento" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="-1"/&gt;
  43.  *          &lt;element name="tot-messaggi" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="0"/&gt;
  44.  *          &lt;element name="tempo-medio-attesa" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="-1"/&gt;
  45.  *          &lt;element name="tempo-max-attesa" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="-1"/&gt;
  46.  *          &lt;element name="tot-messaggi-duplicati" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="1" maxOccurs="1" default="0"/&gt;
  47.  *      &lt;/sequence&gt;
  48.  * &lt;/complexType&gt;
  49.  * </pre>
  50.  *
  51.  * @version $Rev$, $Date$
  52.  *
  53.  * @author Poli Andrea (poli@link.it)
  54.  * @author $Author$
  55.  * */

  56. @XmlAccessorType(XmlAccessType.FIELD)
  57. @XmlType(name = "stato-pdd",
  58.   propOrder = {
  59.     "numMsgInConsegna",
  60.     "tempoMedioAttesaInConsegna",
  61.     "tempoMaxAttesaInConsegna",
  62.     "numMsgInSpedizione",
  63.     "tempoMedioAttesaInSpedizione",
  64.     "tempoMaxAttesaInSpedizione",
  65.     "numMsgInProcessamento",
  66.     "tempoMedioAttesaInProcessamento",
  67.     "tempoMaxAttesaInProcessamento",
  68.     "totMessaggi",
  69.     "tempoMedioAttesa",
  70.     "tempoMaxAttesa",
  71.     "totMessaggiDuplicati"
  72.   }
  73. )

  74. @XmlRootElement(name = "stato-pdd")

  75. public class StatoPdd extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  76.   public StatoPdd() {
  77.     super();
  78.   }

  79.   public long getNumMsgInConsegna() {
  80.     return this.numMsgInConsegna;
  81.   }

  82.   public void setNumMsgInConsegna(long numMsgInConsegna) {
  83.     this.numMsgInConsegna = numMsgInConsegna;
  84.   }

  85.   public long getTempoMedioAttesaInConsegna() {
  86.     return this.tempoMedioAttesaInConsegna;
  87.   }

  88.   public void setTempoMedioAttesaInConsegna(long tempoMedioAttesaInConsegna) {
  89.     this.tempoMedioAttesaInConsegna = tempoMedioAttesaInConsegna;
  90.   }

  91.   public long getTempoMaxAttesaInConsegna() {
  92.     return this.tempoMaxAttesaInConsegna;
  93.   }

  94.   public void setTempoMaxAttesaInConsegna(long tempoMaxAttesaInConsegna) {
  95.     this.tempoMaxAttesaInConsegna = tempoMaxAttesaInConsegna;
  96.   }

  97.   public long getNumMsgInSpedizione() {
  98.     return this.numMsgInSpedizione;
  99.   }

  100.   public void setNumMsgInSpedizione(long numMsgInSpedizione) {
  101.     this.numMsgInSpedizione = numMsgInSpedizione;
  102.   }

  103.   public long getTempoMedioAttesaInSpedizione() {
  104.     return this.tempoMedioAttesaInSpedizione;
  105.   }

  106.   public void setTempoMedioAttesaInSpedizione(long tempoMedioAttesaInSpedizione) {
  107.     this.tempoMedioAttesaInSpedizione = tempoMedioAttesaInSpedizione;
  108.   }

  109.   public long getTempoMaxAttesaInSpedizione() {
  110.     return this.tempoMaxAttesaInSpedizione;
  111.   }

  112.   public void setTempoMaxAttesaInSpedizione(long tempoMaxAttesaInSpedizione) {
  113.     this.tempoMaxAttesaInSpedizione = tempoMaxAttesaInSpedizione;
  114.   }

  115.   public long getNumMsgInProcessamento() {
  116.     return this.numMsgInProcessamento;
  117.   }

  118.   public void setNumMsgInProcessamento(long numMsgInProcessamento) {
  119.     this.numMsgInProcessamento = numMsgInProcessamento;
  120.   }

  121.   public long getTempoMedioAttesaInProcessamento() {
  122.     return this.tempoMedioAttesaInProcessamento;
  123.   }

  124.   public void setTempoMedioAttesaInProcessamento(long tempoMedioAttesaInProcessamento) {
  125.     this.tempoMedioAttesaInProcessamento = tempoMedioAttesaInProcessamento;
  126.   }

  127.   public long getTempoMaxAttesaInProcessamento() {
  128.     return this.tempoMaxAttesaInProcessamento;
  129.   }

  130.   public void setTempoMaxAttesaInProcessamento(long tempoMaxAttesaInProcessamento) {
  131.     this.tempoMaxAttesaInProcessamento = tempoMaxAttesaInProcessamento;
  132.   }

  133.   public long getTotMessaggi() {
  134.     return this.totMessaggi;
  135.   }

  136.   public void setTotMessaggi(long totMessaggi) {
  137.     this.totMessaggi = totMessaggi;
  138.   }

  139.   public long getTempoMedioAttesa() {
  140.     return this.tempoMedioAttesa;
  141.   }

  142.   public void setTempoMedioAttesa(long tempoMedioAttesa) {
  143.     this.tempoMedioAttesa = tempoMedioAttesa;
  144.   }

  145.   public long getTempoMaxAttesa() {
  146.     return this.tempoMaxAttesa;
  147.   }

  148.   public void setTempoMaxAttesa(long tempoMaxAttesa) {
  149.     this.tempoMaxAttesa = tempoMaxAttesa;
  150.   }

  151.   public long getTotMessaggiDuplicati() {
  152.     return this.totMessaggiDuplicati;
  153.   }

  154.   public void setTotMessaggiDuplicati(long totMessaggiDuplicati) {
  155.     this.totMessaggiDuplicati = totMessaggiDuplicati;
  156.   }

  157.   public Filtro getFiltro() {
  158.     return this.filtro;
  159.   }

  160.   public void setFiltro(Filtro filtro) {
  161.     this.filtro = filtro;
  162.   }

  163.   private static final long serialVersionUID = 1L;

  164.   private static org.openspcoop2.pdd.monitor.model.StatoPddModel modelStaticInstance = null;
  165.   private static synchronized void initModelStaticInstance(){
  166.       if(org.openspcoop2.pdd.monitor.StatoPdd.modelStaticInstance==null){
  167.             org.openspcoop2.pdd.monitor.StatoPdd.modelStaticInstance = new org.openspcoop2.pdd.monitor.model.StatoPddModel();
  168.       }
  169.   }
  170.   public static org.openspcoop2.pdd.monitor.model.StatoPddModel model(){
  171.       if(org.openspcoop2.pdd.monitor.StatoPdd.modelStaticInstance==null){
  172.             initModelStaticInstance();
  173.       }
  174.       return org.openspcoop2.pdd.monitor.StatoPdd.modelStaticInstance;
  175.   }


  176.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  177.   @XmlElement(name="num-msg-in-consegna",required=true,nillable=false,defaultValue="0")
  178.   protected long numMsgInConsegna = 0l;

  179.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  180.   @XmlElement(name="tempo-medio-attesa-in-consegna",required=true,nillable=false,defaultValue="-1")
  181.   protected long tempoMedioAttesaInConsegna = -1l;

  182.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  183.   @XmlElement(name="tempo-max-attesa-in-consegna",required=true,nillable=false,defaultValue="-1")
  184.   protected long tempoMaxAttesaInConsegna = -1l;

  185.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  186.   @XmlElement(name="num-msg-in-spedizione",required=true,nillable=false,defaultValue="0")
  187.   protected long numMsgInSpedizione = 0l;

  188.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  189.   @XmlElement(name="tempo-medio-attesa-in-spedizione",required=true,nillable=false,defaultValue="-1")
  190.   protected long tempoMedioAttesaInSpedizione = -1l;

  191.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  192.   @XmlElement(name="tempo-max-attesa-in-spedizione",required=true,nillable=false,defaultValue="-1")
  193.   protected long tempoMaxAttesaInSpedizione = -1l;

  194.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  195.   @XmlElement(name="num-msg-in-processamento",required=true,nillable=false,defaultValue="0")
  196.   protected long numMsgInProcessamento = 0l;

  197.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  198.   @XmlElement(name="tempo-medio-attesa-in-processamento",required=true,nillable=false,defaultValue="-1")
  199.   protected long tempoMedioAttesaInProcessamento = -1l;

  200.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  201.   @XmlElement(name="tempo-max-attesa-in-processamento",required=true,nillable=false,defaultValue="-1")
  202.   protected long tempoMaxAttesaInProcessamento = -1l;

  203.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  204.   @XmlElement(name="tot-messaggi",required=true,nillable=false,defaultValue="0")
  205.   protected long totMessaggi = 0l;

  206.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  207.   @XmlElement(name="tempo-medio-attesa",required=true,nillable=false,defaultValue="-1")
  208.   protected long tempoMedioAttesa = -1l;

  209.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  210.   @XmlElement(name="tempo-max-attesa",required=true,nillable=false,defaultValue="-1")
  211.   protected long tempoMaxAttesa = -1l;

  212.   @javax.xml.bind.annotation.XmlSchemaType(name="long")
  213.   @XmlElement(name="tot-messaggi-duplicati",required=true,nillable=false,defaultValue="0")
  214.   protected long totMessaggiDuplicati = 0l;

  215.   @javax.xml.bind.annotation.XmlTransient
  216.   protected Filtro filtro;

  217. }