Examples of CommandResult


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

        }
    }

    @Override
    public void deleteAsync(DataStore dataStore, DataObject data, AsyncCompletionCallback<CommandResult> callback) {
        callback.complete(new CommandResult());
    }
View Full Code Here

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

                future = _tmpltSvr.createTemplateFromVolumeAsync(volInfo, tmplInfo, store);
            } else {
                throw new CloudRuntimeException("Creating private Template need to specify snapshotId or volumeId");
            }

            CommandResult result = null;
            try {
                result = future.get();
                if (result.isFailed()) {
                    privateTemplate = null;
                    s_logger.debug("Failed to create template" + result.getResult());
                    throw new CloudRuntimeException("Failed to create template" + result.getResult());
                }

                // create entries in template_zone_ref table
                if (_dataStoreMgr.isRegionStore(store)) {
                    // template created on region store
View Full Code Here

Examples of org.apache.geronimo.datastore.impl.remote.messaging.CommandResult

        CommandRequest command = (CommandRequest) body.getContent();

        command.setTarget(this);
       
        CommandResult result = command.execute();
        Msg msg = new Msg();
        body = msg.getBody();
        body.setContent(result);
        MsgOutInterceptor reqOut =
            new HeaderOutInterceptor(
View Full Code Here

Examples of org.boris.xlloop.command.CommandResult

import org.boris.xlloop.menu.SubMenu;

public class TestMenu implements IMenuProvider
{
    public CommandResult execute(String item, String submenu) {
        return new CommandResult();
    }
View Full Code Here

Examples of org.eclipse.gmf.runtime.common.core.command.CommandResult

      protected CommandResult doExecuteWithResult(
          IProgressMonitor progressMonitor, IAdaptable info)
          throws ExecutionException {
        EObject referencedObject = getReferencedObject();
        Resource resource = referencedObject.eResource();
        CommandResult result = super.doExecuteWithResult(
            progressMonitor, info);
        if (resource != null) {
          resource.getContents().add(referencedObject);
        }
        return result;
View Full Code Here

Examples of org.eclipse.gmf.runtime.common.core.command.CommandResult

          DispelElementTypes.ConnectionStatement_2003);

      ConnectionStatementCreateCommand command = new ConnectionStatementCreateCommand(
          request);

      CommandResult result = command.doExecuteWithResult(monitor, info);

      ConnectionStatement statement = (ConnectionStatement) result
          .getReturnValue();

      statement.setExpression(newElement);

      doConfigure(newElement, monitor, info);
View Full Code Here

Examples of org.eclipse.gmf.runtime.common.core.command.CommandResult

          protected CommandResult doExecuteWithResult(
              IProgressMonitor progressMonitor, IAdaptable info)
              throws ExecutionException {
            EObject referencedObject = getReferencedObject();
            Resource resource = referencedObject.eResource();
            CommandResult result = super.doExecuteWithResult(
                progressMonitor, info);
            if (resource != null) {
              resource.getContents().add(referencedObject);
            }
            return result;
          }
        });
        cmd.add(new DeleteCommand(getEditingDomain(), incomingLink));
        continue;
      }
    }
    for (Iterator it = view.getSourceEdges().iterator(); it.hasNext();) {
      Edge outgoingLink = (Edge) it.next();
      if (eu.admire.visual.pmml.treemodel._40.diagram.part.PMMLVisualIDRegistry
          .getVisualID(outgoingLink) == eu.admire.visual.pmml.treemodel._40.diagram.edit.parts.NodeTypeNodeEditPart.VISUAL_ID) {
        DestroyReferenceRequest r = new DestroyReferenceRequest(
            outgoingLink.getSource().getElement(), null,
            outgoingLink.getTarget().getElement(), false);
        cmd.add(new DestroyReferenceCommand(r) {
          protected CommandResult doExecuteWithResult(
              IProgressMonitor progressMonitor, IAdaptable info)
              throws ExecutionException {
            EObject referencedObject = getReferencedObject();
            Resource resource = referencedObject.eResource();
            CommandResult result = super.doExecuteWithResult(
                progressMonitor, info);
            if (resource != null) {
              resource.getContents().add(referencedObject);
            }
            return result;
View Full Code Here

Examples of org.eclipse.gmf.runtime.common.core.command.CommandResult

          DispelElementTypes.ConnectionStatement_2004);

      ConnectionStatementCreateCommand command = new ConnectionStatementCreateCommand(
          request);

      CommandResult result = command.doExecuteWithResult(monitor, info);

      ConnectionStatement statement = (ConnectionStatement) result
          .getReturnValue();

      statement.setExpression(newElement);

      doConfigure(newElement, monitor, info);
View Full Code Here

Examples of org.freerealm.executor.CommandResult

     * @param realm Realm to execute the command
     * @return CommandResult
     */
    public CommandResult execute(Realm realm) {
        settlement.setContiuousProduction(contiuousProduction);
        return new CommandResult(CommandResult.RESULT_OK, "");
    }
View Full Code Here

Examples of org.glassfish.admin.rest.resources.CommandResult

public class AdminCommandStateCmdResultJsonProvider extends AdminCommandStateJsonProvider {
   
    @Override
    protected void addActionReporter(ActionReporter ar, JSONObject json) throws JSONException {
        if (ar != null) {
            CommandResult cr = CompositeUtil.instance().getModel(CommandResult.class);
            cr.setMessage(ar.getMessage());
            cr.setProperties(ar.getTopMessagePart().getProps());
            Properties props = ar.getExtraProperties();
            if (props != null) {
                Map<String, Object> map = new HashMap<String, Object>();
                for (Map.Entry<Object, Object> entry : props.entrySet()) {
                    map.put(entry.getKey().toString(), entry.getValue());
                }
                cr.setExtraProperties(map);
            }
            json.put("command-result", (JSONObject) JsonUtil.getJsonObject(cr));
        }
    }
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.