Package com.sun.enterprise.admin.common

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


            ObjectNames.getServerInstanceObjectName(instanceId);
        final String kStatusMethodName = "getStatus";
        try
        {
        /* method that takes in no params */
            final ServerInstanceStatus status = (ServerInstanceStatus)
                invokeMBean(objName, kStatusMethodName, null, null);
            return ( status.isRunning() );
        }
        catch (Exception e)
        {
            sLogger.log(Level.CONFIG, "failure in invoking MBean", e);
            return false;
View Full Code Here


    }

    public ServerInstanceStatus getStatus() throws ControlException
    {
        int statusCode = getInstanceStatusCode();
        ServerInstanceStatus status = new ServerInstanceStatus(statusCode);
        //Bug# 4686443
        if (isDebug())
        {
            status.setDebug(true);
            try
            {
                status.setDebugPort(getDebugPort());
            }
            catch (Exception e)
            {
                sLogger.finest
                ("Problem with getting port:ManagedServerInstance:getStatus");
                throw new ControlException(e.getLocalizedMessage());
            }
        }
        sLogger.exiting(getClass().getName(), "getStatus",
                        status.getStatusString()); //noi18n
        return ( status );
    }
View Full Code Here

TOP

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

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.