Class Exhibitors


  • public class Exhibitors
    extends java.lang.Object
    POJO for specifying the cluster of Exhibitor instances
    • 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