com.netflix.curator.ensemble.exhibitor
Class Exhibitors

java.lang.Object
  extended by com.netflix.curator.ensemble.exhibitor.Exhibitors

public class Exhibitors
extends java.lang.Object

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

Exhibitors

public Exhibitors(java.util.Collection<java.lang.String> hostnames,
                  int restPort,
                  Exhibitors.BackupConnectionStringProvider backupConnectionStringProvider)
Parameters:
hostnames - set of Exhibitor instance host names
restPort - the REST port used to connect to Exhibitor
backupConnectionStringProvider - in case an Exhibitor instance can't be contacted, returns the fixed connection string to use as a backup
Method Detail

getHostnames

public java.util.Collection<java.lang.String> getHostnames()

getRestPort

public int getRestPort()

getBackupConnectionString

public java.lang.String getBackupConnectionString()
                                           throws java.lang.Exception
Throws:
java.lang.Exception