Class DefaultClusterInfo

    • Constructor Detail

      • DefaultClusterInfo

        public DefaultClusterInfo​(JsonObject raw)
    • Method Detail

      • raw

        public JsonObject raw()
        Description copied from interface: ClusterInfo
        Provides raw access to the full JSON information from the server.
        Specified by:
        raw in interface ClusterInfo
        Returns:
        the raw JSON cluster info.
      • getMinVersion

        public Version getMinVersion()
        Description copied from interface: ClusterInfo
        Returns the smallest node version (thus oldest version) in the cluster from which this ClusterInfo was taken. If list of version cannot be obtained then this returns Version.NO_VERSION.
        Specified by:
        getMinVersion in interface ClusterInfo
        Returns:
        the smallest (oldest) server version in the cluster.
      • getAllVersions

        public List<Version> getAllVersions()
        Description copied from interface: ClusterInfo
        Returns the list of Version obtained from the cluster from which this ClusterInfo was obtained. In case the versions cannot be obtained, an empty list is returned.
        Specified by:
        getAllVersions in interface ClusterInfo
        Returns:
        the list of nodes versions, or an empty list in case of errors.