public class Exhibitors extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Exhibitors.BackupConnectionStringProvider |
| Constructor and Description |
|---|
Exhibitors(Collection<String> hostnames,
int restPort,
Exhibitors.BackupConnectionStringProvider backupConnectionStringProvider) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBackupConnectionString() |
Collection<String> |
getHostnames() |
int |
getRestPort() |
public Exhibitors(Collection<String> hostnames, int restPort, Exhibitors.BackupConnectionStringProvider backupConnectionStringProvider)
hostnames - set of Exhibitor instance host namesrestPort - the REST port used to connect to ExhibitorbackupConnectionStringProvider - in case an Exhibitor instance can't be contacted, returns the fixed
connection string to use as a backuppublic Collection<String> getHostnames()
public int getRestPort()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.