de.smartics.ci.comm.command
Class AbstractJobCommand<T extends Command<T>>
java.lang.Object
de.smartics.ci.comm.command.AbstractCommand<T>
de.smartics.ci.comm.command.AbstractJobCommand<T>
-
Type Parameters:
-
T
- the concrete type of the command.
-
All Implemented Interfaces:
-
Command<T>
-
Direct Known Subclasses:
-
AbstractCheckStatusJobCommand,
AbstractCreateJobCommand,
AbstractDeleteJobCommand,
AbstractDisableJobCommand,
AbstractEnableJobCommand,
AbstractGenericJobCommand,
AbstractUpdateJobCommand
-
public abstract class AbstractJobCommand<T extends Command<T>>
-
extends
AbstractCommand<T>
-
implements
Command<T>
Abstract class that combines all every job command needs.
Field Summary |
protected String |
jobName The name of the job that shall be enabled. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.smartics.ci.comm.command.Command |
execute |
jobName
protected String jobName
-
The name of the job that shall be enabled.
AbstractJobCommand
public AbstractJobCommand(String jobName)
-
Default constructor.
-
Parameters:
-
jobName
- the name of the job that shall be enabled.
setJobName
public final void setJobName(String jobName)
-
Sets the name of the job that shall be enabled.
-
-
-
Parameters:
-
jobName
- the name of the job that shall be enabled.
buildCiJobApiUrl
protected final String buildCiJobApiUrl(String url,
String jobName,
String apiMethod)
-
Build the job api url string.
-
-
-
Parameters:
-
url
- the url to the system.
-
jobName
- the name of the job.
-
apiMethod
- the api method to call.
-
Returns:
-
the api string.
Copyright © 2012
Kronseder & Reiner GmbH - smartics. All Rights Reserved.