Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSDictionary.valueForKey()


        // Look through the array of instances, and see if we need to add/remove any - configure the rest
        NSMutableArray currentInstances = new NSMutableArray(aConfig.instanceArray());
        if (instanceArray != null) {
            for (Enumeration e = instanceArray.objectEnumerator(); e.hasMoreElements(); ) {
                NSDictionary anInst = (NSDictionary) e.nextElement();
                String hostName = (String) anInst.valueForKey("hostName");
                Integer port = (Integer) anInst.valueForKey("port");
                MInstance anMInstance = aConfig.instanceWithHostnameAndPort(hostName, port);
                // if I can't find the instance, I might be updating the port - in that case, look under the oldport number.
                if (anMInstance == null) {
                    port = (Integer) anInst.valueForKey("oldport");
View Full Code Here


        NSMutableArray currentInstances = new NSMutableArray(aConfig.instanceArray());
        if (instanceArray != null) {
            for (Enumeration e = instanceArray.objectEnumerator(); e.hasMoreElements(); ) {
                NSDictionary anInst = (NSDictionary) e.nextElement();
                String hostName = (String) anInst.valueForKey("hostName");
                Integer port = (Integer) anInst.valueForKey("port");
                MInstance anMInstance = aConfig.instanceWithHostnameAndPort(hostName, port);
                // if I can't find the instance, I might be updating the port - in that case, look under the oldport number.
                if (anMInstance == null) {
                    port = (Integer) anInst.valueForKey("oldport");
                    anMInstance = aConfig.instanceWithHostnameAndPort(hostName, port);
View Full Code Here

                String hostName = (String) anInst.valueForKey("hostName");
                Integer port = (Integer) anInst.valueForKey("port");
                MInstance anMInstance = aConfig.instanceWithHostnameAndPort(hostName, port);
                // if I can't find the instance, I might be updating the port - in that case, look under the oldport number.
                if (anMInstance == null) {
                    port = (Integer) anInst.valueForKey("oldport");
                    anMInstance = aConfig.instanceWithHostnameAndPort(hostName, port);
                }
                if (anMInstance == null) {
                    // we have to add it
                    aConfig.addInstance_W(new MInstance(anInst, aConfig));
View Full Code Here

    public void _takePortFromApplication() {
        NSDictionary appValues = _application.values;
        MHost aHost = _host;

        Integer appPort = (Integer) appValues.valueForKey("startingPort");
        if ((port() == null) || ((port() != null) && (port().intValue() < appPort.intValue())))
            setPort(aHost.nextAvailablePort(appPort));
    }

    public void _takePathFromApplication() {
View Full Code Here

    public void _takePathFromApplication() {
        NSDictionary appValues = _application.values;
        MHost aHost = _host;

        if (aHost.osType().equals("UNIX")) {
            values.takeValueForKey(appValues.valueForKey("unixPath"), "path");
        } else if (aHost.osType().equals("WINDOWS")) {
            values.takeValueForKey(appValues.valueForKey("winPath"), "path");
        } else if (aHost.osType().equals("MACOSX")) {
            values.takeValueForKey(appValues.valueForKey("macPath"), "path");
        }
View Full Code Here

        MHost aHost = _host;

        if (aHost.osType().equals("UNIX")) {
            values.takeValueForKey(appValues.valueForKey("unixPath"), "path");
        } else if (aHost.osType().equals("WINDOWS")) {
            values.takeValueForKey(appValues.valueForKey("winPath"), "path");
        } else if (aHost.osType().equals("MACOSX")) {
            values.takeValueForKey(appValues.valueForKey("macPath"), "path");
        }
    }
View Full Code Here

        if (aHost.osType().equals("UNIX")) {
            values.takeValueForKey(appValues.valueForKey("unixPath"), "path");
        } else if (aHost.osType().equals("WINDOWS")) {
            values.takeValueForKey(appValues.valueForKey("winPath"), "path");
        } else if (aHost.osType().equals("MACOSX")) {
            values.takeValueForKey(appValues.valueForKey("macPath"), "path");
        }
    }

    public void _takeOutputPathFromApplication() {
        NSDictionary appValues = _application.values;
View Full Code Here

    public void _takeOutputPathFromApplication() {
        NSDictionary appValues = _application.values;
        MHost aHost = _host;

        if (aHost.osType().equals("UNIX")) {
            values.takeValueForKey(generateOutputPath((String) appValues.valueForKey("unixOutputPath")), "outputPath");
        } else if (aHost.osType().equals("WINDOWS")) {
            values.takeValueForKey(generateOutputPath((String) appValues.valueForKey("winOutputPath")), "outputPath");
        } else if (aHost.osType().equals("MACOSX")) {
            values.takeValueForKey(generateOutputPath((String) appValues.valueForKey("macOutputPath")), "outputPath");
        }
View Full Code Here

        MHost aHost = _host;

        if (aHost.osType().equals("UNIX")) {
            values.takeValueForKey(generateOutputPath((String) appValues.valueForKey("unixOutputPath")), "outputPath");
        } else if (aHost.osType().equals("WINDOWS")) {
            values.takeValueForKey(generateOutputPath((String) appValues.valueForKey("winOutputPath")), "outputPath");
        } else if (aHost.osType().equals("MACOSX")) {
            values.takeValueForKey(generateOutputPath((String) appValues.valueForKey("macOutputPath")), "outputPath");
        }
    }
View Full Code Here

        if (aHost.osType().equals("UNIX")) {
            values.takeValueForKey(generateOutputPath((String) appValues.valueForKey("unixOutputPath")), "outputPath");
        } else if (aHost.osType().equals("WINDOWS")) {
            values.takeValueForKey(generateOutputPath((String) appValues.valueForKey("winOutputPath")), "outputPath");
        } else if (aHost.osType().equals("MACOSX")) {
            values.takeValueForKey(generateOutputPath((String) appValues.valueForKey("macOutputPath")), "outputPath");
        }
    }

    public void _takeValueFromApplication(String valueName) {
        NSDictionary appValues = _application.values;
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.