Package org.platformlayer.ops.images.direct

Examples of org.platformlayer.ops.images.direct.PeerToPeerCopy


    host.addChild(ManagedDirectory.build(KVM_INSTANCE_DIR, "0755"));

    // Useful for moving images around
    host.addChild(PackageDependency.build("bzip2"));

    PeerToPeerCopy peerToPeerCopy = Injection.getInstance(PeerToPeerCopy.class);
    peerToPeerCopy.addChildren(this);

    {
      PlatformLayerKey owner = model.getKey();
      serviceManager.addServiceInstall(owner, host);
    }
View Full Code Here


    // We always install curl, because we use it to check for http proxy responsiveness
    // TODO: Switch to netcat, to avoid using curl here - it's quite big
    addChild(PackageDependency.build("curl"));

    PeerToPeerCopy peerToPeerCopy = Injection.getInstance(PeerToPeerCopy.class);
    peerToPeerCopy.addChildren(this);

    // if (OpsContext.isDelete()) {
    // OpenstackComputeMachine machine = OpsContext.get().getInstance(OpenstackComputeMachine.class);
    //
    // OpsTarget target = OpsContext.get().getInstance(OpsTarget.class);
View Full Code Here

        downloadTo = cachePath;
      } else {
        downloadTo = targetFilePath;
      }

      PeerToPeerCopy peerToPeerCopy = Injection.getInstance(PeerToPeerCopy.class);
      peerToPeerCopy.copy(host, src.getPath(), target, downloadTo);

      fileOnTarget = downloadTo;
    } else {
      fileOnTarget = src.getPath();
    }
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.images.direct.PeerToPeerCopy

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.