org.apache.curator.ensemble.exhibitor
Class Exhibitors
java.lang.Object
org.apache.curator.ensemble.exhibitor.Exhibitors
public class Exhibitors
- extends Object
POJO for specifying the cluster of Exhibitor instances
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Exhibitors
public Exhibitors(Collection<String> hostnames,
int restPort,
Exhibitors.BackupConnectionStringProvider backupConnectionStringProvider)
- Parameters:
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
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.