Statistic.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.core.handlers.statistics;

  21. import org.openspcoop2.core.constants.TipoPdD;
  22. import org.openspcoop2.protocol.sdk.IProtocolFactory;
  23. import org.openspcoop2.protocol.sdk.builder.EsitoTransazione;

  24. /**
  25.  * Statistic
  26.  *
  27.  * @author Poli Andrea (apoli@link.it)
  28.  * @author $Author$
  29.  * @version $Rev$, $Date$
  30.  */
  31. public class Statistic {

  32.     private TipoPdD tipoPdD;
  33.     private IProtocolFactory<?> protocollo;
  34.    
  35.     private EsitoTransazione esito;
  36.    
  37.     private long timeMillisIngressoRichiesta = -1;
  38.     private long timeMillisUscitaRichiesta = -1;
  39.     private long timeMillisIngressoRisposta = -1;
  40.     private long timeMillisUscitaRisposta = -1;
  41.    
  42.     private long dimensioneIngressoRichiesta = -1;
  43.     private long dimensioneUscitaRichiesta = -1;
  44.     private long dimensioneIngressoRisposta = -1;
  45.     private long dimensioneUscitaRisposta = -1;
  46.    
  47.     public TipoPdD getTipoPdD() {
  48.         return this.tipoPdD;
  49.     }
  50.     public void setTipoPdD(TipoPdD tipoPdD) {
  51.         this.tipoPdD = tipoPdD;
  52.     }
  53.     public IProtocolFactory<?> getProtocollo() {
  54.         return this.protocollo;
  55.     }
  56.     public void setProtocollo(IProtocolFactory<?> protocollo) {
  57.         this.protocollo = protocollo;
  58.     }
  59.     public EsitoTransazione getEsito() {
  60.         return this.esito;
  61.     }
  62.     public void setEsito(EsitoTransazione esito) {
  63.         this.esito = esito;
  64.     }
  65.     public long getTimeMillisIngressoRichiesta() {
  66.         return this.timeMillisIngressoRichiesta;
  67.     }
  68.     public void setTimeMillisIngressoRichiesta(long timeMillisIngressoRichiesta) {
  69.         this.timeMillisIngressoRichiesta = timeMillisIngressoRichiesta;
  70.     }
  71.     public long getTimeMillisUscitaRichiesta() {
  72.         return this.timeMillisUscitaRichiesta;
  73.     }
  74.     public void setTimeMillisUscitaRichiesta(long timeMillisUscitaRichiesta) {
  75.         this.timeMillisUscitaRichiesta = timeMillisUscitaRichiesta;
  76.     }
  77.     public long getTimeMillisIngressoRisposta() {
  78.         return this.timeMillisIngressoRisposta;
  79.     }
  80.     public void setTimeMillisIngressoRisposta(long timeMillisIngressoRisposta) {
  81.         this.timeMillisIngressoRisposta = timeMillisIngressoRisposta;
  82.     }
  83.     public long getTimeMillisUscitaRisposta() {
  84.         return this.timeMillisUscitaRisposta;
  85.     }
  86.     public void setTimeMillisUscitaRisposta(long timeMillisUscitaRisposta) {
  87.         this.timeMillisUscitaRisposta = timeMillisUscitaRisposta;
  88.     }
  89.     public long getDimensioneIngressoRichiesta() {
  90.         return this.dimensioneIngressoRichiesta;
  91.     }
  92.     public void setDimensioneIngressoRichiesta(long dimensioneIngressoRichiesta) {
  93.         this.dimensioneIngressoRichiesta = dimensioneIngressoRichiesta;
  94.     }
  95.     public long getDimensioneUscitaRichiesta() {
  96.         return this.dimensioneUscitaRichiesta;
  97.     }
  98.     public void setDimensioneUscitaRichiesta(long dimensioneUscitaRichiesta) {
  99.         this.dimensioneUscitaRichiesta = dimensioneUscitaRichiesta;
  100.     }
  101.     public long getDimensioneIngressoRisposta() {
  102.         return this.dimensioneIngressoRisposta;
  103.     }
  104.     public void setDimensioneIngressoRisposta(long dimensioneIngressoRisposta) {
  105.         this.dimensioneIngressoRisposta = dimensioneIngressoRisposta;
  106.     }
  107.     public long getDimensioneUscitaRisposta() {
  108.         return this.dimensioneUscitaRisposta;
  109.     }
  110.     public void setDimensioneUscitaRisposta(long dimensioneUscitaRisposta) {
  111.         this.dimensioneUscitaRisposta = dimensioneUscitaRisposta;
  112.     }
  113.    
  114. }