Rename BaseCommand to Command

refs #4580
This commit is contained in:
Eric Lippmann 2013-09-16 14:44:59 +02:00
parent bf012fbd7e
commit a47db3497e
10 changed files with 36 additions and 36 deletions

View File

@ -33,7 +33,7 @@ use Icinga\Exception\ProgrammingError;
/**
* Base class for any concrete command implementation
*/
abstract class BaseCommand
abstract class Command
{
/**
* Whether hosts are ignored in case of a host- or servicegroup

View File

@ -142,7 +142,7 @@ class CommandPipe
* @param Command $command
* @param array $objects
*/
public function sendCommand(BaseCommand $command, array $objects)
public function sendCommand(Command $command, array $objects)
{
foreach ($objects as $object) {
$objectType = $this->getObjectType($object);

View File

@ -28,13 +28,13 @@
namespace Icinga\Module\Monitoring\Command;
use Icinga\Protocol\Commandpipe\BaseCommand;
use Icinga\Protocol\Commandpipe\Command;
use Icinga\Protocol\Commandpipe\Comment;
/**
* Command for acknowledging an object
*/
class AcknowledgeCommand extends BaseCommand
class AcknowledgeCommand extends Command
{
/**
* When this acknowledgement should expire
@ -136,7 +136,7 @@ class AcknowledgeCommand extends BaseCommand
* Return this command's parameters properly arranged in an array
*
* @return array
* @see BaseCommand::getParameters()
* @see Command::getParameters()
*/
public function getParameters()
{
@ -161,7 +161,7 @@ class AcknowledgeCommand extends BaseCommand
* @param string $hostname The name of the host to insert
*
* @return string The string representation of the command
* @see BaseCommand::getHostCommand()
* @see Command::getHostCommand()
*/
public function getHostCommand($hostname)
{
@ -177,7 +177,7 @@ class AcknowledgeCommand extends BaseCommand
* @param string $servicename The name of the service to insert
*
* @return string The string representation of the command
* @see BaseCommand::getServiceCommand()
* @see Command::getServiceCommand()
*/
public function getServiceCommand($hostname, $servicename)
{

View File

@ -28,15 +28,15 @@
namespace Icinga\Module\Monitoring\Command;
use Icinga\Protocol\Commandpipe\BaseCommand;
use Icinga\Protocol\Commandpipe\Command;
use Icinga\Protocol\Commandpipe\Comment;
/**
* Icinga Command for adding comments
*
* @see BaseCommand
* @see Command
*/
class AddCommentCommand extends BaseCommand
class AddCommentCommand extends Command
{
/**
* The comment associated to this command
@ -79,7 +79,7 @@ class AddCommentCommand extends BaseCommand
* @param string $hostname The name of the host to insert
*
* @return string The string representation of the command
* @see BaseCommand::getHostCommand()
* @see Command::getHostCommand()
*/
public function getHostCommand($hostname)
{
@ -93,7 +93,7 @@ class AddCommentCommand extends BaseCommand
* @param string $servicename The name of the service to insert
*
* @return string The string representation of the command
* @see BaseCommand::getServiceCommand()
* @see Command::getServiceCommand()
*/
public function getServiceCommand($hostname, $servicename)
{

View File

@ -28,13 +28,13 @@
namespace Icinga\Module\Monitoring\Command;
use Icinga\Protocol\Commandpipe\BaseCommand;
use Icinga\Protocol\Commandpipe\Command;
use Icinga\Protocol\Commandpipe\Comment;
/**
* Command to send a custom notification
*/
class CustomNotificationCommand extends BaseCommand
class CustomNotificationCommand extends Command
{
/**
* The comment associated with this notification
@ -114,7 +114,7 @@ class CustomNotificationCommand extends BaseCommand
* Return this command's parameters properly arranged in an array
*
* @return array
* @see BaseCommand::getParameters()
* @see Command::getParameters()
*/
public function getParameters()
{
@ -134,7 +134,7 @@ class CustomNotificationCommand extends BaseCommand
* @param string $hostname The name of the host to insert
*
* @return string The string representation of the command
* @see BaseCommand::getHostCommand()
* @see Command::getHostCommand()
*/
public function getHostCommand($hostname)
{
@ -148,7 +148,7 @@ class CustomNotificationCommand extends BaseCommand
* @param string $servicename The name of the service to insert
*
* @return string The string representation of the command
* @see BaseCommand::getServiceCommand()
* @see Command::getServiceCommand()
*/
public function getServiceCommand($hostname, $servicename)
{

View File

@ -28,12 +28,12 @@
namespace Icinga\Module\Monitoring\Command;
use Icinga\Protocol\Commandpipe\BaseCommand;
use Icinga\Protocol\Commandpipe\Command;
/**
* Command to delay a notification
*/
class DelayNotificationCommand extends BaseCommand
class DelayNotificationCommand extends Command
{
/**
* The delay in seconds
@ -69,7 +69,7 @@ class DelayNotificationCommand extends BaseCommand
* Return this command's parameters properly arranged in an array
*
* @return array
* @see BaseCommand::getParameters()
* @see Command::getParameters()
*/
public function getParameters()
{
@ -82,7 +82,7 @@ class DelayNotificationCommand extends BaseCommand
* @param string $hostname The name of the host to insert
*
* @return string The string representation of the command
* @see BaseCommand::getHostCommand()
* @see Command::getHostCommand()
*/
public function getHostCommand($hostname)
{
@ -96,7 +96,7 @@ class DelayNotificationCommand extends BaseCommand
* @param string $servicename The name of the service to insert
*
* @return string The string representation of the command
* @see BaseCommand::getServiceCommand()
* @see Command::getServiceCommand()
*/
public function getServiceCommand($hostname, $servicename)
{

View File

@ -28,12 +28,12 @@
namespace Icinga\Module\Monitoring\Command;
use Icinga\Protocol\Commandpipe\BaseCommand;
use Icinga\Protocol\Commandpipe\Command;
/**
* Command to schedule checks
*/
class ScheduleCheckCommand extends BaseCommand
class ScheduleCheckCommand extends Command
{
/**
* When this check is scheduled
@ -91,7 +91,7 @@ class ScheduleCheckCommand extends BaseCommand
* Return this command's parameters properly arranged in an array
*
* @return array
* @see BaseCommand::getParameters()
* @see Command::getParameters()
*/
public function getParameters()
{
@ -104,7 +104,7 @@ class ScheduleCheckCommand extends BaseCommand
* @param string $hostname The name of the host to insert
*
* @return string The string representation of the command
* @see BaseCommand::getHostCommand()
* @see Command::getHostCommand()
*/
public function getHostCommand($hostname)
{
@ -122,7 +122,7 @@ class ScheduleCheckCommand extends BaseCommand
* @param string $servicename The name of the service to insert
*
* @return string The string representation of the command
* @see BaseCommand::getServiceCommand()
* @see Command::getServiceCommand()
*/
public function getServiceCommand($hostname, $servicename)
{

View File

@ -29,12 +29,12 @@
namespace Icinga\Module\Monitoring\Command;
use Icinga\Protocol\Commandpipe\Comment;
use Icinga\Protocol\Commandpipe\BaseCommand;
use Icinga\Protocol\Commandpipe\Command;
/**
* Command for scheduling a new downtime
*/
class ScheduleDowntimeCommand extends BaseCommand
class ScheduleDowntimeCommand extends Command
{
/**
* When this downtime should start
@ -200,7 +200,7 @@ class ScheduleDowntimeCommand extends BaseCommand
* Return this command's parameters properly arranged in an array
*
* @return array
* @see BaseCommand::getParameters()
* @see Command::getParameters()
*/
public function getParameters()
{

View File

@ -28,12 +28,12 @@
namespace Icinga\Module\Monitoring\Command;
use Icinga\Protocol\Commandpipe\BaseCommand;
use Icinga\Protocol\Commandpipe\Command;
/**
* Command to submit passive check results
*/
class SubmitPassiveCheckresultCommand extends BaseCommand
class SubmitPassiveCheckresultCommand extends Command
{
/**
* The plugin-state that is being reported
@ -112,7 +112,7 @@ class SubmitPassiveCheckresultCommand extends BaseCommand
* Return this command's parameters properly arranged in an array
*
* @return array
* @see BaseCommand::getParameters()
* @see Command::getParameters()
*/
public function getParameters()
{
@ -128,7 +128,7 @@ class SubmitPassiveCheckresultCommand extends BaseCommand
* @param string $hostname The name of the host to insert
*
* @return string The string representation of the command
* @see BaseCommand::getHostCommand()
* @see Command::getHostCommand()
*/
public function getHostCommand($hostname)
{
@ -142,7 +142,7 @@ class SubmitPassiveCheckresultCommand extends BaseCommand
* @param string $servicename The name of the service to insert
*
* @return string The string representation of the command
* @see BaseCommand::getServiceCommand()
* @see Command::getServiceCommand()
*/
public function getServiceCommand($hostname, $servicename)
{

View File

@ -39,7 +39,7 @@ class CommandPipeLoader extends LibraryLoader {
require_once('Zend/Config.php');
require_once('Zend/Log.php');
require_once(realpath('../../library/Icinga/Application/Logger.php'));
require_once(realpath('../../library/Icinga/Protocol/Commandpipe/BaseCommand.php'));
require_once(realpath('../../library/Icinga/Protocol/Commandpipe/Command.php'));
require_once(realpath('../../library/Icinga/Protocol/Commandpipe/Comment.php'));
require_once(realpath('../../library/Icinga/Protocol/Commandpipe/CommandPipe.php'));
require_once(realpath('../../library/Icinga/Protocol/Commandpipe/PropertyModifier.php'));