01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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: * $Id: ItemDestination.java 9786 2006-10-24 11:55:05Z danesa $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.webapp.jonasadmin.joramplatform;
25:
26: public class ItemDestination extends ItemBase implements
27: java.io.Serializable {
28: private String type = null;
29: private boolean used = false;
30: /** The destination has a corresponding MBean registered in the JMX server */
31: private boolean registered = false;
32: /**
33: * The corresponding MBean is really corresponding to the destination as
34: * the id is correct
35: */
36: private boolean manageable = false;
37:
38: /**
39: * @return Returns the type.
40: */
41: public String getType() {
42: return type;
43: }
44:
45: /**
46: * @param type The type to set.
47: */
48: public void setType(String type) {
49: this .type = type;
50: }
51:
52: /**
53: * @return Returns the used.
54: */
55: public boolean isUsed() {
56: return used;
57: }
58:
59: /**
60: * @param used The used to set.
61: */
62: public void setUsed(boolean used) {
63: this .used = used;
64: }
65:
66: /**
67: * @return true if the destination has a corresponding MBean
68: */
69: public boolean isRegistered() {
70: return registered;
71: }
72:
73: /**
74: *
75: * @param registered is true if the destination has a corresponding MBean
76: */
77: public void setRegistered(boolean registered) {
78: this .registered = registered;
79: }
80:
81: public boolean isManageable() {
82: return manageable;
83: }
84:
85: public void setManageable(boolean manageable) {
86: this.manageable = manageable;
87: }
88: }
|