Examples of instanceArray()


Examples of com.webobjects.monitor._private.MApplication.instanceArray()

            throw new DirectActionException("at least one application name needs to be specified for type app", 406);
        for (Enumeration enumeration = appNames.objectEnumerator(); enumeration.hasMoreElements();) {
            String s = (String) enumeration.nextElement();
            MApplication mapplication = siteConfig().applicationWithName(s);
            if (mapplication != null) {
              NSArray<MInstance> hostInstances = MInstance.HOST_NAME.in(hostNames).filtered(mapplication.instanceArray());
              instances.addObjectsFromArray(hostInstances);
            }
            else
                throw new DirectActionException("Unknown application " + s, 404);
        }
View Full Code Here

Examples of com.webobjects.monitor._private.MHost.instanceArray()

            NSLog.debug.appendln("_checkAutoRecover START");
        theApplication._lock.startReading();
        try {
            MHost theHost = theApplication.siteConfig().localHost();
            if (theHost != null) {
                NSArray instArray = theHost.instanceArray();
                int instArrayCount = instArray.count();

                for (int i=0; i<instArrayCount; i++) {
                    MInstance anInst = (MInstance) instArray.objectAtIndex(i);
View Full Code Here

Examples of com.webobjects.monitor._private.MHost.instanceArray()

        theApplication._lock.startReading();
        try {

            MHost theHost = theApplication.siteConfig().localHost();
            if (theHost != null) {
                final NSArray instArray = theHost.instanceArray();
                int instArrayCount = instArray.count();

                if (instArrayCount == 0) return;

                final NSTimestamp rightNow = new NSTimestamp(System.currentTimeMillis(), java.util.TimeZone.getDefault());
View Full Code Here

Examples of com.webobjects.monitor._private.MSiteConfig.instanceArray()

        for (Enumeration e = currentApplications.objectEnumerator(); e.hasMoreElements(); ) {
            aConfig.removeApplication_W((MApplication) e.nextElement());
        }

        // 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");
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.