public class CuratorFabricRegistryImpl extends Object implements FabricRegistry
FabricRegistry using Apache Curator library.| Constructor and Description |
|---|
CuratorFabricRegistryImpl(String zookeeperUrl,
String zookeeperPassword,
long timeoutSeconds,
String containerName) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connect to registry.
|
void |
disconnect()
Disconnect from registry closing any resources.
|
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.Copyright © 2014. All rights reserved.