de.smartics.ci.comm.hudson.command
Class HudsonDeleteJobCommand

Package class diagram package HudsonDeleteJobCommand
java.lang.Object
  extended by de.smartics.ci.comm.command.AbstractCommand<T>
      extended by de.smartics.ci.comm.command.AbstractJobCommand<T>
          extended by de.smartics.ci.comm.command.AbstractDeleteJobCommand<HudsonDeleteJobCommand>
              extended by de.smartics.ci.comm.hudson.command.HudsonDeleteJobCommand
All Implemented Interfaces:
Command< HudsonDeleteJobCommand>

public final class HudsonDeleteJobCommand
     
     
extends AbstractDeleteJobCommand< HudsonDeleteJobCommand>

Delete job command.


Field Summary
 
Fields inherited from class de.smartics.ci.comm.command.AbstractJobCommand
jobName
 
Fields inherited from class de.smartics.ci.comm.command.AbstractCommand
ERROR_CATEGORY_DESTINGUISHER, logLevel
 
Constructor Summary
HudsonDeleteJobCommand()
          Default constructor.
HudsonDeleteJobCommand(String jobName)
          Default constructor.
 
Method Summary
 void execute(CiSystem target)
          Executes the command.
 
Methods inherited from class de.smartics.ci.comm.command.AbstractJobCommand
buildCiJobApiUrl, setJobName
 
Methods inherited from class de.smartics.ci.comm.command.AbstractCommand
addRequestHeaders, buildQueryString, checkParameterNotBlank, checkResult, checkResultRegardingRedirect, fetchDelimiter, setLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HudsonDeleteJobCommand

public HudsonDeleteJobCommand(String jobName)
Default constructor.

Parameters:
jobName - the name of the job that shall be deleted.

HudsonDeleteJobCommand

public HudsonDeleteJobCommand()
Default constructor. Sets jobName to null. Must be set before using this command.

Method Detail

execute

public void execute(CiSystem target)
             throws CommandException
Description copied from class: AbstractDeleteJobCommand
Executes the command.

Specified by:
execute in interface Command<HudsonDeleteJobCommand>
Specified by:
execute in class AbstractDeleteJobCommand<HudsonDeleteJobCommand>
Parameters:
target - the target to execute the command against.
Throws:
CommandException - signals problems encountered while executing the command.


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.