Package com.sun.enterprise.admin.common

Examples of com.sun.enterprise.admin.common.Status


     */
    private boolean isServerRunning(String server)
    {
        try {
            ServerRuntimeMBean serverMBean = InstanceProxy.getInstanceProxy(server);
                Status status = serverMBean.getRuntimeStatus().getStatus();
                if (status.getStatusCode() == Status.kInstanceRunningCode) {
                    return true;
                }
        } catch(Exception e) {
    //return false; //FIXME: what else to do??
        }
View Full Code Here


            final Server server = target.getServers()[0];
            boolean isReachable = true;

            try {               
                ServerRuntimeMBean serverMBean = InstanceProxy.getInstanceProxy(serverName);
                Status status = serverMBean.getRuntimeStatus().getStatus();
            } catch (Exception ex) {
                if (InstanceProxy.isUnreachable(ex)) {
                    isReachable = false;
                }
            }
View Full Code Here

     * This method will call a utility method instead of coding the logic here. TBD
     */
    private boolean isServerRunning(String server) throws InstanceException {
  try {
            ServerRuntimeMBean serverMBean = InstanceProxy.getInstanceProxy(server);
                Status status = serverMBean.getRuntimeStatus().getStatus();
                if (status.getStatusCode() == Status.kInstanceRunningCode) {
                    return true;
                }
  } catch(Exception e) {
    //return false; //FIXME: what else to do??
  }
View Full Code Here

     * This method will call a utility method instead of coding the logic here. TBD
     */
    private boolean isServerDead(String server) throws InstanceException {
  try {
           ServerRuntimeMBean serverMBean = InstanceProxy.getInstanceProxy(server);
                Status status = serverMBean.getRuntimeStatus().getStatus();
                if (status.getStatusCode()  == Status.kInstanceNotRunningCode) {
                    return true;
                }
  } catch(Exception e) {
    return true; //is this true?? //FIXME
  }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.common.Status

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.