Package java.util

Examples of java.util.Hashtable.keySet()


                }
            }
        }

        Hashtable cl = new Hashtable(parents);
        Iterator keys = cl.keySet().iterator();

        // Build hierarchy
        while (keys.hasNext())
        {
            String k = (String) keys.next();
View Full Code Here


        int beanCounter = 0;
        for (Iterator iter = names.iterator(); iter.hasNext();) {
            ObjectName name = (ObjectName) iter.next();
            Hashtable keyMap = name.getKeyPropertyList();
            propertyNamesPerMBeanArray[beanCounter++] = keyMap;
            propertyNames.addAll(keyMap.keySet());
        }

        writer.println("<table>");
        writer.println("<tr>");
        writer.print("<th>Domain</th>");
View Full Code Here

    protected void fillInContext( final Context object )
        throws NamingException
    {
        final Hashtable environment = getRawEnvironment();
        final Iterator keys = environment.keySet().iterator();

        while( keys.hasNext() )
        {
            final String key = (String)keys.next();
            final Object value = environment.get( key );
View Full Code Here

              elements.put(CIRCULARITY_TOKEN, Thread.currentThread());
          }

          try {                 // run through the elements to see if any are
                                // also expected to change, and do those first.
              for (Iterator i = elements.keySet().iterator(); i.hasNext();) {
                  String name = (String) i.next();
                  if (name == CIRCULARITY_TOKEN) continue;
                  DataListener activeListener =
                      (DataListener) activeListeners.get(name);
                  if (activeListener != null)
View Full Code Here

                }
            }
        }

        // delete remaining directories on target
        for (Iterator itDelete = targetSubdirMap.keySet().iterator(); itDelete.hasNext();) {
            DirectoryInfo directoryInfo = (DirectoryInfo) targetSubdirMap.get(itDelete.next());

            dirSyncManager.removeDirectory(targetDirName, directoryInfo.getName());
        }
View Full Code Here

        if (targetFileMap.size() > 0) {
            StringBuffer subdirectory = new StringBuffer();
            getPath(null, subdirectory);

            // delete remaining files on target
            for (Iterator itDelete = targetFileMap.keySet().iterator(); itDelete.hasNext();) {
                FileInfo fileInfo = (FileInfo) targetFileMap.get(itDelete.next());

                dirSyncManager.removeFile(targetDir, subdirectory.toString(), fileInfo.getName());
            }
        }
View Full Code Here

            printDetail("  State               : ", ScrUtils.getState(component.getState()));

            Hashtable props = (Hashtable)component.getProperties();
            if (!props.isEmpty()) {
                System.out.println(Ansi.ansi().a(Ansi.Attribute.INTENSITY_BOLD).a("  Properties          : ").a(Ansi.Attribute.INTENSITY_BOLD_OFF));
                for (Object key : props.keySet()) {
                    Object value = props.get(key);
                    printDetail("    ", key + "=" + value);
                }
            }
            Reference[] references = component.getReferences();
View Full Code Here

            }
            contextProps.put(key.substring(end + 1),
                             conf.getString(key));
            contextPropsList.put(contextName, contextProps);
        }
        for (Iterator contextPropsKeys = contextPropsList.keySet().iterator();
                contextPropsKeys.hasNext();)
        {
            String key = (String) contextPropsKeys.next();
            Properties contextProps = (Properties) contextPropsList.get(key);
            InitialContext context = new InitialContext(contextProps);
View Full Code Here

        // are stopping anyway.
        socket.close();

        logger.info("Message server is closing all connections and shutting down");
        Hashtable apps = this.getApplications();
        Object [] keys = apps.keySet().toArray();
        int numkeys = keys.length;
        for (int i=0; i < numkeys; i++) {
          AbstractServerApplication app = (AbstractServerApplication) apps.get((String)keys[i]);
          if (app != null) {
           try {
View Full Code Here

            printDetail("  State               : ", ScrUtils.getState(component.getState()));

            Hashtable props = (Hashtable)component.getProperties();
            if (!props.isEmpty()) {
                System.out.println(getBoldString("  Properties          : "));
                for (Object key : props.keySet()) {
                    Object value = props.get(key);
                    printDetail("    ", key + "=" + value);
                }
            }
            Reference[] references = component.getReferences();
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.