添加一个命令
@param pCommand
355855
public void addCommand(Command pCommand) {
        if (!mCommands.containsKey(pCommand.getName())) {
            mCommands.put(pCommand.getName(), pCommand);
        }
    }
483909
def addCmdClass(self, ctor, **opts):
        '''
        
        '''
        item = ctor(self, **opts)
        name = item.getCmdName()
        self.cmds[name] = item
812775
public void put(int index, RPCParameter param) {
        expand(index);

        if (index < params.size()) {
            params.set(index, param);
        } else {
            params.add(param);
        }
    }
1223392
def _add(self, name, *args, **kwargs):
        ''''''

        self.commands.append(Command(name, args, kwargs))
1326240
public function addConsoleCommands()
    {
        $this->getConsole()->addUserArgumentsAndOptions();

        foreach ($this->tasks as $name => $task) {
            if ($task->isPrivate()) {
                continue;
            }

            $this->getConsole()->add(new TaskCommand($name, $task->getDescription(), $this));
        }
    }
386353
protected function addImpliedCommands()
    {
        if (count($this->columns) > 0 && ! $this->creating()) {
            array_unshift($this->commands, $this->createCommand('add'));
        }

        $this->addFluentIndexes();
    }
498263
private void init(Set<String> pCommands, String ... pArgs) {
        quiet = options.containsKey("quiet");
        verbose = options.containsKey("verbose");
        jarFile = lookupJarFile();

        // Special cases first
        extraArgs = checkCommandAndArgs(pCommands, pArgs);
    }
824783
private void voidCommand(final String command) throws IOException {
		synchronized (this.asyncMutex) {
			this.out.write(command + "\n");
			this.out.flush();
		}
	}
1002159
public void addChild(Command cmd)
	{
		if (cmd != null)
		{
			cmd.setContext(this);
			commands.add(cmd);
		}
	}
1096317
public void runNextPendingCommand() {
    long peakDelay = mQueue.getHeadDelay();
    ScheduledTask<?> scheduledTask = mQueue.pop();
    scheduledTask.run();
    if (!scheduledTask.isCancelled() && scheduledTask.isRepeat()) {
      mQueue.add(scheduledTask.mRepeatDelay + peakDelay, scheduledTask);
    }
  }
1283543
function addCommand() {
        CommandManager.register(Strings.CMD_HEALTH_DATA_STATISTICS, healthDataCmdId, handleHealthDataStatistics);

        menu.addMenuItem(healthDataCmdId, "", Menus.AFTER, Commands.HELP_SHOW_EXT_FOLDER);
        menu.addMenuDivider(Menus.AFTER, Commands.HELP_SHOW_EXT_FOLDER);
    }
493521
def add_command(self, command):
        
        self._commands.append(command)
        self._build_command_chain(command)
1071119
public void addClient(String pUserName, WebSocketSession pClient) {
        if (!mClients.containsKey(pUserName)) {
            LogHelper.info("", "增加客户端；name:" + pUserName, "MyClientFactory.addClient");
            mClients.put(pUserName, pClient);
            onAddClient(pUserName, pClient);
        } else {
            if (!mClients.get(pUserName).getId().equals(pClient.getId()) && mClients.get(pUserName).isOpen()) {
                changeClient(pUserName, pClient);
            }
        }
    }
571727
def add_command(self, cmd, name=None):
        
        name = name or cmd.name
        if name is None:
            raise TypeError('Command has no name.')
        _check_multicommand(self, name, cmd, register=True)
        self.commands[name] = cmd
1364898
public void add(HostPort hp) {
        if (this.vector == null) {
            this.vector = new Vector();
        }
        this.vector.add(hp);
        this.sporCommandParam = null;
    }
89131
public static void add() {

        String current = System.getProperties().getProperty(HANDLER_PKGS, "");
        if (current.length() > 0) {
            if (current.contains(PKG)) {
                return;
            }
            current = current + "|";
        }
        System.getProperties().put(HANDLER_PKGS, current + PKG);

    }
1033964
public void add( int value ) {
		// see if it needs to grow the queue
		if( size >= data.length) {
			int a[] = new int[ nextDataSize() ];

			System.arraycopy(data,start,a,0,data.length-start);
			System.arraycopy(data,0,a,data.length-start,start);
			start = 0;
			data = a;
		}
		data[(start+size)%data.length] = value;
		size++;
	}