Examples of values()


Examples of org.apache.uima.ducc.transport.event.common.IDuccProcessMap.values()

    boolean ckpt = false;
    if(!job.isFinished()) {
      DuccWorkPopDriver driver = job.getDriver();
      IDuccProcessMap processMap = driver.getProcessMap();
      if(processMap != null) {
        Collection<IDuccProcess> processCollection = processMap.values();
        Iterator<IDuccProcess> iterator = processCollection.iterator();
        while(iterator.hasNext()) {
          IDuccProcess process = iterator.next();
          if(process.isComplete()) {
            IRationale rationale = new Rationale("health monitor detected job driver failed unexpectedly");
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.IDuccReservationMap.values()

        j.setReservation();

        IDuccWorkReservation dr = (IDuccWorkReservation) job;
        IDuccReservationMap rm = dr.getReservationMap();
        if ( (rm.size() > 0) && !job.isCompleted() ) {          // need to recover, apparently RM crashed. hmph.
            for ( IDuccReservation res : rm.values() ) {       // build up Shares from the incoming state
                NodeIdentity ni = res.getNodeIdentity();
                Machine m = scheduler.getMachine(ni);
                if ( m == null ) {                             // not known, huh? maybe next epoch it will have checked in
                    refuse(j, "Cannot restore reservation because node " + ni.getName() + " is unknown.");
                    return false;                              // so we don't add it to global tables
View Full Code Here

Examples of org.apache.uima.tools.cfe.support.EnumeratedEntryDictionary.values()

    {
        super(null);
        m_value_transformer = new PrimitiveFeatureTransformer(case_sensitive);
        EnumeratedEntryDictionary fd = new EnumeratedEntryDictionary("enum feature values", path, getValueNormalizer());
        fd.load();
        m_values = fd.values();
    }
   
    public EnumFeatureValues ()
    {
        this((Object[])null, false);
View Full Code Here

Examples of org.apache.xerces.xs.XSNamedMap.values()

        final XSNamedMap components = model.getComponents(ELEMENT_DECLARATION);

        List<Node> topLevelElements = new ArrayList<Node>();
        final Schema structureFile = new Schema(serviceName, topLevelElements);
        log.trace("Going through top level elements.");
        for (final Object component : components.values()) {
            final XSElementDeclaration element = (XSElementDeclaration) component;
            log.trace("Parsing top level element {}", element);
            final Node node = parseElementChildren(null, element);
            topLevelElements.add(node);
        }
View Full Code Here

Examples of org.ardverk.dht.storage.Index.values()

   
    final int m = dst.size()/2-1;
    final int maxCount = 6;
   
    KUID marker = CollectionUtils.nth(dst, m);
    Values values = index.values(key, marker, maxCount);
   
    TestCase.assertEquals(marker, values.firstKey());
    TestCase.assertTrue(values.size() <= maxCount);
  }
}
View Full Code Here

Examples of org.camunda.bpm.engine.variable.VariableMap.values()

    assertEquals(map1.hashCode(), map2.hashCode());
    assertEquals(map2.hashCode(), map3.hashCode());

    // values()
    Collection<Object> values1 = map1.values();
    Collection<Object> values2 = map2.values();
    Collection<Object> values3 = map3.values();
    assertTrue(values1.containsAll(values2));
    assertTrue(values2.containsAll(values1));
    assertTrue(values2.containsAll(values3));
    assertTrue(values3.containsAll(values2));
View Full Code Here

Examples of org.castor.cache.Cache.values()

    }

    public void testValues() {
        Cache cache = initialize();

        Collection col = cache.values();
       
        assertEquals(3, col.size());
        assertTrue(col.contains("first value"));
        assertTrue(col.contains("second value"));
        assertTrue(col.contains("third value"));
View Full Code Here

Examples of org.drools.core.util.PrimitiveLongMap.values()

    public void testValues() {
        final PrimitiveLongMap map = new PrimitiveLongMap();
        assertNotNull( "MapNotNullTest ",
                       map );

        final Collection values = map.values();
        assertNotNull( "ValuesNotNullTest ",
                       values );
        assertEquals( "ValuesZeroSizeTest ",
                      0,
                      values.size() );
View Full Code Here

Examples of org.drools.util.PrimitiveLongMap.values()

        if ( !isAttachingNewRule() )
        {
            return;
        }
        PrimitiveLongMap memory = (PrimitiveLongMap) workingMemory.getNodeMemory( this );
        Iterator it = memory.values().iterator();
               
        FactHandleImpl handle = null;
        Object object = null;
        while ( it.hasNext() )
        {           
View Full Code Here

Examples of org.eclipse.emf.ecore.impl.EPackageRegistryImpl.values()

            }

            // Populate the typeMapping table that will be given to the Axis2 WSDL2Java
            Map<QName, SDODataBindingTypeMappingEntry> typeMapping =
                                    new HashMap<QName, SDODataBindingTypeMappingEntry>();
            if (!packageRegistry.values().isEmpty()) {
                ResourceSet resourceSet = DataObjectUtil.createResourceSet();

                // Populate list of GenPackages and a map of GenClasses keyed by EClass
                List<GenPackage> genPackages = new ArrayList<GenPackage>();
                Map<EClass, GenClass> genClasses = new HashMap<EClass, GenClass>();
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.