You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ab...@apache.org on 2016/12/02 01:43:49 UTC

[06/31] incubator-geode git commit: Removing unused ClientHelper test class

Removing unused ClientHelper test class


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/ef7bb321
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/ef7bb321
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/ef7bb321

Branch: refs/heads/feature/GEODE-2156
Commit: ef7bb3216e700a9b0ddd9d0b8dc174ed6602564d
Parents: be1d5e3
Author: Dan Smith <up...@apache.org>
Authored: Thu Nov 17 10:55:16 2016 -0800
Committer: Dan Smith <up...@apache.org>
Committed: Wed Nov 30 11:54:39 2016 -0800

----------------------------------------------------------------------
 .../org/apache/geode/cache/ClientHelper.java    | 68 --------------------
 1 file changed, 68 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/ef7bb321/geode-core/src/test/java/org/apache/geode/cache/ClientHelper.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/org/apache/geode/cache/ClientHelper.java b/geode-core/src/test/java/org/apache/geode/cache/ClientHelper.java
deleted file mode 100644
index 66ce495..0000000
--- a/geode-core/src/test/java/org/apache/geode/cache/ClientHelper.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * 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.cache;
-
-import java.io.File;
-import java.util.HashSet;
-import java.util.Set;
-
-import org.apache.geode.cache.DynamicRegionFactory.Config;
-import org.apache.geode.cache.client.internal.PoolImpl;
-import org.apache.geode.cache.client.internal.ServerProxy;
-import org.apache.geode.internal.cache.LocalRegion;
-
-/**
- * Provides methods for getting at the bridge client and connection proxies used by a region.
- * 
- *
- */
-public class ClientHelper {
-
-  public static PoolImpl getPool(Region region) {
-    ServerProxy proxy = ((LocalRegion) region).getServerProxy();
-    if (proxy == null) {
-      return null;
-    } else {
-      return (PoolImpl) proxy.getPool();
-    }
-  }
-
-  public static Set getActiveServers(Region region) {
-    return new HashSet(getPool(region).getCurrentServers());
-  }
-
-  // public static Set getDeadServers(Region region) {
-  // }
-
-  private ClientHelper() {
-
-  }
-
-  public static int getRetryInterval(Region region) {
-    return (int) (getPool(region).getPingInterval());
-  }
-
-  /**
-   * @param region
-   */
-  public static void release(Region region) {
-
-    PoolImpl pool = getPool(region);
-    if (pool != null) {
-      pool.releaseThreadLocalConnection();
-    }
-  }
-
-}