camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1153053 - in /camel/trunk/camel-core/src/main/java/org/apache/camel/management: ManagedAttribute.java ManagedOperation.java ManagedResource.java
Date Tue, 02 Aug 2011 07:27:27 GMT
Author: davsclaus
Date: Tue Aug  2 07:27:23 2011
New Revision: 1153053

URL: http://svn.apache.org/viewvc?rev=1153053&view=rev
Log:
CAMEL-4248: Introducing a set of Camel JMX annotations to be used for JMX management.

Added:
    camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedAttribute.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedOperation.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedResource.java

Added: camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedAttribute.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedAttribute.java?rev=1153053&view=auto
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedAttribute.java
(added)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedAttribute.java
Tue Aug  2 07:27:23 2011
@@ -0,0 +1,33 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.management;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * A method level annotation to mark the method as being a JMX attribute.
+ */
+@Target(ElementType.METHOD)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface ManagedAttribute {
+
+    String description() default "";
+
+}

Added: camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedOperation.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedOperation.java?rev=1153053&view=auto
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedOperation.java
(added)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedOperation.java
Tue Aug  2 07:27:23 2011
@@ -0,0 +1,33 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.management;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * A method level annotation to mark the method as being a JMX operation.
+ */
+@Target(ElementType.METHOD)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface ManagedOperation {
+
+    String description() default "";
+
+}

Added: camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedResource.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedResource.java?rev=1153053&view=auto
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedResource.java
(added)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/management/ManagedResource.java
Tue Aug  2 07:27:23 2011
@@ -0,0 +1,33 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.management;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * A class level annotation to mark the class as being managed in the JMX server.
+ */
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface ManagedResource {
+
+    String description() default "";
+
+}



Mime
View raw message