Examples of usage()


Examples of org.apache.falcon.latedata.LateDataHandler.usage()

            for (int index = 0; index < pathGroups.length; index++) {
                if (lateFeed.contains(inputFeeds[index])) {
                    long usage = 0;
                    for (String pathElement : pathGroups[index].split(",")) {
                        Path inPath = new Path(pathElement);
                        usage += late.usage(inPath, conf);
                    }
                    feedSizes.put(inputFeeds[index], usage);
                }
            }
        } else {
View Full Code Here

Examples of org.apache.felix.gogo.options.Option.usage()

        boolean login = opt.isSet("login");
        boolean interactive = !opt.isSet("nointeractive");

        if (opt.isSet("help"))
        {
            opt.usage();
            if (login && !opt.isSet("noshutdown"))
            {
                shutdown();
            }
            return null;
View Full Code Here

Examples of org.apache.ivory.latedata.LateDataHandler.usage()

      for (int index = 0; index < pathGroups.length; index++) {
        if (lateFeed.contains(inputFeeds[index])) {
          long usage = 0;
          for (String pathElement : pathGroups[index].split(",")) {
            Path inPath = new Path(pathElement);
            usage += late.usage(inPath, conf);
          }
          feedSizes.put(inputFeeds[index], usage);
        }
      }
    } else {
View Full Code Here

Examples of org.apache.qpid.tools.util.ArgumentsParser.usage()

            arguments.validate();
        }
        catch(IllegalArgumentException e)
        {
            System.out.println("Invalid argument:" + e.getMessage());
            parser.usage(Arguments.class, Arguments.REQUIRED);
            System.out.println("\nRun examples:" );
            System.out.println("  Using Basic authentication:" );
            System.out.println("  java -cp qpid-tools.jar:commons-codec.jar:jackson-core.jar:jackson-mapper.jar \\" );
            System.out.println("    -Djavax.net.ssl.trustStore=java_client_truststore.jks \\");
            System.out.println("    -Djavax.net.ssl.trustStorePassword=password \\");
View Full Code Here

Examples of org.apache.xindice.tools.command.Command.usage()

        Command command;
        try {
            command = (Command) Class.forName(commandClass).newInstance();
            if (config.getBoolean(HELP)) {
                // show command help
                command.usage();
            } else {
                // Register Xindice Database with XML:DB
                DatabaseImpl db = new DatabaseImpl();
                DatabaseManager.registerDatabase(db);
View Full Code Here

Examples of org.jnode.shell.help.Help.usage()

        CommandLine cmd = commands.get(len - 1).commandLine;
        CommandInfo cmdInfo = cmd.getCommandInfo(shell);
        if (cmdInfo != null) {
            try {
                Help help = HelpFactory.getHelpFactory().getHelp(cmd.getCommandName(), cmdInfo);
                help.usage(pw);
                return true;
            } catch (HelpException ex) {
                LOG.info("Unexpected error while getting help for alias / class '" +
                        cmd.getCommandName() + "': " + ex.getMessage(), ex);
            }
View Full Code Here

Examples of org.jnode.shell.help.Help.usage()

        CommandLine cmd = doParseCommandLine(line);
        CommandInfo cmdInfo = cmd.getCommandInfo(shell);
        if (cmdInfo != null) {
            try {
                Help help = HelpFactory.getHelpFactory().getHelp(cmd.getCommandName(), cmdInfo);
                help.usage(pw);
                return true;
            } catch (HelpException ex) {
                LOG.info("Unexpected error while getting help for alias / class '" +
                        cmd.getCommandName() + "': " + ex.getMessage(), ex);
            }
View Full Code Here

Examples of org.jnode.shell.help.Help.usage()

                    errPW.println("Command syntax error: " + ex.getMessage());
                }
                if (cmdLine != null) {
                    Help help = HelpFactory.getHelpFactory().getHelp(
                            cmdLine.getCommandName(), cmdLine.getCommandInfo());
                    help.usage(errPW);
                }
            } catch (HelpException e) {
                errPW.println("Exception while trying to get the command usage");
                stackTrace(ex);
            }
View Full Code Here

Examples of org.xmlBlaster.util.Global.usage()

    */
   public static void main(String args[]) {
      Global glob = new Global();
     
      if (glob.init(args) != 0) { // Get help with -help
         System.out.println(glob.usage());
         System.err.println("Example: java HelloWorld9 -session.name Jeff\n");
         System.exit(1);
      }

      new HelloWorld9(glob);
View Full Code Here

Examples of org.xmlBlaster.util.Global.usage()

    */
   public static void main(String args[]) {
      Global glob = new Global();
     
      if (glob.init(args) != 0) { // Get help with -help
         System.out.println(glob.usage());
         System.err.println("Example: java HelloWorld3 -session.name Jeff\n");
         System.exit(1);
      }

      new HelloWorld3(glob);
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.