Examples of executeAction()


Examples of com.projity.pm.graphic.spreadsheet.SpreadSheet.executeAction()

    return addNodeForImpl(impl,NodeModel.NORMAL);
  }
  public Node addNodeForImpl(Object impl,int eventType) {
    SpreadSheet spreadSheet = (SpreadSheet) getTopSpreadSheet();
    if (impl == null) {
      spreadSheet.executeAction(MenuActionConstants.ACTION_NEW);
      return null;
    } else {
      return spreadSheet.addNodeForImpl(impl,eventType);
    }
  }
View Full Code Here

Examples of de.grey.ownsync.action.FileAction.executeAction()

            for (int i = 0; i < allFileActions.size(); i++)
            {
                action = (FileAction) allFileActions.get(i);

                OwnSyncStarter.logger.fine(action.toString());
                if (!action.executeAction())
                {
                    OwnSyncStarter.logger.config("Executing action " + action + " failed, sync will be stopped");
                    break;
                }
            }
View Full Code Here

Examples of de.grey.ownsync.action.FileAction.executeAction()

            for (int i = 0; i < allFileActions.size(); i++)
            {
                action = (FileAction) allFileActions.get(i);

                OwnSyncConfiguration.logger.fine(action.toString());
                if (!action.executeAction())
                {
                    OwnSyncConfiguration.logger.config("Executing action " + action + " failed, sync will be stopped");
                    break;
                }
            }
View Full Code Here

Examples of de.grey.ownsync.action.FileAction.executeAction()

            {
                action = (FileAction) allFileActions.get(i);

                OwnSyncStatus.setMessage(action.toString());
                actionStart = System.currentTimeMillis();
                if (!action.executeAction())
                {
                    OwnSyncStatus.appendToMessage(" failed after "+DataFormatter.getTimeString(System.currentTimeMillis() - actionStart));
                    OwnSyncStatus.setMessage("ERROR Executing action " + action + " failed, please retry later");
                    action.incrementActionCount(result);
                }
View Full Code Here

Examples of org.apache.ambari.server.serveraction.ServerActionManager.executeAction()

    ServerActionManager serverActionManager = new ServerActionManagerImpl(clusters);
    Map<String, String> payload = new HashMap<String, String>();
    payload.put(ServerAction.PayloadName.CLUSTER_NAME, clusterName);
    payload.put(ServerAction.PayloadName.CURRENT_STACK_VERSION, newStackId.getStackId());
    serverActionManager.executeAction(ServerAction.Command.FINALIZE_UPGRADE, payload);
    Assert.assertTrue(c.getCurrentStackVersion().equals(newStackId));
  }

  // disabled as upgrade feature is disabled
  @Ignore
View Full Code Here

Examples of org.apache.ambari.server.serveraction.ServerActionManager.executeAction()

    ServerActionManager serverActionManager = new ServerActionManagerImpl(clusters);
    Map<String, String> payload = new HashMap<String, String>();
    payload.put(ServerAction.PayloadName.CLUSTER_NAME, clusterName);
    payload.put(ServerAction.PayloadName.CURRENT_STACK_VERSION, newStackId.getStackId());
    serverActionManager.executeAction(ServerAction.Command.FINALIZE_UPGRADE, payload);
    Assert.assertTrue(c.getCurrentStackVersion().equals(newStackId));
  }

  @Test
  public void testUpdateClusterVersionBasic() throws AmbariException {
View Full Code Here

Examples of org.apache.ambari.server.serveraction.ServerActionManager.executeAction()

    ServerActionManager serverActionManager = new ServerActionManagerImpl(clusters);
    Map<String, String> payload = new HashMap<String, String>();
    payload.put(ServerAction.PayloadName.CLUSTER_NAME, clusterName);
    payload.put(ServerAction.PayloadName.CURRENT_STACK_VERSION, newStackId.getStackId());
    serverActionManager.executeAction(ServerAction.Command.FINALIZE_UPGRADE, payload);
    Assert.assertTrue(c.getCurrentStackVersion().equals(newStackId));
  }

  // disabled as upgrade feature is disabled
  @Ignore
View Full Code Here

Examples of org.apache.ambari.server.serveraction.ServerActionManager.executeAction()

    ServerActionManager serverActionManager = new ServerActionManagerImpl(clusters);
    Map<String, String> payload = new HashMap<String, String>();
    payload.put(ServerAction.PayloadName.CLUSTER_NAME, clusterName);
    payload.put(ServerAction.PayloadName.CURRENT_STACK_VERSION, newStackId.getStackId());
    serverActionManager.executeAction(ServerAction.Command.FINALIZE_UPGRADE, payload);
    Assert.assertTrue(c.getCurrentStackVersion().equals(newStackId));
  }

  @Test
  public void testUpdateClusterVersionBasic() throws AmbariException {
View Full Code Here

Examples of org.apache.ambari.server.serveraction.ServerActionManager.executeAction()

    ServerActionManager serverActionManager = new ServerActionManagerImpl(clusters);
    Map<String, String> payload = new HashMap<String, String>();
    payload.put(ServerAction.PayloadName.CLUSTER_NAME, clusterName);
    payload.put(ServerAction.PayloadName.CURRENT_STACK_VERSION, newStackId.getStackId());
    serverActionManager.executeAction(ServerAction.Command.FINALIZE_UPGRADE, payload);
    Assert.assertTrue(c.getCurrentStackVersion().equals(newStackId));
  }

  // disabled as upgrade feature is disabled
  @Ignore
View Full Code Here

Examples of org.apache.ambari.server.serveraction.ServerActionManager.executeAction()

    ServerActionManager serverActionManager = new ServerActionManagerImpl(clusters);
    Map<String, String> payload = new HashMap<String, String>();
    payload.put(ServerAction.PayloadName.CLUSTER_NAME, clusterName);
    payload.put(ServerAction.PayloadName.CURRENT_STACK_VERSION, newStackId.getStackId());
    serverActionManager.executeAction(ServerAction.Command.FINALIZE_UPGRADE, payload);
    Assert.assertTrue(c.getCurrentStackVersion().equals(newStackId));
  }

  @Test
  public void testUpdateClusterVersionBasic() throws AmbariException {
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.