Examples of AlgorithmType


Examples of org.apache.aurora.scheduler.sla.SlaAlgorithm.AlgorithmType

    for (Entry<AlgorithmType, GroupType> slaMetric : METRICS.entries()) {
      for (Entry<String, Collection<IScheduledTask>> namedGroup
          : slaMetric.getValue().getSlaGroup().createNamedGroups(tasks).asMap().entrySet()) {

        AlgorithmType algoType = slaMetric.getKey();
        String metricName = namedGroup.getKey() + algoType.getAlgorithmName();
        metricCache.getUnchecked(metricName)
            .set(metricName, algoType.getAlgorithm().calculate(
                namedGroup.getValue(),
                Range.closedOpen(intervalStartMs, nowMs)));
      }
    }
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.sla.SlaAlgorithm.AlgorithmType

    for (Entry<AlgorithmType, GroupType> slaMetric : metrics.entries()) {
      for (Entry<String, Collection<IScheduledTask>> namedGroup
          : slaMetric.getValue().getSlaGroup().createNamedGroups(tasks).asMap().entrySet()) {

        AlgorithmType algoType = slaMetric.getKey();
        String metricName = namedGroup.getKey() + algoType.getAlgorithmName();
        metricCache.getUnchecked(metricName)
            .set(metricName, algoType.getAlgorithm().calculate(namedGroup.getValue(), timeRange));
      }
    }
  }
View Full Code Here

Examples of org.apache.xml.security.configuration.AlgorithmType

    protected static synchronized void init(JCEAlgorithmMappingsType jceAlgorithmMappingsType) throws Exception {
        List<AlgorithmType> algorithms = jceAlgorithmMappingsType.getAlgorithm();

        for (int i = 0; i < algorithms.size(); i++) {
            AlgorithmType algorithmType = algorithms.get(i);
            int keyLength = 0;
            if (algorithmType.getKeyLength() != null) {
                keyLength = algorithmType.getKeyLength();
            }
            int ivLength = 0;
            if (algorithmType.getIVLength() != null) {
                ivLength = algorithmType.getIVLength();
            }
            Algorithm algorithm =
                new Algorithm(algorithmType.getRequiredKey(), algorithmType.getJCEName(),
                              algorithmType.getAlgorithmClass(), keyLength,
                              ivLength, algorithmType.getJCEProvider());
           
            register(algorithmType.getURI(), algorithm);
        }
    }
View Full Code Here

Examples of org.dmg.pmml._40.AlgorithmType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setAlgorithm(AlgorithmType newAlgorithm) {
    AlgorithmType oldAlgorithm = algorithm;
    algorithm = newAlgorithm == null ? ALGORITHM_EDEFAULT : newAlgorithm;
    boolean oldAlgorithmESet = algorithmESet;
    algorithmESet = true;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, _40Package.OUTPUT_FIELD_TYPE__ALGORITHM, oldAlgorithm, algorithm, !oldAlgorithmESet));
View Full Code Here

Examples of org.dmg.pmml._40.AlgorithmType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void unsetAlgorithm() {
    AlgorithmType oldAlgorithm = algorithm;
    boolean oldAlgorithmESet = algorithmESet;
    algorithm = ALGORITHM_EDEFAULT;
    algorithmESet = false;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.UNSET, _40Package.OUTPUT_FIELD_TYPE__ALGORITHM, oldAlgorithm, ALGORITHM_EDEFAULT, oldAlgorithmESet));
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.