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     *
030     * @version $Revision: 14059 $
031     */
032    @XmlRootElement(name = "jmxAgent")
033    @XmlAccessorType(XmlAccessType.FIELD)
034    public class CamelJMXAgentType extends IdentifiedType {
035        /**
036         * Disable JMI (default false)
037         */
038        @XmlAttribute(required = false)
039        private Boolean disabled = Boolean.FALSE;
040        
041        /**
042         * RMI connector registry port (default 1099)
043         */
044        @XmlAttribute(required = false)
045        private Integer registryPort;
046        
047        /**
048         * RMI connector server port (default -1 not used)
049         */
050        @XmlAttribute(required = false)
051        private Integer connectorPort;
052        
053        /**
054         * MBean server default domain name (default org.apache.camel)
055         */
056        @XmlAttribute(required = false)
057        private String mbeanServerDefaultDomain;
058        
059        /**
060         * MBean object domain name (default org.apache.camel)
061         */
062        @XmlAttribute(required = false)
063        private String mbeanObjectDomainName;
064      
065        /**
066         * JMX Service URL path (default /jmxrmi)
067         */
068        @XmlAttribute(required = false)
069        private String serviceUrlPath;
070        
071        /**
072         * A flag that indicates whether the agent should be created
073         */
074        @XmlAttribute(required = false)
075        private Boolean createConnector = Boolean.TRUE;
076        
077        /**
078         * A flag that indicates whether the platform mbean server should be used
079         */
080        @XmlAttribute(required = false)
081        private Boolean usePlatformMBeanServer = Boolean.TRUE;
082    
083        public Integer getConnectorPort() {
084            return connectorPort;
085        }
086        
087        public void setConnectorPort(Integer value) {
088            connectorPort = value;
089        }
090    
091        public Integer getRegistryPort() {
092            return registryPort;
093        }
094        
095        public void setRegistryPort(Integer value) {
096            registryPort = value;
097        }
098        
099        public String getMbeanServerDefaultDomain() {
100            return mbeanServerDefaultDomain;
101        }
102        
103        public void setMbeanServerDefaultDomain(String value) {
104            mbeanServerDefaultDomain = value;
105        }
106        
107        public String getMbeanObjectDomainName() {
108            return mbeanObjectDomainName;
109        }
110        
111        public void setMbeanObjectDomainName(String value) {
112            mbeanObjectDomainName = value;
113        }
114        
115        public String getServiceUrlPath() {
116            return serviceUrlPath;
117        }
118        
119        public void setServiceUrlPath(String value) {
120            serviceUrlPath = value;
121        }
122    
123        public Boolean isCreateConnector() {
124            return createConnector;
125        }
126        
127        public void setCreateConnector(Boolean value) {
128            createConnector = value !=  null ? value : Boolean.FALSE;
129        }
130    
131        public Boolean isUsePlatformMBeanServer() {
132            return usePlatformMBeanServer;
133        }
134        
135        public void setUsePlatformMBeanServer(Boolean value) {
136            usePlatformMBeanServer = value !=  null ? value : Boolean.FALSE;
137        }
138    
139        public Boolean isDisabled() {
140            return disabled;
141        }
142        
143        public void setDisabled(Boolean value) {
144            disabled = value != null ? value : Boolean.FALSE;
145        }
146    }