KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > joramplatform > MonitoringDestForm


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 2005 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  */

21
22 package org.objectweb.jonas.webapp.jonasadmin.joramplatform;
23
24 import javax.servlet.http.HttpServletRequest JavaDoc;
25
26 import org.apache.struts.action.ActionErrors;
27 import org.apache.struts.action.ActionForm;
28 import org.apache.struts.action.ActionMapping;
29
30 /**
31  * Form bean for the Joram queue and topic pages
32  * @author Adriana Danes
33  */

34
35 public class MonitoringDestForm extends ActionForm {
36
37 // ------------------------------------------------------------- Properties Variables
38
/**
39      *
40      */

41     private long nbMsgsReceiveSinceCreation;
42     private long nbMsgsSendToDMQSinceCreation;
43     private long nbMsgsDeliverSinceCreation;
44     //private Date creationDate;
45
private String JavaDoc name = null;
46     private String JavaDoc type = null;
47 // ------------------------------------------------------------- Properties Methods
48

49     /**
50      * @return Returns the nbMsgsReceiveSinceCreation.
51      */

52     public long getNbMsgsReceiveSinceCreation() {
53         return nbMsgsReceiveSinceCreation;
54     }
55
56     /**
57      * @param nbMsgsReceiveSinceCreation The nbMsgsReceiveSinceCreation to set.
58      */

59     public void setNbMsgsReceiveSinceCreation(long nbMsgsReceiveSinceCreation) {
60         this.nbMsgsReceiveSinceCreation = nbMsgsReceiveSinceCreation;
61     }
62
63     /**
64      * @return Returns the nbMsgsSendToDMQSinceCreation.
65      */

66     public long getNbMsgsSendToDMQSinceCreation() {
67         return nbMsgsSendToDMQSinceCreation;
68     }
69
70     /**
71      * @param nbMsgsSendToDMQSinceCreation The nbMsgsSendToDMQSinceCreation to set.
72      */

73     public void setNbMsgsSendToDMQSinceCreation(long nbMsgsSendToDMQSinceCreation) {
74         this.nbMsgsSendToDMQSinceCreation = nbMsgsSendToDMQSinceCreation;
75     }
76
77     /**
78      * @return Returns the nbMsgsDeliverSinceCreation.
79      */

80     public long getNbMsgsDeliverSinceCreation() {
81         return nbMsgsDeliverSinceCreation;
82     }
83
84     /**
85      * @param nbMsgsDeliverSinceCreation The nbMsgsDeliverSinceCreation to set.
86      */

87     public void setNbMsgsDeliverSinceCreation(long nbMsgsDeliverSinceCreation) {
88         this.nbMsgsDeliverSinceCreation = nbMsgsDeliverSinceCreation;
89     }
90
91     /**
92      * @return Returns the name.
93      */

94     public String JavaDoc getName() {
95         return name;
96     }
97
98     /**
99      * @param name The name to set.
100      */

101     public void setName(String JavaDoc name) {
102         this.name = name;
103     }
104
105     /**
106      * @return Returns the type.
107      */

108     public String JavaDoc getType() {
109         return type;
110     }
111
112     /**
113      * @param type The type to set.
114      */

115     public void setType(String JavaDoc type) {
116         this.type = type;
117     }
118 // ------------------------------------------------------------- Public Methods
119

120     /**
121      * Reset all properties to their default values.
122      *
123      * @param mapping The mapping used to select this instance
124      * @param request The servlet request we are processing
125      */

126     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
127         nbMsgsReceiveSinceCreation = 0;
128         nbMsgsSendToDMQSinceCreation = 0;
129         nbMsgsDeliverSinceCreation = 0;
130         name = null;
131         type = null;
132     }
133
134     /**
135      * Validate the properties that have been set from this HTTP request,
136      * and return an <code>ActionErrors</code> object that encapsulates any
137      * validation errors that have been found. If no errors are found, return
138      * <code>null</code> or an <code>ActionErrors</code> object with no
139      * recorded error messages.
140      *
141      * @param mapping The mapping used to select this instance
142      * @param request The servlet request we are processing
143      */

144     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request) {
145         return new ActionErrors();
146     }
147
148 }
149
Popular Tags