org.apache.curator.ensemble.exhibitor
Class Exhibitors

java.lang.Object
  extended by org.apache.curator.ensemble.exhibitor.Exhibitors

public class Exhibitors
extends Object

POJO for specifying the cluster of Exhibitor instances


Nested Class Summary
static interface Exhibitors.BackupConnectionStringProvider
           
 
Constructor Summary
Exhibitors(Collection<String> hostnames, int restPort, Exhibitors.BackupConnectionStringProvider backupConnectionStringProvider)
           
 
Method Summary
 String getBackupConnectionString()
           
 Collection<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(Collection<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 Collection<String> getHostnames()

getRestPort

public int getRestPort()

getBackupConnectionString

public String getBackupConnectionString()
                                 throws Exception
Throws:
Exception


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.