Examples of open()


Examples of org.apache.thrift7.transport.TFramedTransport.open()

  String host=String.valueOf(conf.get(Config.NIMBUS_HOST));
  Integer port=StormUtils.parseInt(conf.get(Config.NIMBUS_THRIFT_PORT));
  TFramedTransport transport=new TFramedTransport(new TSocket(host, port));
  TBinaryProtocol prot=new TBinaryProtocol(transport);
  Nimbus.Client client=new Nimbus.Client(prot);
  transport.open();
  try{
      client.killTopologyWithOpts(name,ops);
  }finally{
      transport.close();
  }
View Full Code Here

Examples of org.apache.thrift7.transport.TSaslClientTransport.open()

                serverHost,
                null,
                client_callback_handler,
                transport);

        wrapper_transport.open();
        LOG.debug("SASL DIGEST-MD5 client transport has been established");

        return wrapper_transport;
    }
View Full Code Here

Examples of org.apache.thrift7.transport.TSocket.open()

      throws TTransportException {
    TSocket ts = new TSocket(host, port);
    TFramedTransport tt = new TFramedTransport(ts);
    TBinaryProtocol prot = new TBinaryProtocol(tt);
    Client nc = new Client(prot);
    ts.open();
    List l = new ArrayList();
    l.add(nc);
    l.add(tt);
    return l;
  }
View Full Code Here

Examples of org.apache.thrift7.transport.TTransport.open()

    public TTransport connect(TTransport transport, String serverHost) throws TTransportException {
        //create a framed transport
        TTransport conn = new TFramedTransport(transport);

        //connect
        conn.open();
        LOG.debug("Simple client transport has been established");

        return conn;
    }
View Full Code Here

Examples of org.apache.uima.ruta.testing.ui.views.EvalDataDialog.open()

      }
     
    }

    EvalDataDialog dialog = new EvalDataDialog(shell, evalData);
    dialog.open();
   
//    MessageDialog.openConfirm(shell, "Evaluation Data", text);

    return null;
  }
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddAllowedValueDialog.open()

    TypeDescription td = getTypeDescriptionFromTableTreeItem(parent);
    // guaranteed non-null - otherwise can't add an allowed value
    TypeDescription localTd = getLocalTypeDefinition(td);

    AddAllowedValueDialog dialog = new AddAllowedValueDialog(this, null);
    if (dialog.open() == Window.CANCEL) {
      return;
    }

    AllowedValue av = UIMAFramework_impl.getResourceSpecifierFactory().createAllowedValue();
    allowedValueUpdate(av, dialog);
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddCapabilityFeatureDialog.open()

        // using the CAS to get all the inherited features
        Type type = editor.getCurrentView().getTypeSystem().getType(typeName);

        AddCapabilityFeatureDialog dialog = new AddCapabilityFeatureDialog(this, type, c);
        if (dialog.open() == Window.CANCEL)
          return;

        addOrEditFeature(dialog, typeName, typeItem, c);
        break;
      }
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddCapabilityTypeDialog.open()

        pack04();
        break;
      }
      case TYPE: {
        AddCapabilityTypeDialog dialog = new AddCapabilityTypeDialog(this, c, editItem);
        if (dialog.open() == Window.CANCEL)
          return;

        TypeOrFeature typeInput = getTypeOrFeature(c.getInputs(), getFullyQualifiedName(editItem));

        if (dialog.inputs[0]) {
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddExternalResourceDependencyDialog.open()

  private void handleEdit() {
    TableItem item = table.getSelection()[0];
    ExternalResourceDependency xrd = getXRDependencyFromTableItem(item);
    AddExternalResourceDependencyDialog dialog = new AddExternalResourceDependencyDialog(this, xrd);
    if (dialog.open() == Window.CANCEL)
      return;

    alterExistingExternalResourceDependency(xrd, dialog);
    updateXrdToGUI(item, xrd, "");
  }
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddExternalResourceDialog.open()

      return;
    }

    AddExternalResourceDialog dialog = new AddExternalResourceDialog(this, xrd);

    if (dialog.open() == Window.CANCEL)
      return;
    alterExistingXRD(dialog, xrd, item);
  }

  /**
 
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.