Examples of ConnectorManager


Examples of com.facebook.presto.connector.ConnectorManager

        // sys.catalog
        systemTablesManager.addTable(new CatalogSystemTable(metadata));

        this.compiler = new ExpressionCompiler(metadata);

        this.connectorManager = new ConnectorManager(
                metadata,
                splitManager,
                pageSourceManager,
                indexManager,
                recordSinkManager,
View Full Code Here

Examples of com.facebook.presto.connector.ConnectorManager

        this.recordSinkManager = new RecordSinkManager();
        this.storageManager = MockLocalStorageManager.createMockLocalStorageManager();

        this.compiler = new ExpressionCompiler(metadata);

        this.connectorManager = new ConnectorManager(
                metadata,
                splitManager,
                dataStreamProvider,
                recordSinkManager,
                new HandleResolver(),
View Full Code Here

Examples of com.facebook.presto.connector.ConnectorManager

        this.recordSinkManager = new RecordSinkManager();
        this.storageManager = MockLocalStorageManager.createMockLocalStorageManager();

        this.compiler = new ExpressionCompiler(metadata);

        this.connectorManager = new ConnectorManager(
                metadata,
                splitManager,
                dataStreamProvider,
                recordSinkManager,
                new HandleResolver(),
View Full Code Here

Examples of org.cipango.server.ConnectorManager

      try
      {
        SipMessage message = getMessage(testFiles[i]);

        assertTrue("Failed on SipTorture test " + testFiles[i] + ":\n" + message,
            new ConnectorManager().preValidateMessage(message));
        if (message instanceof SipRequest)
        {
          SipRequest request = (SipRequest) message;
          if (request.getMaxForwards() < 0 && request.getMaxForwards() != -1)
            fail("Failed on SipTorture test " + testFiles[i] + ":\n" + message);
View Full Code Here

Examples of org.cipango.server.ConnectorManager

    {
      try
      {
        SipMessage message = getMessage(testFiles[i]);
        assertFalse("Failed on SipTorture test " + testFiles[i] + ":\n" + message,
            new ConnectorManager().preValidateMessage(message));
        /* } catch (ServletParseException e) { */

      }
      catch (Exception e)
      {
View Full Code Here

Examples of org.openengsb.core.api.ConnectorManager

    }

    @Test
    public void testServiceDoesNotExist_shouldNotFindExampleDomain() throws Exception {
        File watchfile = tempFolder.newFile("testfile.csv");
        ConnectorManager connectorManager = getOsgiService(ConnectorManager.class);
        Map<String, String> attributes = new HashMap<String, String>();
        attributes.put("watchfile", watchfile.getAbsolutePath());
        attributes.put("serializer", "org.openengsb.connector.virtual.filewatcher.internal.CSVParser");
        attributes.put("mixin.1", EventSupport.class.getName());
        attributes.put("modelType", "org.openengsb.domain.example.model.SourceModelA");
        Map<String, Object> properties = new HashMap<String, Object>();
        ConnectorDescription connectorDescription =
            new ConnectorDescription("example", "filewatcher", attributes, properties);
        connectorManager.create(connectorDescription);
        getOsgiService(ExampleDomain.class, 30000L);
        Thread.sleep(1500);
        FileUtils.write(watchfile, "\"foo\",\"bar\"");
        Thread.sleep(1500);
        QueryInterface queryInterface = getOsgiService(QueryInterface.class);
View Full Code Here

Examples of org.openengsb.core.api.ConnectorManager

    private String addTestService() {
        if (testServiceId != null) {
            return testServiceId;
        }
        ConnectorManager connectorManager = getOsgiService(ConnectorManager.class);
        ConnectorDescription connectorDescription = new ConnectorDescription("authentication", "composite-connector");
        Map<String, String> attributes =
            Maps.newHashMap(ImmutableMap.of("compositeStrategy", "authentication.provider", "queryString",
                "(foo=bar)"));
        connectorDescription.setAttributes(attributes);
        testServiceId = connectorManager.create(connectorDescription);
        return testServiceId;
    }
View Full Code Here

Examples of org.teiid.dqp.internal.datamgr.ConnectorManager

        if (cmr.getConnectorManager(source) != null) {
          continue;
        }

        String name = model.getSourceTranslatorName(source);
        ConnectorManager cm = new ConnectorManager(name, model.getSourceConnectionJndiName(source));
        ExecutionFactory<Object, Object> ef = getExecutionFactory(name, repo, deployment, map, new HashSet<String>());
        cm.setExecutionFactory(ef);
        cm.setModelName(model.getName());
        cmr.addConnectorManager(source, cm);
      }
    }
  }
View Full Code Here

Examples of org.teiid.dqp.internal.datamgr.ConnectorManager

    boolean valid = true;
    for(Model m:deployment.getModels()) {
      ModelMetaData model = (ModelMetaData)m;
      List<SourceMappingMetadata> mappings = model.getSourceMappings();
      for (SourceMappingMetadata mapping:mappings) {
        ConnectorManager cm = cmr.getConnectorManager(mapping.getName());
        String msg = cm.getStausMessage();
        if (msg != null && msg.length() > 0) {
          valid = false;
          model.addError(ModelMetaData.ValidationError.Severity.ERROR.name(), cm.getStausMessage());
          LogManager.logInfo(LogConstants.CTX_RUNTIME, cm.getStausMessage());
        }
      }
     
      // in the dynamic case the metadata may be still loading.
      if (!model.getErrors().isEmpty()) {
View Full Code Here

Examples of org.teiid.dqp.internal.datamgr.ConnectorManager

    LogManager.logInfo(LogConstants.CTX_RUNTIME, msg);

      String exceptionMessage = null;
      Boolean loaded = false;
      for (String sourceName: model.getSourceNames()) {
        ConnectorManager cm = cmr.getConnectorManager(sourceName);
        String status = cm.getStausMessage();
      if (status != null && status.length() > 0) {
        exceptionMessage = status;
        continue;
      }
      loaded = null;
        try {
          MetadataStore store = cm.getMetadata(model.getName(), this.vdbRepository.getBuiltinDatatypes(), model.getProperties());
          if (cache) {
            this.serializer.saveAttachment(cacheFile, store);
          }
          vdbStore.addStore(store);
          loaded = true;
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.