001    /**
002     * Copyright (c) 2010 Yahoo! Inc. All rights reserved.
003     * Licensed under the Apache License, Version 2.0 (the "License");
004     * you may not use this file except in compliance with the License.
005     * You may obtain a copy of the License at
006     *
007     *   http://www.apache.org/licenses/LICENSE-2.0
008     *
009     *  Unless required by applicable law or agreed to in writing, software
010     *  distributed under the License is distributed on an "AS IS" BASIS,
011     *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012     *  See the License for the specific language governing permissions and
013     *  limitations under the License. See accompanying LICENSE file.
014     */
015    package org.apache.oozie.command.wf;
016    
017    import org.apache.oozie.command.XCommand;
018    
019    /**
020     * Abstract coordinator command class derived from XCommand
021     *
022     * @param <T>
023     */
024    public abstract class WorkflowXCommand<T> extends XCommand<T> {
025        /**
026         * Base class constructor for workflow commands.
027         *
028         * @param name command name
029         * @param type command type
030         * @param priority command priority
031         */
032        public WorkflowXCommand(String name, String type, int priority) {
033            super(name, type, priority);
034        }
035    
036        /**
037         * Base class constructor for workflow commands.
038         *
039         * @param name command name
040         * @param type command type
041         * @param priority command priority
042         * @param dryrun true if rerun is enabled for command
043         */
044        public WorkflowXCommand(String name, String type, int priority, boolean dryrun) {
045            super(name, type, priority, dryrun);
046        }
047    
048    }