Examples of createConnection()


Examples of lupos.gui.operatorgraph.visualeditor.ruleeditor.util.RuleConnection.createConnection()

      while(keyIt.hasNext()) {
        String parentName = keyIt.next();
        JSONArray connections = connectionsLoadObject.getJSONArray(parentName);

        for(int i = 0; i < connections.length(); i += 1) {
          ruleConnection.createConnection(tmp.get(parentName), connections.getJSONObject(i), tmp);
        }
      }
    }
  }
}
View Full Code Here

Examples of net.fortytwo.ripple.model.Model.createConnection()

* @author Joshua Shinavier (http://fortytwo.net)
*/
public class RipplePrintStreamTest extends RippleTestCase {
    public void testLiterals() throws Exception {
        Model model = getTestModel();
        ModelConnection mc = model.createConnection();
        QueryEngine qe = new QueryEngine(model, null, System.out, System.err);
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        RipplePrintStream ps = new RipplePrintStream(new PrintStream(bos), qe.getLexicon());

        mc.setNamespace("xsd", "http://www.w3.org/2001/XMLSchema#", true);
View Full Code Here

Examples of net.fortytwo.twitlogic.persistence.TweetStore.createConnection()

            // Create a persistent store.
            TweetStore store = new TweetStore();
            store.initialize();

            try {
                TweetStoreConnection c = store.createConnection();
                try {
                    URI iswc2009 = new URIImpl("http://twitlogic.fortytwo.net/hashtag/linkeddata");
                    RelatedHashtagsInferencer inf = new RelatedHashtagsInferencer(c.getSailConnection(), iswc2009);

                    int steps = 500;
View Full Code Here

Examples of net.jmesnil.jmx.core.IConnectionProvider.createConnection()

    map.put(DefaultConnectionProvider.URL, url);
    map.put(DefaultConnectionProvider.USERNAME, userName);
    map.put(DefaultConnectionProvider.PASSWORD, password);
    IConnectionProvider provider = ExtensionManager.getProvider(DefaultConnectionProvider.PROVIDER_ID);

    return provider.createConnection(map);
  }
}
View Full Code Here

Examples of net.jodah.lyra.internal.ConnectionHandler.createConnection()

    Assert.notNull(options, "options");
    Assert.notNull(config, "config");
    ConnectionHandler handler = new ConnectionHandler(options.copy(), new Config(config));
    ConfigurableConnection proxy = (ConfigurableConnection) Proxy.newProxyInstance(
        Connection.class.getClassLoader(), CONNECTION_TYPES, handler);
    handler.createConnection(proxy);
    return proxy;
  }
}
View Full Code Here

Examples of net.kuujo.vertigo.network.ActiveNetwork.createConnection()

              // Now create a connection on the network. Both the "sender" and the
              // "receiver" component will be automatically updated with the new
              // connection, and messages send to the "sender"s "out" port will
              // be sent to the "receiver"s "in" port.
              ActiveNetwork network = result.result();
              network.createConnection("sender", "out", "receiver", "in", new Handler<AsyncResult<ActiveNetwork>>() {
                @Override
                public void handle(AsyncResult<ActiveNetwork> result) {
                  if (result.failed()) {
                    assertTrue(result.cause().getMessage(), result.succeeded());
                  } else {
View Full Code Here

Examples of net.kuujo.vertigo.network.NetworkConfig.createConnection()

          // We can create four instances of the "receiver" and Vertigo will still
          // ensure that each file is sent to the same "receiver" instance.
          network.addVerticle("receiver", FileReceiver.class.getName(), 4);

          // Create a connection between "sender" and "receiver" via the "file" port.
          network.createConnection("sender", "file", "receiver", "file");

          // Now deploy the network to the cluster.
          Cluster cluster = result.result();
          cluster.deployNetwork(network, new Handler<AsyncResult<ActiveNetwork>>() {
            @Override
View Full Code Here

Examples of net.kuujo.vertigo.network.impl.DefaultNetworkConfig.createConnection()

  }

  @Test
  public void testCreateConnectionDefaultPort() {
    NetworkConfig network = new DefaultNetworkConfig("test");
    ConnectionConfig connection = network.createConnection("foo", "bar");
    assertEquals("foo", connection.getSource().getComponent());
    assertEquals("out", connection.getSource().getPort());
    assertEquals("bar", connection.getTarget().getComponent());
    assertEquals("in", connection.getTarget().getPort());
  }
View Full Code Here

Examples of net.sourceforge.fullsync.FileSystemManager.createConnection()

    Site conn = null;
    try {
      ConnectionDescription desc = getConnectionDescription();
      FileSystemManager fsm = new FileSystemManager();
      desc.setParameter("interactive", "true");
      conn = fsm.createConnection(desc);

      FileObject base = conn.getBase();
      FileObjectChooser foc = new FileObjectChooser(m_parent.getShell(), SWT.NULL);
      foc.setBaseFileObject(base);
      foc.setSelectedFileObject(base);
View Full Code Here

Examples of net.sourceforge.fullsync.fs.FileSystem.createConnection()

      else {
        throw new URISyntaxException(url.toString(), "Not a valid uri or unknown scheme");
      }
    }

    Site s = fs.createConnection(desc);

    String bufferStrategy = desc.getParameter("bufferStrategy");

    if ((null != bufferStrategy) && !"".equals(bufferStrategy)) {
      s = resolveBuffering(s, bufferStrategy);
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.