org.eclipse.ecf.provider.zookeeper.util
Class Geo

java.lang.Object
  extended by org.eclipse.ecf.provider.zookeeper.util.Geo

public class Geo
extends java.lang.Object


Constructor Summary
Geo()
           
 
Method Summary
static java.lang.String getHost()
           
static java.net.URI getLocation()
           
static java.lang.String getNodeHost()
           
static boolean isLocal(java.lang.String path)
           
static boolean isOwnPublication(java.lang.String childPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Geo

public Geo()
Method Detail

isLocal

public static boolean isLocal(java.lang.String path)
Parameters:
path - to be checked whether it's comes form local ZooKeeper server.
Returns:
true if local, false otherwise.

isOwnPublication

public static boolean isOwnPublication(java.lang.String childPath)
Parameters:
childPath - Child path to check whether is published by this very ZooDiscovery instance.
Returns:
true if published by this container, false otherwise.

getLocation

public static java.net.URI getLocation()

getHost

public static java.lang.String getHost()

getNodeHost

public static java.lang.String getNodeHost()