public class DisruptionController extends Object implements AutoCloseable
| Constructor and Description |
|---|
DisruptionController(Executor executor,
InstanceId instanceId,
Topology topology) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map<ServerSymbolicName,Integer> |
getProxyTsaPorts() |
ClientToServerDisruptor |
newClientToServerDisruptor()
Create client to server disruptor for controlling traffic between
client like DatasetManager & CacheManager and servers.
|
ServerToServerDisruptor |
newServerToServerDisruptor(SplitCluster... splitClusters)
Create disruptor to control traffic between set of servers specified
(ex: [Server1] <-> [Server2,Server3].
|
ServerToServerDisruptor |
newServerToServerDisruptor(TerracottaServer... servers)
Create disruptor to control traffic between all servers specified.
|
Map<ServerSymbolicName,Integer> |
updateTsaPortsWithProxy(Topology topology,
PortAllocator portAllocator) |
public DisruptionController(Executor executor, InstanceId instanceId, Topology topology)
public ServerToServerDisruptor newServerToServerDisruptor(TerracottaServer... servers)
servers - to be disruptedServerToServerDisruptorpublic ServerToServerDisruptor newServerToServerDisruptor(SplitCluster... splitClusters)
splitClusters - SplitClusterServerToServerDisruptorpublic ClientToServerDisruptor newClientToServerDisruptor()
ClientToServerDisruptor.uri()ClientToServerDisruptorpublic void close()
close in interface AutoCloseablepublic Map<ServerSymbolicName,Integer> updateTsaPortsWithProxy(Topology topology, PortAllocator portAllocator)
public Map<ServerSymbolicName,Integer> getProxyTsaPorts()
Copyright © 2023. All rights reserved.