Package org.shiftone.jrat.util.io

Examples of org.shiftone.jrat.util.io.Dir


  private static Dir createOutputDir() {

    String applicationName = Settings.getApplicationName();
    Format format = new SimpleDateFormat("yyyy-MM-dd_a-hh-mm-ss");
    Dir parent = Settings.getBaseDirectory();
    if (applicationName != null) {
      parent = parent.createChildDir(applicationName);
    }
    parent.make();
    Dir outputDir = null;
    int maxAttempts = 100;
    while ((outputDir == null) && (maxAttempts > 0)) {
      try {
        Dir dir = parent.createChildDir(format.format(new Date()));
        dir.make();
        outputDir = dir;
      } catch (Exception e) {
        pause();
      }
      maxAttempts--;
View Full Code Here


    return getInteger(RMI_REGISTRY_PORT, DEFAULT_RMI_REGISTRY_PORT);
  }

  public static Dir getBaseDirectory() {

    return new Dir(getString(BASE_DIRECTORY, DEFAULT_BASE_DIRECTORY));
  }
View Full Code Here

TOP

Related Classes of org.shiftone.jrat.util.io.Dir

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.