com.sun.enterprise.admin.cli.remote
Class DASUtils

java.lang.Object
  extended by com.sun.enterprise.admin.cli.remote.DASUtils

public class DASUtils
extends java.lang.Object

Domain Admin Server utility method.


Nested Class Summary
static class DASUtils.Error
           
 
Field Summary
private static java.util.logging.Logger logger
           
 
Constructor Summary
private DASUtils()
           
 
Method Summary
static boolean pingDASQuietly(ProgramOptions programOpts, Environment env)
          See if DAS is alive.
static DASUtils.Error pingDASWithAuth(ProgramOptions programOpts, Environment env)
          See if DAS is alive, but insist that athentication is correct.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final java.util.logging.Logger logger
Constructor Detail

DASUtils

private DASUtils()
Method Detail

pingDASQuietly

public static boolean pingDASQuietly(ProgramOptions programOpts,
                                     Environment env)
See if DAS is alive. Do not print out the results of the version command from the server.

Returns:
true if DAS can be reached and can handle commands, otherwise false.

pingDASWithAuth

public static DASUtils.Error pingDASWithAuth(ProgramOptions programOpts,
                                             Environment env)
                                      throws CommandException
See if DAS is alive, but insist that athentication is correct. Do not print out the results of the version command from the server.

Returns:
Error code indicating status
Throws:
CommandException


Copyright © 2012 GlassFish Community. All Rights Reserved.