de.smartics.ci.comm.command
Class AbstractGenericJobCommand<T extends Command<T>>
java.lang.Object
de.smartics.ci.comm.command.AbstractCommand<T>
de.smartics.ci.comm.command.AbstractJobCommand<T>
de.smartics.ci.comm.command.AbstractGenericJobCommand<T>
-
Type Parameters:
-
T
- the concrete type of the command.
-
All Implemented Interfaces:
-
Command<T>
-
Direct Known Subclasses:
-
AbstractHudsonApiJob
-
public abstract class AbstractGenericJobCommand<T extends Command<T>>
-
extends
AbstractJobCommand<T>
The type of the generic job commands. A generic job can be configured to do anything regarding a job (build, delete, enable, ...).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGenericJobCommand
protected AbstractGenericJobCommand(String jobName)
-
Default constructor.
-
Parameters:
-
jobName
- the name of the job that shall be enabled.
execute
public abstract void execute(CiSystem target)
throws CommandException
-
Executes the command.
-
-
Parameters:
-
target
- the target to execute the command against.
-
Throws:
-
CommandException
- signals problems encountered while executing the command.
getResult
public abstract CommandResult<T> getResult()
-
Returns the result of the execution of this command. When this command has not been called until now,
null
is returned.
-
-
Returns:
-
the result or null.
Copyright © 2012
Kronseder & Reiner GmbH - smartics. All Rights Reserved.