Examples of PeerToPeerCopy


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

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

    // 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

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

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