public class DynamicConfigManager extends Object implements ConfigurationManager
| Modifier and Type | Method and Description |
|---|---|
void |
addServer(int stripeIndex,
TerracottaServer newServer) |
void |
addStripe(TerracottaServer... newServers) |
protected int |
computeNodePortCount() |
void |
createDisruptionLinks(TerracottaServer terracottaServer,
DisruptionProvider disruptionProvider,
Map<ServerSymbolicName,Disruptor> disruptionLinks,
Map<ServerSymbolicName,Integer> proxiedPorts,
PortAllocator portAllocator) |
static DynamicConfigManager |
dynamicCluster(Stripe... stripes) |
TerracottaServer |
getServer(int stripeIndex,
int serverIndex) |
TerracottaServer |
getServer(UUID serverId) |
List<TerracottaServer> |
getServers() |
Collection<String> |
getServersHostnames() |
int |
getStripeIndexOf(UUID serverId) |
List<List<TerracottaServer>> |
getStripes() |
void |
init(PortAllocator portAllocator) |
void |
removeServer(int stripeIndex,
int serverIndex) |
void |
removeStripe(int stripeIndex) |
public static DynamicConfigManager dynamicCluster(Stripe... stripes)
public int getStripeIndexOf(UUID serverId)
getStripeIndexOf in interface ConfigurationManagerpublic void addStripe(TerracottaServer... newServers)
addStripe in interface ConfigurationManagerpublic void removeStripe(int stripeIndex)
removeStripe in interface ConfigurationManagerpublic List<List<TerracottaServer>> getStripes()
getStripes in interface ConfigurationManagerpublic void addServer(int stripeIndex,
TerracottaServer newServer)
addServer in interface ConfigurationManagerpublic void removeServer(int stripeIndex,
int serverIndex)
removeServer in interface ConfigurationManagerpublic TerracottaServer getServer(int stripeIndex, int serverIndex)
getServer in interface ConfigurationManagerpublic TerracottaServer getServer(UUID serverId)
getServer in interface ConfigurationManagerpublic List<TerracottaServer> getServers()
getServers in interface ConfigurationManagerpublic Collection<String> getServersHostnames()
getServersHostnames in interface ConfigurationManagerpublic void init(PortAllocator portAllocator)
init in interface ConfigurationManagerprotected int computeNodePortCount()
public void createDisruptionLinks(TerracottaServer terracottaServer, DisruptionProvider disruptionProvider, Map<ServerSymbolicName,Disruptor> disruptionLinks, Map<ServerSymbolicName,Integer> proxiedPorts, PortAllocator portAllocator)
createDisruptionLinks in interface ConfigurationManagerCopyright © 2022. All rights reserved.