Examples of MSiteConfig


Examples of com.webobjects.monitor._private.MSiteConfig

    /********** Controlling Instances **********/
    // Returns null if success
    @Override
    public String startInstance(MInstance anInstance) {
        MSiteConfig aConfig = theApplication.siteConfig();
        if (anInstance == null)
            return "Attempt to start null instance on " + _hostName;
        if (anInstance.host() != aConfig.localHost())
            return anInstance.displayName() + " does not exist on " + _hostName + "; START instance failed";
        if (anInstance.isRunning_W())
            //            return _hostName + ": " + anInstance.displayName() + " is already running";
            return null;
        if (anInstance.state == MObject.STARTING)
View Full Code Here

Examples of com.webobjects.monitor._private.MSiteConfig

        NSDictionary xmlDict = createInstanceRequestDictionary(null, "STATISTICS", anInstance);
        return sendInstanceRequest(anInstance, xmlDict);
    }

    protected void catchInstanceErrors(MInstance anInstance) throws MonitorException {
        MSiteConfig aConfig = theApplication.siteConfig();
        if (anInstance == null)
            throw new MonitorException("Attempt to command null instance on " + _hostName);
        if (anInstance.host() != aConfig.localHost())
            throw new MonitorException(anInstance.displayName() + " does not exist on " + _hostName + "; command failed");
        if (!anInstance.isRunning_W())
            throw new MonitorException(_hostName + ": " + anInstance.displayName() + " is not running");
    }
View Full Code Here

Examples of com.webobjects.monitor._private.MSiteConfig

    }

    @Override
    public void appendToResponse(WOResponse aResponse, WOContext aContext) {
        // Check to make sure they have logged in if it is required
        MSiteConfig aMonitorConfig = siteConfig();

        if ((aMonitorConfig == null) || (aMonitorConfig.isPasswordRequired())) {
            if (_isLoggedIn) {
                super.appendToResponse(aResponse, aContext);
            } else {
                if (aContext.page().getClass().getName().equals(Main.class.getName())) {
                    // needs to login on Main page.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.