You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2018/03/27 12:15:38 UTC

[incubator-servicecomb-java-chassis] 03/04: SCB-383 add support of create spectator GlobalRegistr for UT.

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

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git

commit 34ab156eaa0a3a1dddabb45eebe226ab123b90ec
Author: wujimin <wu...@huawei.com>
AuthorDate: Mon Mar 26 21:35:06 2018 +0800

    SCB-383 add support of create spectator GlobalRegistr for UT.
---
 foundations/foundation-test-scaffolding/pom.xml    |  4 ++++
 .../com/netflix/spectator/api/SpectatorUtils.java  | 23 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/foundations/foundation-test-scaffolding/pom.xml b/foundations/foundation-test-scaffolding/pom.xml
index cf5592f..abfe024 100644
--- a/foundations/foundation-test-scaffolding/pom.xml
+++ b/foundations/foundation-test-scaffolding/pom.xml
@@ -44,5 +44,9 @@
       <groupId>io.vertx</groupId>
       <artifactId>vertx-web</artifactId>
     </dependency>
+    <dependency>
+      <groupId>com.netflix.spectator</groupId>
+      <artifactId>spectator-reg-servo</artifactId>
+    </dependency>
   </dependencies>
 </project>
diff --git a/foundations/foundation-test-scaffolding/src/main/java/com/netflix/spectator/api/SpectatorUtils.java b/foundations/foundation-test-scaffolding/src/main/java/com/netflix/spectator/api/SpectatorUtils.java
new file mode 100644
index 0000000..7a2f785
--- /dev/null
+++ b/foundations/foundation-test-scaffolding/src/main/java/com/netflix/spectator/api/SpectatorUtils.java
@@ -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.
+ */
+package com.netflix.spectator.api;
+
+public class SpectatorUtils {
+  public static CompositeRegistry createCompositeRegistry(Clock clock) {
+    return new CompositeRegistry(clock);
+  }
+}

-- 
To stop receiving notification emails like this one, please contact
liubao@apache.org.