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

Package class diagram package HudsonCreateJobCommand
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.AbstractCreateJobCommand<HudsonCreateJobCommand>
              extended by de.smartics.ci.comm.hudson.command.HudsonCreateJobCommand
All Implemented Interfaces:
Command< HudsonCreateJobCommand>

public final class HudsonCreateJobCommand
     
     
extends AbstractCreateJobCommand< HudsonCreateJobCommand>

Create 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
HudsonCreateJobCommand()
          Default constructor.
HudsonCreateJobCommand(String jobName, String configString)
          Default constructor.
 
Method Summary
 void execute(CiSystem target)
          Executes the command.
 void setConfigString(String configString)
          Sets the configuration for the job / the config_xml as String.
 
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

HudsonCreateJobCommand

public HudsonCreateJobCommand(String jobName,
                              String configString)
Default constructor.

Parameters:
jobName - the name of the job that shall be created.
configString - the configuration for the job / the config_xml as String.

HudsonCreateJobCommand

public HudsonCreateJobCommand()
Default constructor. jobName and configString are set to null and must be set later before command will be executed.

Method Detail

setConfigString

public void setConfigString(String configString)
Sets the configuration for the job / the config_xml as String.

Parameters:
configString - the configuration for the job / the config_xml as String.

execute

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

Specified by:
execute in interface Command<HudsonCreateJobCommand>
Specified by:
execute in class AbstractCreateJobCommand<HudsonCreateJobCommand>
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.