Package com.cloudera.flume.master

Examples of com.cloudera.flume.master.Execable


  /**
   * Build an execable that will execute the command.
   */
  public static Execable buildExecable() {
    return new Execable() {
      @Override
      public void exec(String[] args) throws MasterExecException, IOException {
        Preconditions.checkArgument(args.length == 2, "Usage: physicalNode logicalNode");
        String physical = args[0];
        String logical = args[1];
View Full Code Here


  /**
   * Build an execable that will unmap all Logical nodes.
   */

  public static Execable buildUnmapAllExecable() {
    return new Execable() {
      @Override
      public void exec(String[] args) throws IOException {
        Preconditions.checkArgument(args.length == 0);
        FlumeMaster.getInstance().getSpecMan().unmapAllLogicalNodes();
      }
View Full Code Here

  /**
   * Build an execable that will execute the command.
   */
  public static Execable buildExecable() {
    return new Execable() {
      @Override
      public void exec(String[] args) throws MasterExecException, IOException {
        Preconditions.checkArgument(args.length == 2);
        String physical = args[0];
        String logical = args[1];
View Full Code Here

  /**
   * Actual Command execution.
   */
  public static Execable buildExecable() {
    return new Execable() {
      @Override
      public void exec(String[] argv) throws IOException {
        Preconditions.checkArgument(argv.length == 0);
        FlumeMaster master = FlumeMaster.getInstance();
        master.getSpecMan().updateAll();
View Full Code Here

  /**
   * Actual Command execution.
   */
  public static Execable buildExecable() {
    return new Execable() {
      @Override
      public void exec(String[] argv) throws IOException {
        Preconditions.checkArgument(argv.length == 0);
        FlumeMaster master = FlumeMaster.getInstance();
        master.getSpecMan().refreshAll();
View Full Code Here

  /**
   * Actual Command execution.
   */
  public static Execable buildExecable() {
    return new Execable() {
      @Override
      public void exec(String[] argv) throws IOException {
        Preconditions.checkArgument(argv.length == 1);
        FlumeMaster master = FlumeMaster.getInstance();
        String node = argv[0];
View Full Code Here

  /**
   * Build an execable that will execute the command.
   */
  public static Execable buildExecable() {
    return new Execable() {
      // TODO(Vibhor): Once the PhysicalNodeThrottling patch is in, change the
      // preconditions here and add the ability to get the physicalNode
      // throttling limit.
      @Override
      public void exec(String[] args) throws MasterExecException, IOException {
View Full Code Here

  /**
   * Actual Command execution.
   */
  public static Execable buildExecable() {
    return new Execable() {
      @Override
      public void exec(String[] argv) throws IOException {
        Preconditions.checkArgument(argv.length == 1);
        FlumeMaster master = FlumeMaster.getInstance();
        try {
View Full Code Here

  /**
   * Build an execable that will execute the command.
   */
  public static Execable buildExecable() {
    return new Execable() {
      @Override
      public void exec(String[] args) throws MasterExecException, IOException {
        Preconditions.checkArgument(args.length == 1);
        String logical = args[0];
        FlumeMaster.getInstance().getSpecMan().removeLogicalNode(logical);
View Full Code Here

  /**
   * Actual Command execution.
   */
  public static Execable buildExecable() {
    return new Execable() {
      @Override
      public void exec(String[] argv) throws IOException {
        Preconditions.checkArgument(argv.length == 0);
        FlumeMaster master = FlumeMaster.getInstance();
        master.getStatMan().purgeAll();
View Full Code Here

TOP

Related Classes of com.cloudera.flume.master.Execable

Copyright © 2018 www.massapicom. 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.