|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.curator.ensemble.exhibitor.Exhibitors
public class Exhibitors
POJO for specifying the cluster of Exhibitor instances
| Nested Class Summary | |
|---|---|
static interface |
Exhibitors.BackupConnectionStringProvider
|
| Constructor Summary | |
|---|---|
Exhibitors(java.util.Collection<java.lang.String> hostnames,
int restPort,
Exhibitors.BackupConnectionStringProvider backupConnectionStringProvider)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getBackupConnectionString()
|
java.util.Collection<java.lang.String> |
getHostnames()
|
int |
getRestPort()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Exhibitors(java.util.Collection<java.lang.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 backup| Method Detail |
|---|
public java.util.Collection<java.lang.String> getHostnames()
public int getRestPort()
public java.lang.String getBackupConnectionString()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||