1 /* 2 * Copyright 2012 smartics, Kronseder & Reiner GmbH 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package de.smartics.ci.comm.command; 17 18 import de.smartics.ci.comm.CiSystem; 19 20 /** 21 * The type of the create job commands. 22 * 23 * @param <T> the concrete type of the command. 24 */ 25 public abstract class AbstractCreateJobCommand<T extends Command<T>> extends AbstractJobCommand<T> 26 { 27 // ********************************* Fields ********************************* 28 29 // --- constants ------------------------------------------------------------ 30 31 // --- members -------------------------------------------------------------- 32 33 // ****************************** Initializer ******************************* 34 35 // ****************************** Constructors ****************************** 36 37 /** 38 * Default constructor. 39 * 40 * @param jobName the name of the job that shall be enabled. 41 */ 42 protected AbstractCreateJobCommand(final String jobName) 43 { 44 super(jobName); 45 } 46 47 // ****************************** Inner Classes ***************************** 48 49 // ********************************* Methods ******************************** 50 51 // --- init ----------------------------------------------------------------- 52 53 // --- get&set -------------------------------------------------------------- 54 55 // --- business ------------------------------------------------------------- 56 57 /** 58 * Executes the command. 59 * 60 * @param target the target to execute the command against. 61 * @throws CommandException signals problems encountered while executing the command. 62 */ 63 public abstract void execute(final CiSystem target) throws CommandException; 64 65 // --- object basics -------------------------------------------------------- 66 67 }