Examples of Hashtable


Examples of java.util.Hashtable

      logmon.log(BasicLevel.DEBUG,
                 "NTransaction, delete(" + dirName + ", " + name + ")");

    Object key = OperationKey.newKey(dirName, name);

    Hashtable log = ((Context) perThreadContext.get()).getLog();
    Operation op = Operation.alloc(Operation.DELETE, dirName, name);
    Operation old = (Operation) log.put(key, op);
    if (old != null) {
      if (old.type == Operation.CREATE) op.type = Operation.NOOP;
      old.free();
    }
  }
View Full Code Here

Examples of java.util.Hashtable

      throw new IllegalStateException("Can not commit.");

    if (logmon.isLoggable(BasicLevel.DEBUG))
      logmon.log(BasicLevel.DEBUG, "NTransaction, commit(" + release + ')');
   
    Hashtable log = ((Context) perThreadContext.get()).getLog();
    if (! log.isEmpty()) {
      logFile.commit(log);
      log.clear();
    }

    setPhase(COMMIT);

    if (logmon.isLoggable(BasicLevel.DEBUG))
View Full Code Here

Examples of java.util.Hashtable

      if (syncOnWrite)
        mode = "rwd";
      else
        mode = "rw";
     
      log = new Hashtable(LogMemoryCapacity);

      //  Search for old log file, then apply all committed operation,
      // finally cleans it.
      File logFilePN = new File(dir, "log");
      if ((logFilePN.exists()) && (logFilePN.length() > 0)) {
View Full Code Here

Examples of java.util.Hashtable

                                                        null, (Class[])null,
                                                        GroupRequest.GET_ALL, 5000);

                        System.out.println("rsp_list is " + rsp_list);

                        Hashtable all_stocks=null;
                        for(int i=0; i < rsp_list.size(); i++) {
                            Rsp rsp=(Rsp)rsp_list.elementAt(i);
                            Object obj=rsp.getValue();
                            if(obj == null || obj instanceof Throwable)
                                continue;
                            all_stocks=(Hashtable)obj;
                            break;
                        }

                        if(all_stocks == null) {
                            showMsg("No stocks found");
                            return;
                        }
                        clearMsg();
                        listbox.removeAll();
                        String key;
                        Float val;
                        for(Enumeration en=all_stocks.keys(); en.hasMoreElements();) {
                            key=(String)en.nextElement();
                            val=(Float)all_stocks.get(key);
                            if(val == null)
                                continue;
                            listbox.add(key + ": " + val.toString());
                        }
                    }
View Full Code Here

Examples of java.util.Hashtable

  public Hashtable properties = null;
  /** Hashtable of all clusters */
  public Hashtable clusters = null;

  public A3CMLConfig() {
    domains = new Hashtable();
    servers = new Hashtable();
    properties = new Hashtable();
    clusters = new Hashtable();
  }
View Full Code Here

Examples of java.util.Hashtable

  public A3CMLConfig getDomainConfig(String[] listDomainName) throws Exception {
    if (Log.logger.isLoggable(BasicLevel.DEBUG))
      Log.logger.log(BasicLevel.DEBUG,
                     "Config.getDomainConfig(" + listDomainName + ")");

    Hashtable context = new Hashtable();

    A3CMLConfig domainConf = new A3CMLConfig();
    Vector domainList = new Vector();
    for (int i = 0; i < listDomainName.length; i++)
      domainList.addElement(listDomainName[i]);
View Full Code Here

Examples of java.util.Hashtable

  public A3CMLCluster(short sid,
                      String name) throws Exception {
    this.sid = sid;
    this.name = name;
    this.properties = new Hashtable();
    this.servers = new Hashtable();
  }
View Full Code Here

Examples of java.util.Hashtable

    }
  }

  public A3CMLProperty addProperty(A3CMLProperty prop) {
    if (properties == null)
      properties = new Hashtable();
    return (A3CMLProperty) properties.put(prop.name, prop);
  }
View Full Code Here

Examples of java.util.Hashtable

    return false;
  }

  public A3CMLNat addNat(A3CMLNat natElement) {
    if (nat == null)
      nat = new Hashtable();
    return (A3CMLNat) nat.put(new Short(natElement.sid), natElement);
  }
View Full Code Here

Examples of java.util.Hashtable

      for (Enumeration e = properties.keys(); e.hasMoreElements(); ) {
       
        String pName = (String) e.nextElement();
        A3CMLProperty prop = (A3CMLProperty) properties.get(pName);
        if (prop != null) {
          if (clone.properties == null) clone.properties = new Hashtable();
          clone.properties.put(pName, prop.duplicate());
        }
      }
    }
    if (nat != null) {
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.