StatoPddModel.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.model;

  21. import org.openspcoop2.pdd.monitor.StatoPdd;

  22. import org.openspcoop2.generic_project.beans.AbstractModel;
  23. import org.openspcoop2.generic_project.beans.IField;
  24. import org.openspcoop2.generic_project.beans.Field;
  25. import org.openspcoop2.generic_project.beans.ComplexField;


  26. /**    
  27.  * Model StatoPdd
  28.  *
  29.  * @author Poli Andrea (poli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class StatoPddModel extends AbstractModel<StatoPdd> {

  34.     public StatoPddModel(){
  35.    
  36.         super();
  37.    
  38.         this.NUM_MSG_IN_CONSEGNA = new Field("num-msg-in-consegna",long.class,"stato-pdd",StatoPdd.class);
  39.         this.TEMPO_MEDIO_ATTESA_IN_CONSEGNA = new Field("tempo-medio-attesa-in-consegna",long.class,"stato-pdd",StatoPdd.class);
  40.         this.TEMPO_MAX_ATTESA_IN_CONSEGNA = new Field("tempo-max-attesa-in-consegna",long.class,"stato-pdd",StatoPdd.class);
  41.         this.NUM_MSG_IN_SPEDIZIONE = new Field("num-msg-in-spedizione",long.class,"stato-pdd",StatoPdd.class);
  42.         this.TEMPO_MEDIO_ATTESA_IN_SPEDIZIONE = new Field("tempo-medio-attesa-in-spedizione",long.class,"stato-pdd",StatoPdd.class);
  43.         this.TEMPO_MAX_ATTESA_IN_SPEDIZIONE = new Field("tempo-max-attesa-in-spedizione",long.class,"stato-pdd",StatoPdd.class);
  44.         this.NUM_MSG_IN_PROCESSAMENTO = new Field("num-msg-in-processamento",long.class,"stato-pdd",StatoPdd.class);
  45.         this.TEMPO_MEDIO_ATTESA_IN_PROCESSAMENTO = new Field("tempo-medio-attesa-in-processamento",long.class,"stato-pdd",StatoPdd.class);
  46.         this.TEMPO_MAX_ATTESA_IN_PROCESSAMENTO = new Field("tempo-max-attesa-in-processamento",long.class,"stato-pdd",StatoPdd.class);
  47.         this.TOT_MESSAGGI = new Field("tot-messaggi",long.class,"stato-pdd",StatoPdd.class);
  48.         this.TEMPO_MEDIO_ATTESA = new Field("tempo-medio-attesa",long.class,"stato-pdd",StatoPdd.class);
  49.         this.TEMPO_MAX_ATTESA = new Field("tempo-max-attesa",long.class,"stato-pdd",StatoPdd.class);
  50.         this.TOT_MESSAGGI_DUPLICATI = new Field("tot-messaggi-duplicati",long.class,"stato-pdd",StatoPdd.class);
  51.         this.FILTRO = new org.openspcoop2.pdd.monitor.model.FiltroModel(new Field("filtro",org.openspcoop2.pdd.monitor.Filtro.class,"stato-pdd",StatoPdd.class));
  52.    
  53.     }
  54.    
  55.     public StatoPddModel(IField father){
  56.    
  57.         super(father);
  58.    
  59.         this.NUM_MSG_IN_CONSEGNA = new ComplexField(father,"num-msg-in-consegna",long.class,"stato-pdd",StatoPdd.class);
  60.         this.TEMPO_MEDIO_ATTESA_IN_CONSEGNA = new ComplexField(father,"tempo-medio-attesa-in-consegna",long.class,"stato-pdd",StatoPdd.class);
  61.         this.TEMPO_MAX_ATTESA_IN_CONSEGNA = new ComplexField(father,"tempo-max-attesa-in-consegna",long.class,"stato-pdd",StatoPdd.class);
  62.         this.NUM_MSG_IN_SPEDIZIONE = new ComplexField(father,"num-msg-in-spedizione",long.class,"stato-pdd",StatoPdd.class);
  63.         this.TEMPO_MEDIO_ATTESA_IN_SPEDIZIONE = new ComplexField(father,"tempo-medio-attesa-in-spedizione",long.class,"stato-pdd",StatoPdd.class);
  64.         this.TEMPO_MAX_ATTESA_IN_SPEDIZIONE = new ComplexField(father,"tempo-max-attesa-in-spedizione",long.class,"stato-pdd",StatoPdd.class);
  65.         this.NUM_MSG_IN_PROCESSAMENTO = new ComplexField(father,"num-msg-in-processamento",long.class,"stato-pdd",StatoPdd.class);
  66.         this.TEMPO_MEDIO_ATTESA_IN_PROCESSAMENTO = new ComplexField(father,"tempo-medio-attesa-in-processamento",long.class,"stato-pdd",StatoPdd.class);
  67.         this.TEMPO_MAX_ATTESA_IN_PROCESSAMENTO = new ComplexField(father,"tempo-max-attesa-in-processamento",long.class,"stato-pdd",StatoPdd.class);
  68.         this.TOT_MESSAGGI = new ComplexField(father,"tot-messaggi",long.class,"stato-pdd",StatoPdd.class);
  69.         this.TEMPO_MEDIO_ATTESA = new ComplexField(father,"tempo-medio-attesa",long.class,"stato-pdd",StatoPdd.class);
  70.         this.TEMPO_MAX_ATTESA = new ComplexField(father,"tempo-max-attesa",long.class,"stato-pdd",StatoPdd.class);
  71.         this.TOT_MESSAGGI_DUPLICATI = new ComplexField(father,"tot-messaggi-duplicati",long.class,"stato-pdd",StatoPdd.class);
  72.         this.FILTRO = new org.openspcoop2.pdd.monitor.model.FiltroModel(new ComplexField(father,"filtro",org.openspcoop2.pdd.monitor.Filtro.class,"stato-pdd",StatoPdd.class));
  73.    
  74.     }
  75.    
  76.    

  77.     public IField NUM_MSG_IN_CONSEGNA = null;
  78.      
  79.     public IField TEMPO_MEDIO_ATTESA_IN_CONSEGNA = null;
  80.      
  81.     public IField TEMPO_MAX_ATTESA_IN_CONSEGNA = null;
  82.      
  83.     public IField NUM_MSG_IN_SPEDIZIONE = null;
  84.      
  85.     public IField TEMPO_MEDIO_ATTESA_IN_SPEDIZIONE = null;
  86.      
  87.     public IField TEMPO_MAX_ATTESA_IN_SPEDIZIONE = null;
  88.      
  89.     public IField NUM_MSG_IN_PROCESSAMENTO = null;
  90.      
  91.     public IField TEMPO_MEDIO_ATTESA_IN_PROCESSAMENTO = null;
  92.      
  93.     public IField TEMPO_MAX_ATTESA_IN_PROCESSAMENTO = null;
  94.      
  95.     public IField TOT_MESSAGGI = null;
  96.      
  97.     public IField TEMPO_MEDIO_ATTESA = null;
  98.      
  99.     public IField TEMPO_MAX_ATTESA = null;
  100.      
  101.     public IField TOT_MESSAGGI_DUPLICATI = null;
  102.      
  103.     public org.openspcoop2.pdd.monitor.model.FiltroModel FILTRO = null;
  104.      

  105.     @Override
  106.     public Class<StatoPdd> getModeledClass(){
  107.         return StatoPdd.class;
  108.     }
  109.    
  110.     @Override
  111.     public String toString(){
  112.         if(this.getModeledClass()!=null){
  113.             return this.getModeledClass().getName();
  114.         }else{
  115.             return "N.D.";
  116.         }
  117.     }

  118. }