Examples of execute()


Examples of org.apache.geronimo.main.Bootstrapper.execute()

        }
       
        initializeLogging(parser);
       
        Bootstrapper boot = createBootstrapper(parser);
        return boot.execute(parser);
    }

    protected Bootstrapper createBootstrapper(CLParser parser) {
        return new Bootstrapper();
    }
View Full Code Here

Examples of org.apache.geronimo.network.protocol.control.commands.MenuItem.execute()

        context.setClockPool(clockPool);
        context.setSelectorManager(selectorManager);

        for (Iterator iter = menu.iterator(); iter.hasNext();) {
            MenuItem item = (MenuItem) iter.next();
            Object object = item.execute(context);

            if (object != null && object instanceof Protocol) {
                push((Protocol) object);
            }
        }
View Full Code Here

Examples of org.apache.geronimo.st.core.commands.IDeploymentCommand.execute()

    throw new CoreException(ms);
  }

  protected IStatus distribute(IModule module) throws Exception {
    IDeploymentCommand cmd = DeploymentCommandFactory.createDistributeCommand(module, getServer());
    return cmd.execute(_monitor);
  }

  protected IStatus start(IModule module) throws Exception {
    TargetModuleID id = DeploymentUtils.getTargetModuleID(getServer(), module);
    IDeploymentCommand cmd = DeploymentCommandFactory.createStartCommand(new TargetModuleID[] { id }, module, getServer());
View Full Code Here

Examples of org.apache.geronimo.st.core.operations.ImportDeploymentPlanOperation.execute()

                model.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, project.getName());
                try {
                    IFacetedProject facetedProject = ProjectFacetsManager.create(project);
                    model.setProperty(IFacetProjectCreationDataModelProperties.FACET_RUNTIME, facetedProject.getPrimaryRuntime());
                    IDataModelOperation op = new ImportDeploymentPlanOperation(model);
                    op.execute(new NullProgressMonitor(), null);
                } catch (Exception e) {
                   throw new PartInitException(e.getMessage());
                }
               
                try {
View Full Code Here

Examples of org.apache.geronimo.st.core.operations.SharedLibEntryCreationOperation.execute()

    IDataModel model = DataModelFactory.createDataModel(new SharedLibEntryDataModelProvider());
    model.setProperty(ISharedLibEntryCreationDataModelProperties.MODULES, module);
    model.setProperty(ISharedLibEntryCreationDataModelProperties.SERVER, getServer());
    IDataModelOperation op = new SharedLibEntryCreationOperation(model);
    try {
      op.execute(monitor, null);
    } catch (ExecutionException e) {
      return new Status(IStatus.ERROR, Activator.PLUGIN_ID, 0, e.getMessage(), e.getCause());
    }
    return Status.OK_STATUS;
  }
View Full Code Here

Examples of org.apache.geronimo.twiddle.Twiddle.execute()

       
        Twiddle twiddle = new Twiddle(world);
        twiddle.configure(config);
       
        if (args.length != 0) {
            int result = twiddle.execute(args);
            System.exit(result);
        }
        else {
            //
            // TODO: Start the interactive console
View Full Code Here

Examples of org.apache.hadoop.chukwa.datatrigger.TriggerAction.execute()

        log.info(actionName + " handling " + files.length + " events");

        //send the files that were just added benieth the repos/ dir.
        FileStatus[] events = fs.listStatus(files);
        action.execute(conf, fs, events, TriggerEvent.POST_DEMUX_SUCCESS);
      }
    } catch(Exception e) {
      log.error(ExceptionUtil.getStackTrace(e));
      return false;
    }
View Full Code Here

Examples of org.apache.hadoop.chukwa.inputtools.plugin.IPlugin.execute()

    return cmde;
  }

  public static void main(String[] args) {
    IPlugin plugin = new PbsNodePlugin();
    JSONObject result = plugin.execute();
    System.out.print("Result: " + result);

    if ((Integer) result.get("status") < 0) {
      System.out.println("Error");
      log.warn("[ChukwaError]:" + PbsNodePlugin.class + ", "
View Full Code Here

Examples of org.apache.hadoop.chukwa.util.DatabaseWriter.execute()

    buffer = readFile(aFile);
    String tables[] = buffer.split(";");
    for(String table : tables) {
      if(table.length()>5) {
        try {
          db.execute(table);
        } catch (Exception e) {
          fail("Fail to retrieve meta data from database table: "+table);
        }
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.client.HConnection.execute()

        final byte[] author = Bytes.toBytes("author");
        final byte[] title = Bytes.toBytes("title");

        HConnection connection = HConnectionManager.newConnection();

        connection.execute("CREATE TEMP MAPPING testobjects alias testobjects2"
                           + "("
                           + "keyval key, "
                           + "family1 ("
                           + "  author string alias author, "
                           + "  title string  alias title"
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.