1 /** 2 This file is part of GoldenGate Project (named also GoldenGate or GG). 3 4 Copyright 2009, Frederic Bregier, and individual contributors by the @author 5 tags. See the COPYRIGHT.txt in the distribution for a full listing of 6 individual contributors. 7 8 All GoldenGate Project is free software: you can redistribute it and/or 9 modify it under the terms of the GNU General Public License as published 10 by the Free Software Foundation, either version 3 of the License, or 11 (at your option) any later version. 12 13 GoldenGate is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with GoldenGate . If not, see <http://www.gnu.org/licenses/>. 20 */ 21 package openr66.context.task; 22 23 import openr66.context.R66Session; 24 25 /** 26 * Runnable interface for internal R66 tasks (through Rule EXECJAVA, 27 * or through message BusinessRequestPacket) 28 * 29 * @author Frederic Bregier 30 * 31 */ 32 public interface R66Runnable extends Runnable { 33 34 /** 35 * The way the parameter will be set 36 * @param session The current R66Session 37 * @param waitForValidation True if the caller will wait up to delay time in ms 38 * @param useLocalExec True if currently R66 is configured to use LocalExec (may be ignored) 39 * @param delay Delay in ms used only if waitForValidation is True 40 * @param args First arg is the Class name used 41 */ 42 public void setArgs(R66Session session, boolean waitForValidation, 43 boolean useLocalExec, int delay, String []args); 44 /** 45 * 46 * @return the final status where 0 is OK, 1 is Warning, 2 is Error 47 */ 48 public int getFinalStatus(); 49 50 /** 51 * 52 * @return Information on task 53 */ 54 public String toString(); 55 }