Class Server.Duck

  • Enclosing interface:
    Server

    public static class Server.Duck
    extends Object
    • Constructor Detail

      • Duck

        public Duck()
    • Method Detail

      • isCluster

        public static boolean isCluster​(Server server)
      • isServer

        public static boolean isServer​(Server server)
      • isInstance

        public static boolean isInstance​(Server server)
      • isDas

        public static boolean isDas​(Server server)
      • getCluster

        public static Cluster getCluster​(Server server)
      • getReference

        public static String getReference​(Server server)
      • isResourceRefExists

        public static boolean isResourceRefExists​(Server server,
                                                  String refName)
      • getConfig

        public static Config getConfig​(Server server)
      • getAdminPort

        public static int getAdminPort​(Server server)
      • getAdminHost

        public static String getAdminHost​(Server server)
      • isRunning

        public static boolean isRunning​(Server server)
        this is NOT a reliable test. It just checks if ANYTHING has setup shop on the host and port. I wanted to run RemoteAdminCommand but that is (inexplicably) in admin/util -- and we would have a circular dependency
        Parameters:
        server -
        Returns: