View Javadoc

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 delete job commands.
22   *
23   * @param <T> the concrete type of the command.
24   */
25  public abstract class AbstractDeleteJobCommand<T extends Command<T>> extends
26      AbstractJobCommand<T>
27  {
28    // ********************************* Fields *********************************
29  
30    // --- constants ------------------------------------------------------------
31  
32    // --- members --------------------------------------------------------------
33  
34    // ****************************** Initializer *******************************
35  
36    // ****************************** Constructors ******************************
37  
38    /**
39     * Default constructor.
40     *
41     * @param jobName the name of the job that shall be enabled.
42     */
43    protected AbstractDeleteJobCommand(final String jobName)
44    {
45      super(jobName);
46    }
47  
48    // ****************************** Inner Classes *****************************
49  
50    // ********************************* Methods ********************************
51  
52    // --- init -----------------------------------------------------------------
53  
54    // --- get&set --------------------------------------------------------------
55  
56    // --- business -------------------------------------------------------------
57  
58    /**
59     * Executes the command.
60     *
61     * @param target the target to execute the command against.
62     * @throws CommandException signals problems encountered while executing the
63     *           command.
64     */
65    public abstract void execute(final CiSystem target) throws CommandException;
66  
67    // --- object basics --------------------------------------------------------
68  
69  }