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: 41580 $ 032 */ 033 @XmlRootElement(name = "jmxAgent") 034 @XmlAccessorType(XmlAccessType.FIELD) 035 public class CamelJMXAgentType extends IdentifiedType { 036 @XmlAttribute(required = false) 037 private Integer connectorPort; 038 @XmlAttribute(required = false) 039 private String jmxDomainName; 040 @XmlAttribute(required = false) 041 private String connectorPath; 042 @XmlAttribute(required = false) 043 private Boolean createConnector; 044 @XmlAttribute(required = false) 045 private Boolean usePlatformMBeanServer; 046 047 public void setConnectorPort(Integer port) { 048 connectorPort = port; 049 } 050 051 public Integer getConnectorPort() { 052 return connectorPort; 053 } 054 055 public void setJmxDomainName(String name) { 056 jmxDomainName = name; 057 } 058 059 public String getJmxDomainName() { 060 return jmxDomainName; 061 } 062 063 public void setConnectorPath(String path) { 064 connectorPath = path; 065 } 066 067 public String getConnectorPath() { 068 return connectorPath; 069 } 070 071 public void setCreateConnector(Boolean flag) { 072 createConnector = flag; 073 } 074 075 public Boolean isCreateConnector() { 076 return createConnector; 077 } 078 079 public void setUsePlatformMBeanServer(Boolean flag) { 080 usePlatformMBeanServer = flag; 081 } 082 083 public Boolean isUsePlatformMBeanServer() { 084 return usePlatformMBeanServer; 085 } 086 }