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.ActionMapping; 28 29 33 34 public final class JoramQueueForm extends DestinationForm { 35 36 40 private String [] messageIds = null; 41 44 private int nbMaxMsg = -1; 45 48 private int pendingMessages = 0; 49 52 private int pendingRequests = 0; 53 56 private int threshold = 0; 57 61 public String [] getMessageIds() { 62 return messageIds; 63 } 64 65 68 public void setMessageIds(String [] messageIds) { 69 this.messageIds = messageIds; 70 } 71 72 75 public int getNbMaxMsg() { 76 return nbMaxMsg; 77 } 78 79 82 public void setNbMaxMsg(int nbMaxMsg) { 83 this.nbMaxMsg = nbMaxMsg; 84 } 85 86 89 public int getPendingMessages() { 90 return pendingMessages; 91 } 92 93 96 public void setPendingMessages(int pendingMessages) { 97 this.pendingMessages = pendingMessages; 98 } 99 100 103 public int getPendingRequests() { 104 return pendingRequests; 105 } 106 107 110 public void setPendingRequests(int pendingRequests) { 111 this.pendingRequests = pendingRequests; 112 } 113 114 117 public int getThreshold() { 118 return threshold; 119 } 120 121 124 public void setThreshold(int threshold) { 125 this.threshold = threshold; 126 } 127 128 130 136 public void reset(ActionMapping mapping, HttpServletRequest request) { 137 super.reset(mapping, request); 138 messageIds = null; 139 nbMaxMsg = -1; 140 pendingMessages = 0; 141 pendingRequests = 0; 142 threshold = -1; 143 } 144 145 155 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 156 return super.validate(mapping, request); 157 } 158 159 } 160 | Popular Tags |