Examples of CommandManager


Examples of com.cloudera.flume.master.CommandManager

  void buildMaster() throws IOException {
    cfgMan = new ConfigManager(FlumeMaster.createConfigStore(FlumeConfiguration
        .get()));
    StatusManager statman = new StatusManager();
    flowed = new FlowConfigManager.FailoverFlowConfigManager(cfgMan, statman);
    flumeMaster = new FlumeMaster(new CommandManager(), flowed, statman,
        new MasterAckManager(), FlumeConfiguration.get());
  }
View Full Code Here

Examples of com.cloudera.flume.master.CommandManager

        .get()));
    StatusManager statman = new StatusManager();
    flowed = new FlowConfigManager.FailoverFlowConfigManager(cfgMan, statman);
    logical = new LogicalConfigurationManager(flowed, new ConfigManager(),
        statman);
    flumeMaster = new FlumeMaster(new CommandManager(), logical, statman,
        new MasterAckManager(), FlumeConfiguration.get());
  }
View Full Code Here

Examples of com.cloudera.flume.master.CommandManager

    FlumeNode node = new FlumeNode(cfg);
    node.start();

    // avoiding gossip ack manager until it shuts down cleanly.
    ConfigStore cfgStore = FlumeMaster.createConfigStore(cfg);
    FlumeMaster fm = new FlumeMaster(new CommandManager(), new ConfigManager(
        cfgStore), new StatusManager(), new MasterAckManager(), cfg);

    assertEquals(0, fm.getKnownNodes().size());
    fm.serve();
    LOG.info("flume master 1 open ");
    while (fm.getKnownNodes().size() == 0) {
      Clock.sleep(1000);
    }
    fm.shutdown();
    LOG.info("flume master 1 closed");

    ConfigStore cfgStore2 = FlumeMaster.createConfigStore(cfg);
    FlumeMaster fm2 = new FlumeMaster(new CommandManager(), new ConfigManager(
        cfgStore2), new StatusManager(), new MasterAckManager(), cfg);
    assertEquals(0, fm2.getKnownNodes().size());
    fm2.serve();
    LOG.info("flume master 2 open ");
    while (fm2.getKnownNodes().size() == 0) {
View Full Code Here

Examples of com.cloudera.flume.master.CommandManager

    FlumeNode node = new FlumeNode(cfg);
    node.start();

    // avoiding gossip ack manager until it shuts down cleanly.
    ConfigStore cfgStore = FlumeMaster.createConfigStore(cfg);
    FlumeMaster fm = new FlumeMaster(new CommandManager(), new ConfigManager(
        cfgStore), new StatusManager(), new MasterAckManager(), cfg);

    assertEquals(0, fm.getKnownNodes().size());
    fm.serve();
    LOG.info("flume master 1 open ");
    while (fm.getKnownNodes().size() == 0) {
      Clock.sleep(1000);
    }
    fm.shutdown();
    LOG.info("flume master 1 closed");

    ConfigStore cfgStore2 = FlumeMaster.createConfigStore(cfg);
    FlumeMaster fm2 = new FlumeMaster(new CommandManager(), new ConfigManager(
        cfgStore2), new StatusManager(), new MasterAckManager(), cfg);
    assertEquals(0, fm2.getKnownNodes().size());
    fm2.serve();
    LOG.info("flume master 2 open ");
    while (fm2.getKnownNodes().size() == 0) {
View Full Code Here

Examples of de.kilobyte22.app.kibibyte.command.CommandManager

        eventBusLock.setLockState(true); // BAM
        eventBusLock.setFrozen(true);

        permissionSystem = bot.permissionSystem;
        nickservSystem = bot.nickservSystem;
        commandManager = new CommandManager(bot.commandManager);
        commandManager.setEnabled(false);

        config = new Configuration(new File("config/" + plugin.getName() + ".cfg"));
        logger = new Logger("PLUGIN/" + plugin.getName());
    }
View Full Code Here

Examples of frontend.alphaspawn.tools.command.CommandManager

   * Registers basics command that every bot should have like
   * !help, etc.
   */
  protected void registerBotCommands () {
    // Get the command manager
    CommandManager cmdMgr = CommandManager.getInstance();

    // Register the !help command
    this.objHelpCmd = new Help( this.objConnection );
    cmdMgr.registerCommand( "!help", this.objHelpCmd );
  }
View Full Code Here

Examples of frontend.alphaspawn.tools.command.CommandManager

    }
    else {
      // The player wants to obtain a list of all available commands
      // Retrieve the command manager
      // TODO Print a beautiful help gui
      CommandManager cmdMgr = CommandManager.getInstance();
     
      // Variables use to display the menu
      SortedMap cmdDisplay = new TreeMap();
      int longestCmd = 0;
     
      // Retrieve a list of all commands
      List cmdList = cmdMgr.getCommands();

      // Display list of commands
      for ( Iterator iter = cmdList.iterator() ; iter.hasNext() ; ) {
        Command cmd = (Command)iter.next();
View Full Code Here

Examples of frontend.alphaspawn.tools.command.CommandManager

  /**
   * Registers the command used by this plugin.
   */
  protected void registerCommand () {
    // Get the command manager
    CommandManager cmdMgr = CommandManager.getInstance();
   
    // Check if the plugin command can be registered
    if ( this.objLagCmd == null &&
       this.objConnection != null &&
       this.objServerCommands != null ) {   
      // Register the "lag" command
      this.objLagCmd = new Lag( this.objConnection, this.objServerCommands );
      cmdMgr.registerCommand( "!lag", this.objLagCmd );
    }
  }
View Full Code Here

Examples of frontend.alphaspawn.tools.command.CommandManager

  /**
   * Removes the command used by this plugin.
   */
  protected void removeCommand () {
    // Get the command manager
    CommandManager cmdMgr = CommandManager.getInstance();
   
    // Check if the lag command can be remove
    if ( this.objLagCmd != null ) {
      // Remove the "lag" command
      cmdMgr.removeCommand( "!lag", this.objLagCmd );
      this.objLagCmd = null;
    }
  }
View Full Code Here

Examples of frontend.alphaspawn.tools.command.CommandManager

  /**
   * Registers the command used by this plugin.
   */
  protected void registerCommand () {
    // Get the command manager
    CommandManager cmdMgr = CommandManager.getInstance();
   
    // Check if the plugin command can be registered
    if ( this.objPluginCmd == null &&
       this.objConnection != null &&
       this.objBotOperators != null ) {   
      // Register the "plugin" command
      this.objPluginCmd = new Plugin( this.objConnection, this.objPluginManager, this.objBotOperators );
      cmdMgr.registerCommand( "!plugin", this.objPluginCmd );
    }
  }
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.