Package org.apache.uima.ducc.orchestrator.OrchestratorConstants

Examples of org.apache.uima.ducc.orchestrator.OrchestratorConstants.StartType


 
  private StartType getStartTypeProperty()
  {
    String methodName = "getStartTypeProperty";
    logger.trace(methodName, null, messages.fetch("enter"));
    StartType startType = StartType.warm;
    String property = commonConfiguration.orchestratorStartType;
    if(property != null) {
      String startTypeProperty = property.trim().toLowerCase();
      if(startTypeProperty.equals("cold")) {
        startType = StartType.cold;
View Full Code Here


 
  private StartType getStartTypeOverride(String[] args)
  {
    String methodName = "getStartTypeOverride";
    logger.trace(methodName, null, messages.fetch("enter"));
    StartType startType = null;
    // override start type if specified on command line
    if(args != null) {
      for( String arg : args) {
        logger.debug(methodName, null, "arg: "+arg);
        String flag = arg.trim();
View Full Code Here

 
  private StartType getStartType(String[] args)
  {
    String methodName = "getStartType";
    logger.trace(methodName, null, messages.fetch("enter"));
    StartType startType = OrchestratorConstants.startTypeDefault;
    StartType property = getStartTypeProperty();
    StartType override = getStartTypeOverride(args) ;
    StringBuffer sb = new StringBuffer();
    sb.append("start type: ");
    if(override != null) {
      startType = override;
      sb.append(startType);
View Full Code Here

    }
  public void start(DuccService service, String[] args) throws Exception {
    String methodName = "start";
    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();
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.orchestrator.OrchestratorConstants.StartType

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.