Examples of DependencyInfo


Examples of com.github.maven_nar.cpptasks.DependencyInfo

        for (int i = 0; i < onSysIncludePath.size(); i++) {
            String relativeInclude = CUtil.getRelativePath(baseDirPath,
                    (File) onSysIncludePath.elementAt(i));
            onSysIncludePath.setElementAt(relativeInclude, i);
        }
        return new DependencyInfo(includePathIdentifier, relativeSource,
                sourceLastModified, onIncludePath, onSysIncludePath);
    }
View Full Code Here

Examples of com.google.javascript.jscomp.deps.DependencyInfo

      if (!generatedDependencyInfoFromSource) {
        // Note: it's OK to use getName() instead of
        // getPathRelativeToClosureBase() here because we're not using
        // this to generate deps files. (We're only using it for
        // symbol dependencies.)
        DependencyInfo info =
            (new JsFileParser(compiler.getErrorManager()))
            .setIncludeGoogBase(true)
            .parseFile(getName(), getName(), getCode());

        isModuleFile = info.isModule();
        provides.addAll(info.getProvides());
        requires.addAll(info.getRequires());

        generatedDependencyInfoFromSource = true;
      }
    }
  }
View Full Code Here

Examples of com.google.javascript.jscomp.deps.DependencyInfo

    Set<String> requires = Sets.newHashSet();
    Queue<String> unprocessedRequires = new LinkedList<String>();
    unprocessedRequires.addAll(entryPoints);
    while (!unprocessedRequires.isEmpty()) {
      String clazz = unprocessedRequires.remove();
      DependencyInfo depInfo = depMap.get(clazz);
      requires.add(clazz);
      for (String require : depInfo.getRequires()) {
        if (!requires.contains(require)) {
          unprocessedRequires.add(require);
        }
      }
    }
View Full Code Here

Examples of com.granule.calcdeps.DependencyInfo

    checkDependencies(s, new String[] { "goog.date" }, new String[] { "goog.i18n.DateTimeSymbols" });
  }

  private void checkDependencies(String s, String[] provides, String[] requires) {
    ClosureDepsParser ccd = new ClosureDepsParser();
    DependencyInfo dep = new DependencyInfo(null);
    try {
      ccd.searchDependencies(new BufferedReader(new StringReader(s)), dep);
      assert (checkDependencyInfo(dep, provides, requires));
    } catch (IOException e) {
      fail(e.getMessage());
View Full Code Here

Examples of edu.brown.hstore.txns.DependencyInfo

            Map<Integer, DependencyInfo> stmt_dinfos = this.depTrackerDbg.getStatementDependencies(this.ts, i);
            assertNotNull(stmt_dinfos);
            assertFalse(stmt_dinfos.isEmpty());
           
            for (Integer d_id : stmt_dinfos.keySet()) {
                DependencyInfo dinfo = stmt_dinfos.get(d_id);
                assertNotNull(dinfo);
               
                if (this.internal_dependency_ids.contains(d_id)) {
                    // This fragment should have been broadcast to all partitions
                    assertEquals(NUM_PARTITIONS, dinfo.getExpectedPartitions().size());
                    // But never out to VoltProcedure
                    assertFalse(this.output_dependency_ids.contains(d_id));
                    // And we should have a task blocked waiting for this dependency
                    assertFalse(dinfo.getBlockedWorkFragments().isEmpty());
                } else {
                    assertEquals(1, dinfo.getExpectedPartitions().size());
                    assertEquals(LOCAL_PARTITION, dinfo.getExpectedPartitions().get());
                }
            } // FOR
           
        } // FOR
        //System.err.println(this.ts);
View Full Code Here

Examples of net.sf.antcontrib.cpptasks.DependencyInfo

        for (int i = 0; i < onSysIncludePath.size(); i++) {
            String relativeInclude = CUtil.getRelativePath(baseDirPath,
                    (File) onSysIncludePath.elementAt(i));
            onSysIncludePath.setElementAt(relativeInclude, i);
        }
        return new DependencyInfo(includePathIdentifier, relativeSource,
                sourceLastModified, onIncludePath, onSysIncludePath);
    }
View Full Code Here

Examples of org.apache.ambari.server.state.DependencyInfo

      }
      if (name.equals("HIVE_SERVER")) {
        // dependencies
        List<DependencyInfo> dependencyList = component.getDependencies();
        Assert.assertEquals(1, dependencyList.size());
        DependencyInfo dependency = dependencyList.get(0);
        Assert.assertEquals("ZOOKEEPER/ZOOKEEPER_SERVER", dependency.getName());
        Assert.assertEquals("cluster", dependency.getScope());
        AutoDeployInfo autoDeploy = dependency.getAutoDeploy();
        Assert.assertTrue(autoDeploy.isEnabled());
        Assert.assertEquals("HIVE/HIVE_SERVER", autoDeploy.getCoLocate());
        // component auto deploy
        Assert.assertNull(component.getAutoDeploy());
        // cardinality
View Full Code Here

Examples of org.apache.ambari.server.state.DependencyInfo

  public void testGetResources() throws SystemException, UnsupportedPropertyException,
      NoSuchParentResourceException, NoSuchResourceException, AmbariException {

    Request request = createNiceMock(Request.class);

    DependencyInfo dependencyInfo = new DependencyInfo();
    dependencyInfo.setName("service_name/comp_name");
    dependencyInfo.setScope("cluster");

    Predicate namePredicate = new EqualsPredicate<String>(
        StackDependencyResourceProvider.COMPONENT_NAME_ID, "comp_name");
    Predicate depServicePredicate = new EqualsPredicate<String>(
        StackDependencyResourceProvider.DEPENDENT_SERVICE_NAME_ID, "dep_service_name");
View Full Code Here

Examples of org.apache.ambari.server.state.DependencyInfo

  public void testGetResources_Query() throws SystemException, UnsupportedPropertyException,
      NoSuchParentResourceException, NoSuchResourceException, AmbariException {

    Request request = createNiceMock(Request.class);

    DependencyInfo dependencyInfo = new DependencyInfo();
    dependencyInfo.setName("service_name/comp_name");
    dependencyInfo.setScope("cluster");

    Predicate namePredicate = new EqualsPredicate<String>(
        StackDependencyResourceProvider.COMPONENT_NAME_ID, "comp_name");
    Predicate name2Predicate = new EqualsPredicate<String>(
        StackDependencyResourceProvider.COMPONENT_NAME_ID, "comp_name2");
View Full Code Here

Examples of org.jboss.dependency.spi.DependencyInfo

      ControllerState dependent = null;
      if (dependentState != null)
         dependent = ControllerState.getInstance(dependentState);

      DependencyInfo di = targetControllerContext.getDependencyInfo();
      for (Object dependency : dependencies)
      {
         DependencyItem item = new AbstractDependencyItem(targetName, dependency, whenRequired, dependent);
         di.addIDependOn(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.