<commit_before><commit_msg>Added missing command registry definition.<commit_after>/*
 * Copyright 2014 <NAME> <<EMAIL>>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * 	http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.evilco.network.rcon.server.command;

import io.netty.channel.Channel;
import org.evilco.network.rcon.server.command.handler.ICommandHandler;

/**
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (C) 2014 Evil-Co <http://www.evil-co.com>
 */
public interface ICommandRegistry {

	/**
	 * Handles a command.
	 * @param command The command.
	 * @param identifier The request identifier.
	 * @param channel The source channel.
	 * @return True if the command was handled.
	 */
	public boolean handle (String command, int identifier, Channel channel);

	/**
	 * Registers a new command handler.
	 * @param command The command.
	 * @param handler The handler.
	 */
	public void registerHandler (String command, ICommandHandler handler);

	/**
	 * Registers a group of new command handlers.
	 * @param object The handler object.
	 */
	public void registerHandler (Object object);
}
{'fraction_non_alphanumeric': 0.09763880025526483, 'fraction_numerical': 0.007657945118059987, 'mean_word_length': 3.915360501567398, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7663716', 'n_tokens_mistral': 437, 'n_tokens_neox': 407, 'n_words': 175}