Examples of MemorySpecification


Examples of org.apache.uima.ducc.orchestrator.utilities.MemorySpecification

    String key;
    String value;
    // memory size
    key = ReservationRequestProperties.key_number_of_instances;
    String memorySize = (String) properties.get(key);
    MemorySpecification memorySpecification = new MemorySpecification(memorySize);
    value = memorySpecification.getSize();
    if(value == null) {
      String reason = createReason("invalid", key, value);
      addError(properties,reason);
      retVal = false;
    }
View Full Code Here

Examples of org.apache.uima.ducc.orchestrator.utilities.MemorySpecification

    // scheduling info
    DuccSchedulingInfo schedulingInfo = new DuccSchedulingInfo();
    duccWorkReservation.setSchedulingInfo(schedulingInfo);
    schedulingInfo.setSchedulingClass(reservationRequestProperties.getProperty(ReservationSpecificationProperties.key_scheduling_class));
    String memorySize = reservationRequestProperties.getProperty(ReservationSpecificationProperties.key_instance_memory_size);
    MemorySpecification memorySpecification = new MemorySpecification(memorySize);
    schedulingInfo.setShareMemorySize(memorySpecification.getSize());
    schedulingInfo.setShareMemoryUnits(memorySpecification.getMemoryUnits());
    schedulingInfo.setInstancesCount(reservationRequestProperties.getProperty(ReservationSpecificationProperties.key_number_of_instances));
    logger.info(methodName, duccWorkReservation.getDuccId(), messages.fetchLabel("user")+standardInfo.getUser());
    logger.info(methodName, duccWorkReservation.getDuccId(), messages.fetchLabel("description")+standardInfo.getDescription());
    logger.info(methodName, duccWorkReservation.getDuccId(), messages.fetchLabel("class")+schedulingInfo.getSchedulingClass());
    logger.info(methodName, duccWorkReservation.getDuccId(), messages.fetchLabel("priority")+schedulingInfo.getSchedulingPriority());
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.