SemaphoreEvent.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.utils.semaphore;

  21. import java.util.Date;

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

  30.     private String details;
  31.     private Date date;
  32.     private SemaphoreEventSeverity severity;
  33.     private SemaphoreOperationType operationType;
  34.     private boolean lock;
  35.     private String idNode;
  36.    
  37.     public boolean isLock() {
  38.         return this.lock;
  39.     }
  40.     public void setLock(boolean lock) {
  41.         this.lock = lock;
  42.     }
  43.     public String getIdNode() {
  44.         return this.idNode;
  45.     }
  46.     public void setIdNode(String idNode) {
  47.         this.idNode = idNode;
  48.     }
  49.     public SemaphoreOperationType getOperationType() {
  50.         return this.operationType;
  51.     }
  52.     public void setOperationType(SemaphoreOperationType operationType) {
  53.         this.operationType = operationType;
  54.     }
  55.     public String getDetails() {
  56.         return this.details;
  57.     }
  58.     public void setDetails(String details) {
  59.         this.details = details;
  60.     }
  61.     public Date getDate() {
  62.         return this.date;
  63.     }
  64.     public void setDate(Date date) {
  65.         this.date = date;
  66.     }
  67.     public SemaphoreEventSeverity getSeverity() {
  68.         return this.severity;
  69.     }
  70.     public void setSeverity(SemaphoreEventSeverity severity) {
  71.         this.severity = severity;
  72.     }
  73. }