Author: ghenzler
Date: Thu Jan  3 15:38:26 2019
New Revision: 1850243

URL: http://svn.apache.org/viewvc?rev=1850243&view=rev
Log:
FELIX-6004 Component property type annotations for health checks

Added:
    felix/trunk/healthcheck/annotation/
    felix/trunk/healthcheck/annotation/pom.xml   (with props)
    felix/trunk/healthcheck/annotation/src/
    felix/trunk/healthcheck/annotation/src/main/
    felix/trunk/healthcheck/annotation/src/main/java/
    felix/trunk/healthcheck/annotation/src/main/java/org/
    felix/trunk/healthcheck/annotation/src/main/java/org/apache/
    felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/
    felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/
    
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/
    
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/Async.java
   (with props)
    
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckMBean.java
   (with props)
    
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckService.java
   (with props)
    
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/ResultTTL.java
   (with props)
    
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/StickyWarnings.java
   (with props)
    
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/package-info.java
   (with props)

Added: felix/trunk/healthcheck/annotation/pom.xml
URL: 
http://svn.apache.org/viewvc/felix/trunk/healthcheck/annotation/pom.xml?rev=1850243&view=auto
==============================================================================
--- felix/trunk/healthcheck/annotation/pom.xml (added)
+++ felix/trunk/healthcheck/annotation/pom.xml Thu Jan  3 15:38:26 2019
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>felix-parent</artifactId>
+        <version>6</version>
+        <relativePath/>
+    </parent>
+
+    <artifactId>org.apache.felix.healthcheck.annotation</artifactId>
+    <version>2.0.0-SNAPSHOT</version>
+
+    <name>Apache Felix Health Check Annotations</name>
+    <inceptionYear>2018</inceptionYear>
+
+    <description>
+        The Felix Health Check Annotations
+    </description>
+
+    <scm>
+        
<connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/healthcheck/annotation</connection>
+        
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/healthcheck/annotation</developerConnection>
+        <url>http://svn.apache.org/viewvc/felix/trunk/http/annotation/</url>
+    </scm>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>osgi.core</artifactId>
+            <version>7.0.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>osgi.cmpn</artifactId>
+            <version>7.0.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>osgi.annotation</artifactId>
+            <version>7.0.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <version>1.7.6</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+</project>
\ No newline at end of file

Propchange: felix/trunk/healthcheck/annotation/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/Async.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/Async.java?rev=1850243&view=auto
==============================================================================
--- 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/Async.java
 (added)
+++ 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/Async.java
 Thu Jan  3 15:38:26 2019
@@ -0,0 +1,31 @@
+/*
+ * 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 SF 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.felix.hc.annotation;
+
+import org.osgi.service.component.annotations.ComponentPropertyType;
+
+@ComponentPropertyType
+public @interface Async {
+
+    public static final String PREFIX_ = "hc.async.";
+
+    String cronExpression() default "";
+
+    long intervalInSec() default -1;
+
+}
\ No newline at end of file

Propchange: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/Async.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckMBean.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckMBean.java?rev=1850243&view=auto
==============================================================================
--- 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckMBean.java
 (added)
+++ 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckMBean.java
 Thu Jan  3 15:38:26 2019
@@ -0,0 +1,29 @@
+/*
+ * 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 SF 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.felix.hc.annotation;
+
+import org.osgi.service.component.annotations.ComponentPropertyType;
+
+@ComponentPropertyType
+public @interface HealthCheckMBean {
+
+    public static final String PREFIX_ = "hc.mbean.";
+
+    String name();
+
+}
\ No newline at end of file

Propchange: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckMBean.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckService.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckService.java?rev=1850243&view=auto
==============================================================================
--- 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckService.java
 (added)
+++ 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckService.java
 Thu Jan  3 15:38:26 2019
@@ -0,0 +1,31 @@
+/*
+ * 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 SF 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.felix.hc.annotation;
+
+import org.osgi.service.component.annotations.ComponentPropertyType;
+
+@ComponentPropertyType
+public @interface HealthCheckService {
+
+    public static final String PREFIX_ = "hc.";
+
+    String name() default "";
+
+    String[] tags() default {};
+
+}
\ No newline at end of file

Propchange: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/HealthCheckService.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/ResultTTL.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/ResultTTL.java?rev=1850243&view=auto
==============================================================================
--- 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/ResultTTL.java
 (added)
+++ 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/ResultTTL.java
 Thu Jan  3 15:38:26 2019
@@ -0,0 +1,29 @@
+/*
+ * 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 SF 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.felix.hc.annotation;
+
+import org.osgi.service.component.annotations.ComponentPropertyType;
+
+@ComponentPropertyType
+public @interface ResultTTL {
+
+    public static final String PREFIX_ = "hc.";
+
+    long resultCacheTtlInMs();
+
+}
\ No newline at end of file

Propchange: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/ResultTTL.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/StickyWarnings.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/StickyWarnings.java?rev=1850243&view=auto
==============================================================================
--- 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/StickyWarnings.java
 (added)
+++ 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/StickyWarnings.java
 Thu Jan  3 15:38:26 2019
@@ -0,0 +1,29 @@
+/*
+ * 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 SF 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.felix.hc.annotation;
+
+import org.osgi.service.component.annotations.ComponentPropertyType;
+
+@ComponentPropertyType
+public @interface StickyWarnings {
+
+    public static final String PREFIX_ = "hc.";
+
+    long warningsStickForMinutes();
+
+}
\ No newline at end of file

Propchange: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/StickyWarnings.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/package-info.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/package-info.java?rev=1850243&view=auto
==============================================================================
--- 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/package-info.java
 (added)
+++ 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/package-info.java
 Thu Jan  3 15:38:26 2019
@@ -0,0 +1,23 @@
+/*
+ * 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.
+ */
+
+@Version("2.0.0")
+package org.apache.felix.hc.annotation;
+
+import org.osgi.annotation.versioning.Version;

Propchange: 
felix/trunk/healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/package-info.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain


Reply via email to