Class Server.Duck

java.lang.Object
com.sun.enterprise.config.serverbeans.Server.Duck
Enclosing interface:
Server

public static class Server.Duck extends Object
  • Constructor Details

    • Duck

      public Duck()
  • Method Details

    • 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)
    • getApplicationRef

      public static ApplicationRef getApplicationRef(Server server, String appName)
    • getResourceRef

      public static ResourceRef getResourceRef(Server server, org.glassfish.api.naming.SimpleJndiName refName)
    • isResourceRefExists

      public static boolean isResourceRefExists(Server server, org.glassfish.api.naming.SimpleJndiName refName)
    • deleteResourceRef

      public static void deleteResourceRef(Server server, org.glassfish.api.naming.SimpleJndiName refName) throws org.jvnet.hk2.config.TransactionFailure
      Throws:
      org.jvnet.hk2.config.TransactionFailure
    • createResourceRef

      public static void createResourceRef(Server server, String enabled, org.glassfish.api.naming.SimpleJndiName refName) throws org.jvnet.hk2.config.TransactionFailure
      Throws:
      org.jvnet.hk2.config.TransactionFailure
    • 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: