Package java.util

Examples of java.util.Hashtable


    // Read the log, then...
    int oldPhase = FREE;

    logFile = new RandomAccessFile(new File(dir, LOG), "rw");
    log = new Hashtable();
    if (logFile.length() != 0) {
      logFile.seek(0L);
      oldPhase = logFile.readInt();

      // Test the stop status then complete commit or rollback if needed
View Full Code Here


  public void start(int serverId, String serverName) throws Exception {
    String[] args = {"" + serverId, serverName};
    AgentServer.init(args);
    AgentServer.start();

    connections = new Hashtable();

    if (logger.isLoggable(BasicLevel.DEBUG))
      logger.log(BasicLevel.DEBUG, "SoapProxyService started.");
  }
View Full Code Here

  private void registerOSGi(Object obj, ObjectName objName) {
    if (!registerAsService) {
      return;
    }
    Hashtable registrationProperties = objName.getKeyPropertyList();
    registrationProperties.put("domain", objName.getDomain());
    if (registeredServices.containsKey(objName)) {
      ServiceRegistration registration = (ServiceRegistration) registeredServices.get(objName);
      registration.setProperties(registrationProperties);
      return;
    }
View Full Code Here

*/

public abstract class PropertyDocument implements IDocument {
  protected Hashtable properties;
  public PropertyDocument() {
    properties= new Hashtable(5);
  }
View Full Code Here

        JPanel tempBean;

        // the root package for weka algorithms
        String rootPackage = "";
        weka.gui.HierarchyPropertyParser hpp = null;
        Hashtable hpps = null;

        // Is this a wrapper toolbar?
        if (tempBeanCompName.compareTo("null") != 0) {
          tempBean = null;
          toolBarType = wrapper_toolset;
          rootPackage = (String) tempBarSpecs.elementAt(2);
          //      hpp = (weka.gui.HierarchyPropertyParser)tempBarSpecs.elementAt(3);
          hpps = (Hashtable) tempBarSpecs.elementAt(3);

          try {
            // modifications by Zerbetto
            // Beans.instantiate(null, tempBeanCompName);
            Beans.instantiate(this.getClass().getClassLoader(), tempBeanCompName);

            // end modifications by Zerbetto
          } catch (Exception ex) {
            // ignore
            System.err.println("[KnowledgeFlow] Failed to instantiate: " + tempBeanCompName);

            break;
          }
        } else {
          toolBarType = standard_toolset;
        }

        // a toolbar to hold buttons---one for each algorithm
        //        JToolBar tempToolBar = new JToolBar();

        //      System.err.println(tempToolBar.getLayout());
        //      tempToolBar.setLayout(new FlowLayout());
        int z = 2;

        if (toolBarType == wrapper_toolset) {
          Enumeration enm = hpps.keys();

          while (enm.hasMoreElements()) {
            String root = (String) enm.nextElement();
            String userPrefix = "";
            hpp = (HierarchyPropertyParser) hpps.get(root);

            if (!hpp.goTo(rootPackage)) {
              System.out.println("[KnowledgeFlow] Processing user package... ");
              //            System.exit(1);
              userPrefix = root + ".";
View Full Code Here

              newV.addElement(rootPackage);

              // All the weka algorithms of this class of algorithm
              String wekaAlgs = GEOProps.getProperty(geoKey);

              Hashtable roots = GenericObjectEditor.sortClassesByRoot(wekaAlgs);
              Hashtable hpps = new Hashtable();
              Enumeration enm = roots.keys();
              while (enm.hasMoreElements()) {
                String root = (String) enm.nextElement();
                String classes = (String) roots.get(root);
                weka.gui.HierarchyPropertyParser hpp =
                  new weka.gui.HierarchyPropertyParser();
                hpp.build(classes, ", ");
                //            System.err.println(hpp.showTree());
                hpps.put(root, hpp);
              }

              //------ test the HierarchyPropertyParser
              /*  weka.gui.HierarchyPropertyParser hpp =
      new weka.gui.HierarchyPropertyParser();
View Full Code Here

  protected MsnServer(String host, int port, ProxyInfo info) throws UnknownHostException, IOException, IllegalStateException
  {
    conn = info.getConnection(host, port);

    nextTransactionID = new Integer(1);
    callbackMap = new Hashtable();
    syncCallID = new Integer(0);

    readBuffer = new Vector();
    writeBuffer = new Vector();
    reader = new ReaderThread(this, conn, readBuffer);
View Full Code Here

    super("MSG");
    addParam(passport);
    addParam(alias);
    addParam(String.valueOf(data.length));

    headers = new Hashtable();
    body = new StringBuffer();

    BufferedReader rd = new BufferedReader(new StringReader(new String(data)));

    try
View Full Code Here

  MsnMessage(Font font, Color color, String text)
  {
    super("MSG");
    addParam("N"); // We do not need message acknowledgements

    this.headers = new Hashtable();
    this.body = new StringBuffer(text);

    headers.put("MIME-Version", "1.0");
    headers.put("Content-Type", "text/plain; charset=UTF-8");
View Full Code Here

  {
    super(host, port, info);
    this.protocol = protocol;
    this.processor = processor;

    this.allGroups = new Hashtable();
    this.allBuddies = new Vector();
    this.allowList = new Vector();
    this.blockList = new Vector();
    this.confSBMap = new Hashtable();

    Command cmd = new Command("VER");
    cmd.addParam("MSNP8");
    sendToServer(cmd, "processVersion");
  }
View Full Code Here

TOP

Related Classes of java.util.Hashtable

Copyright © 2018 www.massapicom. 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.