You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ud...@apache.org on 2020/05/06 21:51:24 UTC

[geode] branch feature/GEODE-8067 updated: GEODE-8041 - Create ManagementService interface. (#5062)

This is an automated email from the ASF dual-hosted git repository.

udo pushed a commit to branch feature/GEODE-8067
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/feature/GEODE-8067 by this push:
     new 353192e  GEODE-8041 - Create ManagementService interface. (#5062)
353192e is described below

commit 353192ee8600a4ee94c661d4ac22fd2c8bf34702
Author: Patrick Johnson <pj...@pivotal.io>
AuthorDate: Wed May 6 14:50:06 2020 -0700

    GEODE-8041 - Create ManagementService interface. (#5062)
---
 geode-common-services/build.gradle                 |  2 ++
 .../services/management/ManagementService.java     | 39 ++++++++++++++++++++++
 .../src/test/resources/expected-pom.xml            |  5 +++
 3 files changed, 46 insertions(+)

diff --git a/geode-common-services/build.gradle b/geode-common-services/build.gradle
index 3a1b300..a17d1b0 100644
--- a/geode-common-services/build.gradle
+++ b/geode-common-services/build.gradle
@@ -26,4 +26,6 @@ repositories {
 
 dependencies {
     compile(project(':geode-common'))
+
+    compile(project(':geode-core'))
 }
diff --git a/geode-common-services/src/main/java/org/apache/geode/services/management/ManagementService.java b/geode-common-services/src/main/java/org/apache/geode/services/management/ManagementService.java
new file mode 100644
index 0000000..3e9ca47
--- /dev/null
+++ b/geode-common-services/src/main/java/org/apache/geode/services/management/ManagementService.java
@@ -0,0 +1,39 @@
+/*
+ * 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.geode.services.management;
+
+import java.util.Properties;
+
+import org.apache.geode.annotations.Experimental;
+import org.apache.geode.cache.Cache;
+
+/**
+ * Entry point for creating a cache and bootstrapping Geode using the BootstrappingService
+ *
+ * @since Geode 1.13.0
+ */
+@Experimental
+public interface ManagementService {
+
+  /**
+   * Creates a Geode Cache given some configuration.
+   *
+   * @param properties system properties to use when creating the Cache.
+   *
+   * @throws Exception is Cache cannot be created.
+   */
+  Cache createCache(Properties properties) throws Exception;
+}
diff --git a/geode-common-services/src/test/resources/expected-pom.xml b/geode-common-services/src/test/resources/expected-pom.xml
index 2393099..e36a19e 100644
--- a/geode-common-services/src/test/resources/expected-pom.xml
+++ b/geode-common-services/src/test/resources/expected-pom.xml
@@ -40,5 +40,10 @@
             <artifactId>geode-common</artifactId>
             <scope>compile</scope>
         </dependency>
+        <dependency>
+            <groupId>org.apache.geode</groupId>
+            <artifactId>geode-core</artifactId>
+            <scope>compile</scope>
+        </dependency>
     </dependencies>
 </project>