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.webmanager;
17:
18: import java.io.Serializable;
19:
20: import org.apache.geronimo.kernel.management.State;
21:
22: public class ConnectorInfo implements Serializable {
23: private String description;
24: private String uniqueName;
25: private String connectorURI;
26: private String protocol;
27: private int port;
28: private int state;
29:
30: public String getDescription() {
31: return description;
32: }
33:
34: public void setDescription(String description) {
35: this .description = description;
36: }
37:
38: public String getProtocol() {
39: return protocol;
40: }
41:
42: public void setProtocol(String protocol) {
43: this .protocol = protocol;
44: }
45:
46: public String getConnectorURI() {
47: return connectorURI;
48: }
49:
50: public String getUniqueName() {
51: return uniqueName;
52: }
53:
54: public void setConnectorURI(String connectorURI) {
55: this .connectorURI = connectorURI;
56: }
57:
58: public void setUniqueName(String uniqueName) {
59: this .uniqueName = uniqueName;
60: }
61:
62: public int getPort() {
63: return port;
64: }
65:
66: public void setPort(int port) {
67: this .port = port;
68: }
69:
70: public int getState() {
71: return state;
72: }
73:
74: public void setState(int state) {
75: this .state = state;
76: }
77:
78: public String getStateName() {
79: return State.toString(state);
80: }
81:
82: }
|