Package org.apache.uima.ducc.common.utils

Examples of org.apache.uima.ducc.common.utils.DuccPropertiesResolver


    logger.trace(methodName, null, messages.fetch("enter"));
    try {
      StartType startType = getStartType(args);
      logger.info(methodName, null, "##### "+startType+" #####");
      boolean saveState = false;
      DuccPropertiesResolver dpr = DuccPropertiesResolver.getInstance();
      String jdHostClass = dpr.getCachedProperty(DuccPropertiesResolver.ducc_jd_host_class);
      long t0 = System.currentTimeMillis();
      synchronized(workMap) {
        Iterator<IDuccWork> iterator = workMap.values().iterator();
        while(iterator.hasNext()) {
          IDuccWork duccWork = iterator.next();
View Full Code Here


    String key = "DUCC_HOME";
    String value = System.getenv(key);
    if(value != null) {
      System.setProperty(key, value);
    }
    DuccPropertiesResolver dpr = DuccPropertiesResolver.getInstance();
    key = "ducc.agent.launcher.ducc_spawn_path";
    value = dpr.getFileProperty("ducc.agent.launcher.ducc_spawn_path");
    if(value != null) {
      System.setProperty(key, value);
    }
    UserAuthenticate instance = new UserAuthenticate();
    String result = instance.launch(args);
View Full Code Here

    }
  }
 
  private void init() {
    // <Jira 3414>
    DuccPropertiesResolver dpr = DuccPropertiesResolver.getInstance();
    Boolean use_lock_file = new Boolean(dpr.getProperty(DuccPropertiesResolver.ducc_orchestrator_use_lock_file));
    if(use_lock_file) {
      ComponentHelper.oneInstance(IDuccEnv.DUCC_STATE_DIR,"orchestrator");
    }
    // </Jira 3414>
    setPropertiesFileManager(new PropertiesFileManager(IDuccLoggerComponents.abbrv_orchestrator, IDuccEnv.DUCC_STATE_DIR, constOrchestratorProperties, false, true));
View Full Code Here

  }
 
  private void processJdHostClass() {
    String methodName = "processJdHostClass";
    logger.trace(methodName, null, messages.fetch("enter"));
    DuccPropertiesResolver dpr = DuccPropertiesResolver.getInstance();
    String jdHostClass = dpr.getCachedProperty(DuccPropertiesResolver.ducc_jd_host_class);
    String jdHostDescription = dpr.getCachedProperty(DuccPropertiesResolver.ducc_jd_host_description);
    String jdHostMemorySize = dpr.getCachedProperty(DuccPropertiesResolver.ducc_jd_host_memory_size);
    String jdHostumberOfMachines = dpr.getCachedProperty(DuccPropertiesResolver.ducc_jd_host_number_of_machines);
    String jdHostUser = dpr.getCachedProperty(DuccPropertiesResolver.ducc_jd_host_user);
    ReservationRequestProperties reservationRequestProperties = new ReservationRequestProperties();
    reservationRequestProperties.put(ReservationSpecificationProperties.key_scheduling_class, jdHostClass);
    reservationRequestProperties.put(ReservationSpecificationProperties.key_description, jdHostDescription);     
    reservationRequestProperties.put(ReservationSpecificationProperties.key_instance_memory_size, jdHostMemorySize);
    reservationRequestProperties.put(ReservationSpecificationProperties.key_number_of_instances, jdHostumberOfMachines);
View Full Code Here

    if(terminateEnabled) {
      if(!duccwork.isCompleted()) {
        String disabled = getDisabledWithHover(request,duccwork);
        String user = duccwork.getStandardInfo().getUser();
        if(user != null) {
          DuccPropertiesResolver dpr = DuccPropertiesResolver.getInstance();
          String jdHostUser = dpr.getCachedProperty(DuccPropertiesResolver.ducc_jd_host_user);
          // We presume that user is sufficient to identify JD shares
          if(user.equals(jdHostUser)) {
            disabled = "disabled=\"disabled\"";
          }
        }
View Full Code Here

    if(terminateEnabled) {
      if(!duccwork.isCompleted()) {
        String disabled = getDisabledWithHover(request,duccwork);
        String user = duccwork.getStandardInfo().getUser();
        if(user != null) {
          DuccPropertiesResolver dpr = DuccPropertiesResolver.getInstance();
          String jdHostUser = dpr.getCachedProperty(DuccPropertiesResolver.ducc_jd_host_user);
          // We presume that user is sufficient to identify JD shares
          if(user.equals(jdHostUser)) {
            disabled = "disabled=\"disabled\"";
          }
        }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.common.utils.DuccPropertiesResolver

Copyright © 2018 www.massapicom. 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.