Package | Description |
---|---|
org.apache.curator.test |
Modifier and Type | Method and Description |
---|---|
InstanceSpec |
TestingCluster.findConnectionInstance(org.apache.zookeeper.ZooKeeper client)
Given a ZooKeeper instance, returns which server it is connected to
|
InstanceSpec |
TestingZooKeeperServer.getInstanceSpec() |
InstanceSpec |
QuorumConfigBuilder.getInstanceSpec(int index) |
static InstanceSpec |
InstanceSpec.newInstanceSpec() |
Modifier and Type | Method and Description |
---|---|
Collection<InstanceSpec> |
TestingCluster.getInstances()
Returns the set of servers in the ensemble
|
List<InstanceSpec> |
QuorumConfigBuilder.getInstanceSpecs() |
Collection<InstanceSpec> |
TestingZooKeeperServer.getInstanceSpecs() |
Modifier and Type | Method and Description |
---|---|
boolean |
TestingCluster.killServer(InstanceSpec instance)
Kills the given server.
|
boolean |
TestingCluster.restartServer(InstanceSpec instance)
Restart the given server of the cluster
|
Constructor and Description |
---|
QuorumConfigBuilder(InstanceSpec... specs) |
TestingCluster(InstanceSpec... specs)
Creates an ensemble using the given server specs
|
TestingServer(InstanceSpec spec,
boolean start)
Create the server using the given port
|
Constructor and Description |
---|
QuorumConfigBuilder(Collection<InstanceSpec> specs) |
TestingCluster(Collection<InstanceSpec> specs)
Creates an ensemble using the given server specs
|
TestingCluster(Map<InstanceSpec,Collection<InstanceSpec>> specs)
Creates an ensemble using the given server specs
|
TestingCluster(Map<InstanceSpec,Collection<InstanceSpec>> specs)
Creates an ensemble using the given server specs
|
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.