Class PlatformVersionChecker


  • @Component
    public class PlatformVersionChecker
    extends java.lang.Object
    Author:
    Matthieu Chaffotte, Baptiste Mesta, Emmanuel Duchastenier
    • Method Detail

      • verifyPlatformVersion

        public boolean verifyPlatformVersion()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getVersionFromOtherNodes

        protected java.util.Optional<java.lang.String> getVersionFromOtherNodes()
        Search for the first version found amongst other nodes.
        Returns:
        the first version encountered, if there are other nodes, or empty optional if there are no other nodes in the cluster, or throw exception if no version can be retrieved.
      • getErrorMessage

        public java.lang.String getErrorMessage()