public class Geo
extends java.lang.Object
Constructor and Description |
---|
Geo() |
Modifier and Type | Method and Description |
---|---|
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) |
public static boolean isLocal(java.lang.String path)
path
- to be checked whether it's comes form local ZooKeeper server.true
if local, false
otherwise.public static boolean isOwnPublication(java.lang.String childPath)
childPath
- Child path to check whether is published by this very
ZooDiscovery instance.public static java.net.URI getLocation()
public static java.lang.String getHost()
public static java.lang.String getNodeHost()