Search in sources :

Example 1 with LocationClientImpl

use of org.apache.bookkeeper.clients.impl.internal.LocationClientImpl in project bookkeeper by apache.

the class LocationClientTest method doSetup.

@Override
protected void doSetup() throws Exception {
    scheduler = OrderedScheduler.newSchedulerBuilder().name("location-client-test").numThreads(1).build();
    StorageClientSettings settings = StorageClientSettings.newBuilder().addEndpoints(cluster.getRpcEndpoints().toArray(new Endpoint[cluster.getRpcEndpoints().size()])).usePlaintext(true).build();
    client = new LocationClientImpl(settings, scheduler);
}
Also used : StorageClientSettings(org.apache.bookkeeper.clients.config.StorageClientSettings) Endpoint(org.apache.bookkeeper.stream.proto.common.Endpoint) LocationClientImpl(org.apache.bookkeeper.clients.impl.internal.LocationClientImpl)

Aggregations

StorageClientSettings (org.apache.bookkeeper.clients.config.StorageClientSettings)1 LocationClientImpl (org.apache.bookkeeper.clients.impl.internal.LocationClientImpl)1 Endpoint (org.apache.bookkeeper.stream.proto.common.Endpoint)1