|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.ci.comm.CiController
public final class CiController
Controls the ci server. Right now only hudson.
Constructor Summary | |
---|---|
CiController(CiSystem system) Default constructor. |
Method Summary | |
---|---|
CommandResult<?> |
checkStatusJob(String jobName, String xmlQueryString, Properties properties) Check status of a job on the target system and return the result. |
void |
createJob(String jobName, String configString) Create a job on the target system. |
void |
deleteJob(String jobName) Delete a job on the target system. |
void |
disableJob(String jobName) Disable a job on the target system. |
void |
enableJob(String jobName) Enable a job on the target system. |
CommandResult<?> |
executeGenericJobCommand(String jobName, String apiUrl, String xmlQueryString, String regexp, Properties properties) Check status of a job on the target system and return the result. |
void |
login() Login to the target. |
void |
setCreateJobCommand(HudsonCreateJobCommand createJobCommand) Sets the command to create a job. |
void |
setDeleteJobCommand(HudsonDeleteJobCommand deleteJobCommand) Sets the command to delete a job. |
void |
setDisableJobCommand(HudsonDisableJobCommand disableJobCommand) Sets the command to disable a job. |
void |
setEnableJobCommand(HudsonEnableJobCommand enableJobCommand) Sets the command to enable a job. |
void |
setGenericJobCommand(HudsonGenericJobCommand genericJobCommand) Sets the generic job command. |
void |
setLoginCommand(HudsonLoginCommand loginCommand) Sets the login command to use to login to the ci system. |
void |
setLoginCredentials(Credentials loginCredentials) Sets the credentials used to login to the ci server. |
void |
setLogLevel(LogLevel logLevel) Set the log level for this controller. |
void |
setProxyInformation(ProxyInformation proxy) Sets the proxy information used to connect to the network using a proxy. |
void |
setStatusJobCommand(HudsonCheckStatusJobCommand statusJobCommand) Sets the command to check the status of a job. |
void |
setUpdateJobCommand(HudsonUpdateJobCommand updateJobCommand) Sets the value for updateJobCommand. |
void |
updateJob(String jobName, String configString) Update a job on the target system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CiController(CiSystem system)
system
- the system on which the commands are executed.
Method Detail |
---|
public void setLogLevel(LogLevel logLevel)
logLevel
- the log level to use.
public void setLoginCredentials(Credentials loginCredentials)
loginCredentials
- the credentials used to login to the ci server.
public void setProxyInformation(ProxyInformation proxy)
proxy
- the proxy information used to connect to the network using a proxy.
public void setLoginCommand(HudsonLoginCommand loginCommand)
loginCommand
- the login command to use to login to the ci system.
public void setDeleteJobCommand(HudsonDeleteJobCommand deleteJobCommand)
deleteJobCommand
- the command to delete a job.
public void setCreateJobCommand(HudsonCreateJobCommand createJobCommand)
createJobCommand
- the command to create a job.
public void setUpdateJobCommand(HudsonUpdateJobCommand updateJobCommand)
the command to update a job.
updateJobCommand
- the value for updateJobCommand.
public void setEnableJobCommand(HudsonEnableJobCommand enableJobCommand)
enableJobCommand
- the command to enable a job.
public void setDisableJobCommand(HudsonDisableJobCommand disableJobCommand)
disableJobCommand
- the command to disable a job.
public void setStatusJobCommand(HudsonCheckStatusJobCommand statusJobCommand)
statusJobCommand
- the command to check a job.
public void setGenericJobCommand(HudsonGenericJobCommand genericJobCommand)
genericJobCommand
- the command to execute on a job.
public void login() throws LoginCommandException
LoginCommandException
- when the login failed.
public void createJob(String jobName, String configString) throws CommandException
jobName
- the name of the job.
configString
- the config string.
CommandException
- when the command failed.
public void updateJob(String jobName, String configString) throws CommandException
jobName
- the name of the job.
configString
- the config string.
CommandException
- when the command failed.
public void disableJob(String jobName) throws CommandException
jobName
- the name of the job.
CommandException
- when the command failed.
public void enableJob(String jobName) throws CommandException
jobName
- the name of the job.
CommandException
- when the command failed.
public void deleteJob(String jobName) throws CommandException
jobName
- the name of the job.
CommandException
- when the command failed.
public CommandResult<?> checkStatusJob(String jobName, String xmlQueryString, Properties properties) throws CommandException
jobName
- the name of the job.
xmlQueryString
- the xml api queryString to run at the ci server.
properties
- a list of key value pairs used to replace variables in the xml query string.
CommandException
- when the command failed.
public CommandResult<?> executeGenericJobCommand(String jobName, String apiUrl, String xmlQueryString, String regexp, Properties properties) throws CommandException
jobName
- the name of the job.
apiUrl
- the api url.
xmlQueryString
- the xml api queryString to run at the ci server.
regexp
- the regexp to check the result.
properties
- a list of key value pairs used to replace variables in the xml query string.
CommandException
- when the command failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |