Package org.platformlayer.ops.filesystem

Examples of org.platformlayer.ops.filesystem.DownloadFileByHash


    return config;
  }

  protected DownloadFileByHash buildDownload() {
    DownloadFileByHash download = injected(DownloadFileByHash.class);
    download.filePath = new File(jettyTemplate.getWarsStagingDir(), getWarName());
    download.specifier = context.source;

    return download;
  }
View Full Code Here


    return injected(ZookeeperInstanceModel.class);
  }

  @Override
  protected DownloadFileByHash buildDownload() {
    DownloadFileByHash download = super.buildDownload();

    // TODO: Would be nice not to hard code this mirror
    // String apacheMirror = "http://ftp.osuosl.org/pub/apache/";
    String apacheMirror = "http://apache.osuosl.org/";

    // This probably does need to be hard-coded though
    // (though maybe selectable from a list of supported releases)

    // String url = apacheMirror + "zookeeper/zookeeper-3.3.5/zookeeper-3.3.5.tar.gz";
    // download.setUrl(url);
    // download.hash = new Md5Hash("4c2c969bce8717d6443e184ff91dfdc7");

    String url = apacheMirror + "zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz";
    download.setUrl(url);
    download.hash = new Md5Hash("f64fef86c0bf2e5e0484d19425b22dcb");

    return download;
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.filesystem.DownloadFileByHash

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.