Examples of CopyCommand


Examples of com.aragost.javahg.commands.CopyCommand

    public final String getCommandName() {
        return "copy";
    }

    public static CopyCommand on(Repository repository) {
        return new CopyCommand(repository);
    }
View Full Code Here

Examples of com.aragost.javahg.commands.CopyCommand

    public final String getCommandName() {
        return "copy";
    }

    public static CopyCommand on(Repository repository) {
        return new CopyCommand(repository);
    }
View Full Code Here

Examples of com.cloudloop.client.cli.commands.CopyCommand

  CommandFactory.getInstance( ).registerCommand( new CatCommand( ) );
  CommandFactory.getInstance( ).registerCommand( new ConfigCommand( ) );
  CommandFactory.getInstance( ).registerCommand( new RmCommand( ) );
  CommandFactory.getInstance( ).registerCommand( new RmDirCommand( ) );
  CommandFactory.getInstance( ).registerCommand( new ChangeDirCommand( ) );
  CommandFactory.getInstance( ).registerCommand( new CopyCommand( ) );
  CommandFactory.getInstance( ).registerCommand( new ListCommand( ) );
  CommandFactory.getInstance( ).registerCommand( new MkDirCommand( ) );
  CommandFactory.getInstance( )
    .registerCommand( new PresentWorkingDirCommand( ) );
    }
View Full Code Here

Examples of net.sf.graphiti.ui.commands.copyPaste.CopyCommand

  }

  @Override
  public void run() {
    // execute the copy command
    CopyCommand command = new CopyCommand(getSelectedObjects());
    command.execute();
  }
View Full Code Here

Examples of org.apache.cloudstack.storage.command.CopyCommand

        boolean needDelegation = false;

        //NOTE: the hostid can be a hypervisor host, or a ssvm agent. For copycommand, if it's for volume upload, the hypervisor
        //type is empty, so we need to check the format of volume at first.
        if (cmd instanceof CopyCommand) {
            CopyCommand cpyCommand = (CopyCommand)cmd;
            DataTO srcData = cpyCommand.getSrcTO();
            DataStoreTO srcStoreTO = srcData.getDataStore();
            DataTO destData = cpyCommand.getDestTO();
            DataStoreTO destStoreTO = destData.getDataStore();

            if (srcData.getObjectType() == DataObjectType.VOLUME) {
                VolumeObjectTO volumeObjectTO = (VolumeObjectTO)srcData;
                if (Storage.ImageFormat.OVA == volumeObjectTO.getFormat()) {
View Full Code Here

Examples of org.apache.cloudstack.storage.command.CopyCommand

                if (!answer.getResult()) {
                    return answer;
                }
                TemplateObjectTO newTemplate = (TemplateObjectTO)answer.getNewData();
                newTemplate.setDataStore(srcDataStore);
                CopyCommand newCpyCmd = new CopyCommand(newTemplate, destData, cmd.getWait(), cmd.executeInSequence());
                return copyFromNfsToS3(newCpyCmd);
            }
        }
        s_logger.debug("Failed to create templat from snapshot");
        return new CopyCmdAnswer("Unsupported prototcol");
View Full Code Here

Examples of org.apache.cloudstack.storage.command.CopyCommand

            if (needCacheStorage(srcData, destData)) {
                Scope destScope = pickCacheScopeForCopy(srcData, destData);
                srcForCopy = cacheData = cacheMgr.createCacheObject(srcData, destScope);
            }

            CopyCommand cmd = new CopyCommand(srcForCopy.getTO(), destData.getTO(), _primaryStorageDownloadWait, _mgmtServer.getExecuteInSequence());
            EndPoint ep = selector.select(srcForCopy, destData);
            answer = ep.sendMessage(cmd);

            if (cacheData != null) {
                if (srcData.getType() == DataObjectType.VOLUME && destData.getType() == DataObjectType.VOLUME) {
View Full Code Here

Examples of org.apache.cloudstack.storage.command.CopyCommand

            String value = configDao.getValue(Config.CreateVolumeFromSnapshotWait.toString());
            int _createVolumeFromSnapshotWait = NumbersUtil.parseInt(value,
                    Integer.parseInt(Config.CreateVolumeFromSnapshotWait.getDefaultValue()));

            CopyCommand cmd = new CopyCommand(srcData.getTO(), volObj.getTO(), _createVolumeFromSnapshotWait, _mgmtServer.getExecuteInSequence());
            EndPoint ep = selector.select(snapObj, volObj);
            Answer answer = ep.sendMessage(cmd);

            return answer;
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.cloudstack.storage.command.CopyCommand

            }
        }
    }

    protected Answer cloneVolume(DataObject template, DataObject volume) {
        CopyCommand cmd = new CopyCommand(template.getTO(), volume.getTO(), 0, _mgmtServer.getExecuteInSequence());
        try {
            EndPoint ep = selector.select(volume.getDataStore());
            Answer answer = ep.sendMessage(cmd);
            return answer;
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.cloudstack.storage.command.CopyCommand

            objOnImageStore.processEvent(Event.OperationSuccessed, answer);

            objOnImageStore.processEvent(Event.CopyingRequested);

            CopyCommand cmd = new CopyCommand(objOnImageStore.getTO(), destData.getTO(), _copyvolumewait, _mgmtServer.getExecuteInSequence());
            EndPoint ep = selector.select(objOnImageStore, destData);
            answer = ep.sendMessage(cmd);

            if (answer == null || !answer.getResult()) {
                if (answer != null) {
                    s_logger.debug("copy to primary store failed: " + answer.getDetails());
                }
                objOnImageStore.processEvent(Event.OperationFailed);
                imageStore.delete(objOnImageStore);
                return answer;
            }

            objOnImageStore.processEvent(Event.OperationSuccessed);
            imageStore.delete(objOnImageStore);
            return answer;
        } else {
            DataObject cacheData = cacheMgr.createCacheObject(srcData, destScope);
            CopyCommand cmd = new CopyCommand(cacheData.getTO(), destData.getTO(), _copyvolumewait, _mgmtServer.getExecuteInSequence());
            EndPoint ep = selector.select(cacheData, destData);
            Answer answer = ep.sendMessage(cmd);
            // delete volume on cache store
            if (cacheData != null) {
                cacheMgr.deleteCacheObject(cacheData);
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.