001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018 package org.apache.camel.spring;
019
020 import javax.xml.bind.annotation.XmlAccessType;
021 import javax.xml.bind.annotation.XmlAccessorType;
022 import javax.xml.bind.annotation.XmlAttribute;
023 import javax.xml.bind.annotation.XmlRootElement;
024
025 import org.apache.camel.model.IdentifiedType;
026
027 /**
028 * The JAXB type class for the configuration of jmxAgent
029 * @author Willem Jiang
030 *
031 * @version $Revision: 750806 $
032 */
033 @XmlRootElement(name = "jmxAgent")
034 @XmlAccessorType(XmlAccessType.FIELD)
035 public class CamelJMXAgentDefinition extends IdentifiedType {
036 /**
037 * Disable JMI (default false)
038 */
039 @XmlAttribute(required = false)
040 private Boolean disabled = Boolean.FALSE;
041
042 /**
043 * RMI connector registry port (default 1099)
044 */
045 @XmlAttribute(required = false)
046 private Integer registryPort;
047
048 /**
049 * RMI connector server port (default -1 not used)
050 */
051 @XmlAttribute(required = false)
052 private Integer connectorPort;
053
054 /**
055 * MBean server default domain name (default org.apache.camel)
056 */
057 @XmlAttribute(required = false)
058 private String mbeanServerDefaultDomain;
059
060 /**
061 * MBean object domain name (default org.apache.camel)
062 */
063 @XmlAttribute(required = false)
064 private String mbeanObjectDomainName;
065
066 /**
067 * JMX Service URL path (default /jmxrmi)
068 */
069 @XmlAttribute(required = false)
070 private String serviceUrlPath;
071
072 /**
073 * A flag that indicates whether the agent should be created
074 */
075 @XmlAttribute(required = false)
076 private Boolean createConnector = Boolean.TRUE;
077
078 /**
079 * A flag that indicates whether the platform mbean server should be used
080 */
081 @XmlAttribute(required = false)
082 private Boolean usePlatformMBeanServer = Boolean.TRUE;
083
084 public Integer getConnectorPort() {
085 return connectorPort;
086 }
087
088 public void setConnectorPort(Integer value) {
089 connectorPort = value;
090 }
091
092 public Integer getRegistryPort() {
093 return registryPort;
094 }
095
096 public void setRegistryPort(Integer value) {
097 registryPort = value;
098 }
099
100 public String getMbeanServerDefaultDomain() {
101 return mbeanServerDefaultDomain;
102 }
103
104 public void setMbeanServerDefaultDomain(String value) {
105 mbeanServerDefaultDomain = value;
106 }
107
108 public String getMbeanObjectDomainName() {
109 return mbeanObjectDomainName;
110 }
111
112 public void setMbeanObjectDomainName(String value) {
113 mbeanObjectDomainName = value;
114 }
115
116 public String getServiceUrlPath() {
117 return serviceUrlPath;
118 }
119
120 public void setServiceUrlPath(String value) {
121 serviceUrlPath = value;
122 }
123
124 public Boolean isCreateConnector() {
125 return createConnector;
126 }
127
128 public void setCreateConnector(Boolean value) {
129 createConnector = value != null ? value : Boolean.FALSE;
130 }
131
132 public Boolean isUsePlatformMBeanServer() {
133 return usePlatformMBeanServer;
134 }
135
136 public void setUsePlatformMBeanServer(Boolean value) {
137 usePlatformMBeanServer = value != null ? value : Boolean.FALSE;
138 }
139
140 public Boolean isDisabled() {
141 return disabled;
142 }
143
144 public void setDisabled(Boolean value) {
145 disabled = value != null ? value : Boolean.FALSE;
146 }
147 }