Package java.util

Examples of java.util.Hashtable.keys()


        buf.append("<LastCheckpointTime>" + this.timeCkp + "</LastCheckpointTime>");
        buf.append("<LastTxnId>" + Integer.toHexString(this.lastTxnId) + "(" + lastTxnId + ")" + "</LastTxnId>");
        Enumeration txns = txnChain.elements();
        if (txns == null) {
            Hashtable tmp = new Hashtable();
            txns = tmp.keys();
        }
        while (txns.hasMoreElements()) {
            TransactionImpl txnImpl = (TransactionImpl) txns.nextElement();
            if (txnImpl != null) buf.append(txnImpl.dump());
        }
View Full Code Here


            if (dataPageMixed) return;

            //for id2node, datapages are not freed yet.

            Enumeration pagenumbers = dataPages.keys();
            PageNumber ppn = null;
            while (pagenumbers.hasMoreElements()) {
                ppn = (PageNumber) pagenumbers.nextElement();
                DataPage dPage = new DataPage(id, ppn, btreeSpec, getBuffer());
View Full Code Here

                errors.println("Road doubly listed");
                errors.println("          Road = " + road);
            }
            otherIntersections.put(road, inRoadsVector);
        }
        for (Enumeration e = otherIntersections.keys(); e.hasMoreElements();) {
            Road road = (Road) e.nextElement();
            Object other = otherIntersections.get(road);
            if (other != inRoadsVector) {
                errors.println("Road not listed");
                errors.println("          Road = " + road);
View Full Code Here

        Hashtable hashTree = null;
        java.util.Enumeration enuTree = null;
        PageNumber history = null;
        while (iterTrees.hasNext()) {
            hashTree = (Hashtable) iterTrees.next();
            enuTree = hashTree.keys();

            while (enuTree.hasMoreElements()) {
                history = (PageNumber) enuTree.nextElement();
                pageHistory(history);
            }
View Full Code Here

        try {

            logger.debug("vPage size=" + vPages.size());
            for (int i = 0; i < vPages.size(); i++) {
                Hashtable h = (Hashtable) vPages.get(i);
                Enumeration pages = h.keys();
                logger.debug("Flushing vPage[" + i + "]");
                //int count=0;
                while (pages.hasMoreElements()) {
                    Integer key = (Integer) pages.nextElement();
                    String line = (h.get(key)).toString();
View Full Code Here

     * @param location directory location to use as the root for
     *        resource bundle file hierarchy.
     */
    public void dumpCreatedResourceBundles(String location) {
        Hashtable bundleHash = getCreateHash();
        for (Enumeration enumeration = bundleHash.keys(); enumeration.hasMoreElements();) {
            String key = (String) enumeration.nextElement();
            Properties props = (Properties) bundleHash.get(key);

            try {
                File propFile = new File(location + "/" + key);
View Full Code Here

                        log.info("SUCCESS: cacheSize=" + maxNumOfBytesCache[ic] + " maxBytes=" + maxNumOfBytes[is] + " .... looks OK");

                        int count = 0;
                        for (int j=0; j < 3; j++) {
                           Hashtable table = inputTable[j];
                           Enumeration keys = table.keys();
                           while (keys.hasMoreElements()) {
                              ((I_QueueEntry)table.get(keys.nextElement())).getUniqueId();
                              ((I_QueueEntry)total.get(count)).getUniqueId();
                              assertEquals("uniqueId differe for count " + count + " " + refQueue.toXml(""), mustEntries, total.size());
                              count++;
View Full Code Here

    /*
     * Copy WILDCARDS from XBUSSystem into parameters
     */
    Hashtable info = mDestination.getAddresses();
    String key = null;
    for (Enumeration en = info.keys(); en.hasMoreElements();)
    {
      key = (String) en.nextElement();
      if (XBUSSystem.FILENAME_WILDCARD.equals(key))
      {
        value = (String) info.get(key);
View Full Code Here

         else
            tmp.append(url).append("?appletInstanceCount=").append(this.instanceCount);
        
         // Add additional paramaters and send to the servlet
         Hashtable props = getHtmlProperties();
         Enumeration it = props.keys();
         while (it.hasMoreElements()) {
            String key = (String)it.nextElement();
            String value = (String)props.get(key);
            if (key.startsWith("servlet/")) {
               key = key.substring("servlet/".length());
View Full Code Here

         boolean pwdOk = ldap.checkPassword(loginName, userPassword);
         System.out.println("The password=" + userPassword + " for cn=" + loginName + " is " + ((pwdOk)?"":" NOT ") + " valid.");

         System.out.println("\nTesting getAllAttributes() ...");
         Hashtable attrHash = ldap.getAllAttributes(loginName, userPassword, loginName);
         Enumeration keys = attrHash.keys();
         while( keys.hasMoreElements() ) {
            String key = (String)keys.nextElement();
            System.out.println(key + ": " + attrHash.get(key));
         }
      }
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.