public class LinkedInFabricRegistryImpl extends Object implements FabricRegistry
FabricRegistry using LinkedIn Zookeeper library.| Constructor and Description |
|---|
LinkedInFabricRegistryImpl(String zooKeeperUrl,
String zooKeeperPassword,
long timeout,
String containerName) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connect to registry.
|
void |
disconnect()
Disconnect from registry closing any resources.
|
Object |
getClient()
Can't return
IZKClient here as its dynamically loaded. |
String[] |
getContainerProfiles(String containerVersion)
Gets container profiles.
|
String |
getContainerVersion()
Gets container version.
|
static boolean |
isSupported() |
public static boolean isSupported()
public void connect()
throws Exception
FabricRegistryconnect in interface FabricRegistryException - on error.public void disconnect()
throws Exception
FabricRegistrydisconnect in interface FabricRegistryException - on errorpublic String getContainerVersion() throws Exception
FabricRegistrygetContainerVersion in interface FabricRegistryException - on error.public String[] getContainerProfiles(String containerVersion) throws Exception
FabricRegistrygetContainerProfiles in interface FabricRegistrycontainerVersion - container's current version.Exception - on error.public Object getClient()
IZKClient here as its dynamically loaded.Copyright © 2014. All rights reserved.