Examples of usage()


Examples of com.datasift.client.DataSiftClient.usage()

        //returns the cost of executing the request which produced this result
        result.rateLimitCost();
        //what's left of your rate limit quota
        result.rateLimitRemaining();

        Usage usage = datasift.usage().sync();

        Stream stream = Stream.fromString("13e9347e7da32f19fcdb08e297019d2e");
        Dpu dpu = datasift.dpu(stream).sync();

        Balance balance = datasift.balance().sync();
View Full Code Here

Examples of com.gitblit.transport.ssh.commands.DispatchCommand.usage()

      }

      // display the core commands
      SshCommandFactory cmdFactory = (SshCommandFactory) session.getFactoryManager().getCommandFactory();
      DispatchCommand root = cmdFactory.createRootDispatcher(client, "");
      String usage = root.usage().replace("\n", nl);
      msg.append(usage);

      return msg.toString();
    }
View Full Code Here

Examples of com.persistit.util.ArgParser.usage()

                "_flag|a|Analyze page pattern" }).strict();
        final String fileName = ap.getStringValue("file");
        final long skip = ap.getLongValue("skip");
        final int count = ap.getIntValue("count");
        if (fileName == null) {
            ap.usage();
        } else {
            final IOMeter ioMeter = new IOMeter();
            final DataInputStream is = new DataInputStream(new BufferedInputStream(new FileInputStream(fileName)));
            is.skip(skip * DUMP_RECORD_LENGTH);
            ioMeter.dump(is, count == 0 ? Integer.MAX_VALUE : count, ap.isFlag('a'));
View Full Code Here

Examples of com.sk89q.intake.Command.usage()

        Command annotation = method.getAnnotation(Command.class);
       
        // Handle the case for old commands where no usage is set and all of its
        // parameters are provider bindings, so its usage information would
        // be blank and would imply that there were no accepted parameters
        if (annotation != null && annotation.usage().isEmpty() && (annotation.min() > 0 || annotation.max() > 0)) {
            boolean hasUserParameters = false;
           
            for (ParameterData parameter : parameters) {
                if (parameter.getBinding().getBehavior(parameter) != BindingBehavior.PROVIDES) {
                    hasUserParameters = true;
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.Command.usage()

        Command annotation = method.getAnnotation(Command.class);
       
        // Handle the case for old commands where no usage is set and all of its
        // parameters are provider bindings, so its usage information would
        // be blank and would imply that there were no accepted parameters
        if (annotation != null && annotation.usage().isEmpty()
                && (annotation.min() > 0 || annotation.max() > 0)) {
            boolean hasUserParameters = false;
           
            for (ParameterData parameter : parameters) {
                if (parameter.getBinding().getBehavior(parameter) != BindingBehavior.PROVIDES) {
View Full Code Here

Examples of d3d11.resources.D3D11_BUFFER_DESC.Usage()

    final ID3D11Buffer vertexBuffer = device.CreateBuffer(bufferDesc, initData);
    delete(initData)// Delete data of regain memory
   
    // Create constant buffer (size must be multiple of 16)
    bufferDesc.BindFlags(D3D11_BIND_CONSTANT_BUFFER);
    bufferDesc.Usage(D3D11_USAGE_DYNAMIC);
    bufferDesc.CPUAccessFlags(D3D11_CPU_ACCESS_WRITE);
    bufferDesc.ByteWidth((int) sizeOf(D3DXMATRIX.class));
    final ID3D11Buffer constBuffer = device.CreateBuffer(bufferDesc, null);
   
    final AtomicInteger angle = new AtomicInteger(0);
View Full Code Here

Examples of io.airlift.airline.Arguments.usage()

                    else {
                        title = field.getName();
                    }

                    String description = argumentsAnnotation.description();
                    String usage = argumentsAnnotation.usage();
                    boolean required = argumentsAnnotation.required();

                    injectionMetadata.arguments.add(new ArgumentsMetadata(title, description, usage, required, path));
                }
            }
View Full Code Here

Examples of jug.client.command.api.Command.usage()

        for (Map.Entry<String, Class<?>> command : commands.entrySet()) {
            try {
                final Class<?> clazz = command.getValue();
                final Command annotation = clazz.getAnnotation(Command.class);
                System.out.println(annotation.name() + ": " + annotation.description());
                System.out.println("\tUsage: " + annotation.usage());
            } catch (Exception e) {
                // ignored = command not available
            }
        }
    }
View Full Code Here

Examples of org.apache.cloudstack.api.APICommand.usage()

            } else {
              System.out.println("Command " + apiCommand.getName() + " misses description");
            }

           
            String commandUsage = impl.usage();
            if (commandUsage != null && !commandUsage.isEmpty()) {
              apiCommand.setUsage(commandUsage);
            }
           
            //Set version when the API is added
View Full Code Here

Examples of org.apache.commons.cli2.HelpLine.usage()

        // calculate the maximum width of the usage strings
        int usageWidth = 0;

        for (final Iterator i = helpLines.iterator(); i.hasNext();) {
            final HelpLine helpLine = (HelpLine) i.next();
            final String usage = helpLine.usage(getLineUsageSettings(), getComparator());
            usageWidth = Math.max(usageWidth, usage.length());
        }

        // build a blank string to pad wrapped descriptions
        final StringBuffer blankBuffer = new StringBuffer();
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.