1 21 22 package org.objectweb.jonas.webapp.jonasadmin.joramplatform; 23 24 import javax.servlet.http.HttpServletRequest ; 25 26 import org.apache.struts.action.ActionErrors; 27 import org.apache.struts.action.ActionForm; 28 import org.apache.struts.action.ActionMapping; 29 30 34 35 public class MonitoringDestForm extends ActionForm { 36 37 41 private long nbMsgsReceiveSinceCreation; 42 private long nbMsgsSendToDMQSinceCreation; 43 private long nbMsgsDeliverSinceCreation; 44 private String name = null; 46 private String type = null; 47 49 52 public long getNbMsgsReceiveSinceCreation() { 53 return nbMsgsReceiveSinceCreation; 54 } 55 56 59 public void setNbMsgsReceiveSinceCreation(long nbMsgsReceiveSinceCreation) { 60 this.nbMsgsReceiveSinceCreation = nbMsgsReceiveSinceCreation; 61 } 62 63 66 public long getNbMsgsSendToDMQSinceCreation() { 67 return nbMsgsSendToDMQSinceCreation; 68 } 69 70 73 public void setNbMsgsSendToDMQSinceCreation(long nbMsgsSendToDMQSinceCreation) { 74 this.nbMsgsSendToDMQSinceCreation = nbMsgsSendToDMQSinceCreation; 75 } 76 77 80 public long getNbMsgsDeliverSinceCreation() { 81 return nbMsgsDeliverSinceCreation; 82 } 83 84 87 public void setNbMsgsDeliverSinceCreation(long nbMsgsDeliverSinceCreation) { 88 this.nbMsgsDeliverSinceCreation = nbMsgsDeliverSinceCreation; 89 } 90 91 94 public String getName() { 95 return name; 96 } 97 98 101 public void setName(String name) { 102 this.name = name; 103 } 104 105 108 public String getType() { 109 return type; 110 } 111 112 115 public void setType(String type) { 116 this.type = type; 117 } 118 120 126 public void reset(ActionMapping mapping, HttpServletRequest request) { 127 nbMsgsReceiveSinceCreation = 0; 128 nbMsgsSendToDMQSinceCreation = 0; 129 nbMsgsDeliverSinceCreation = 0; 130 name = null; 131 type = null; 132 } 133 134 144 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 145 return new ActionErrors(); 146 } 147 148 } 149 | Popular Tags |