01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.console.jmsmanager;
17:
18: import javax.management.ObjectName;
19:
20: public class DataSourceInfo implements Comparable {
21: private ObjectName objectName;
22:
23: private String name;
24:
25: private Integer state;
26:
27: private boolean working;
28:
29: private String message;
30:
31: public ObjectName getObjectName() {
32: return objectName;
33: }
34:
35: public void setObjectName(ObjectName objectName) {
36: this .objectName = objectName;
37: }
38:
39: public String getName() {
40: return name;
41: }
42:
43: public void setName(String name) {
44: this .name = name;
45: }
46:
47: public Integer getState() {
48: return state;
49: }
50:
51: public void setState(Integer state) {
52: this .state = state;
53: }
54:
55: public int compareTo(Object o) {
56: return name.compareToIgnoreCase(((DataSourceInfo) o).name);
57: }
58:
59: public boolean isWorking() {
60: return working;
61: }
62:
63: public void setWorking(boolean working) {
64: this .working = working;
65: }
66:
67: public String getMessage() {
68: return message;
69: }
70:
71: public void setMessage(String message) {
72: this.message = message;
73: }
74: }
|