Examples of currentValue()


Examples of freenet.support.math.TrivialRunningAverage.currentValue()

      int i = 0;

      synchronized (avgTransferBackoffTimesBulk) {
        for (Map.Entry<String, TrivialRunningAverage> entry : avgTransferBackoffTimesBulk.entrySet()) {
          TrivialRunningAverage avg = entry.getValue();
          entries[i++] = new TimedStats(entry.getKey(), avg.countReports(), (long) avg.currentValue(), (long) avg.totalValue());
        }
      }

      Arrays.sort(entries);
      return entries;
View Full Code Here

Examples of javax.faces.component.UIComponent.currentValue()

        while (kids.hasNext()) {
            UIComponent kid = (UIComponent) kids.next();
            if (!(kid instanceof UIParameter)) {
                continue;
            }
            list.add(kid.currentValue(context));
        }
        Object args[] = (Object[]) list.toArray(new Object[list.size()]);

        // Look up the requested message
        return (resources.getMessage(context.getLocale(), key, args));
View Full Code Here

Examples of javax.faces.component.UIInput.currentValue()

            return;
        }
        UIInput input = (UIInput) component;

        // Save the old value for use in generating ValueChangedEvents
        Object oldValue = input.currentValue(context);
        if (oldValue instanceof String) {
            try {
                oldValue = getAsObject(context, component, (String) oldValue);
            } catch (ConverterException e) {
                ;
View Full Code Here

Examples of javax.jdo.datastore.Sequence.currentValue()

    assertNotNull("Sequence " + SUITCASE_SEQ + " should not be null.", s);
    Suitcase s1 = new Suitcase();
    s1.setColor("black");
    Suitcase s2 = new Suitcase();
    s2.setColor("grey");
    logger.log(BasicLevel.DEBUG, "Value is " + s.currentValue());
    //make persistent
    pm.currentTransaction().begin();
    pm.makePersistent(s1);
    pm.makePersistent(s2);
    pm.currentTransaction().commit();
View Full Code Here

Examples of javax.jdo.datastore.Sequence.currentValue()

    pm.currentTransaction().begin();
    pm.makePersistent(s1);
    pm.makePersistent(s2);
    pm.currentTransaction().commit();
    assertTrue(s1.getId() < s2.getId());
    logger.log(BasicLevel.DEBUG, "After commit, value is " + s.currentValue());
        pm.close();
  }
 
  /**
   * Get a non-rdb sequence and use it to make objects persistent.
View Full Code Here

Examples of org.apache.jackrabbit.oak.query.ast.ColumnImpl.currentValue()

        }
        int columnCount = columns.length;
        CoreValue[] values = new CoreValue[columnCount];
        for (int i = 0; i < columnCount; i++) {
            ColumnImpl c = columns[i];
            values[i] = c.currentValue();
        }
        CoreValue[] orderValues;
        if (orderings == null) {
            orderValues = null;
        } else {
View Full Code Here

Examples of org.apache.jackrabbit.oak.query.ast.ColumnImpl.currentValue()

        }
        int columnCount = columns.length;
        CoreValue[] values = new CoreValue[columnCount];
        for (int i = 0; i < columnCount; i++) {
            ColumnImpl c = columns[i];
            values[i] = c.currentValue();
        }
        CoreValue[] orderValues;
        if (orderings == null) {
            orderValues = null;
        } else {
View Full Code Here

Examples of org.apache.phoenix.schema.Sequence.currentValue()

            .setSchemaName(sequenceKey.getSchemaName()).setTableName(sequenceKey.getSequenceName())
            .build().buildException();
        }
        sequence.getLock().lock();
        try {
            return sequence.currentValue(timestamp);
        } catch (EmptySequenceCacheException e) {
            throw new SQLExceptionInfo.Builder(SQLExceptionCode.CANNOT_CALL_CURRENT_BEFORE_NEXT_VALUE)
            .setSchemaName(sequenceKey.getSchemaName()).setTableName(sequenceKey.getSequenceName())
            .build().buildException();
        } finally {
View Full Code Here

Examples of org.apache.phoenix.schema.Sequence.currentValue()

            .setSchemaName(sequenceKey.getSchemaName()).setTableName(sequenceKey.getSequenceName())
            .build().buildException();
        }
        sequence.getLock().lock();
        try {
            return sequence.currentValue(timestamp);
        } catch (EmptySequenceCacheException e) {
            throw new SQLExceptionInfo.Builder(SQLExceptionCode.CANNOT_CALL_CURRENT_BEFORE_NEXT_VALUE)
            .setSchemaName(sequenceKey.getSchemaName()).setTableName(sequenceKey.getSequenceName())
            .build().buildException();
        } finally {
View Full Code Here

Examples of org.apache.phoenix.schema.Sequence.currentValue()

            .setSchemaName(sequenceKey.getSchemaName()).setTableName(sequenceKey.getSequenceName())
            .build().buildException();
        }
        sequence.getLock().lock();
        try {
            return sequence.currentValue(timestamp);
        } catch (EmptySequenceCacheException e) {
            throw new SQLExceptionInfo.Builder(SQLExceptionCode.CANNOT_CALL_CURRENT_BEFORE_NEXT_VALUE)
            .setSchemaName(sequenceKey.getSchemaName()).setTableName(sequenceKey.getSequenceName())
            .build().buildException();
        } finally {
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.