001 /* 002 * Task.java 003 * 004 * Created on January 19, 2005, 6:11 PM 005 * 006 * This file is part of the STAR Scheduler. 007 * Copyright (c) 2006 STAR Collaboration - Brookhaven National Laboratory 008 * 009 * STAR Scheduler is free software; you can redistribute it and/or modify 010 * it under the terms of the GNU General Public License as published by 011 * the Free Software Foundation; either version 2 of the License, or 012 * (at your option) any later version. 013 * 014 * STAR Scheduler is distributed in the hope that it will be useful, 015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 017 * GNU General Public License for more details. 018 * 019 * You should have received a copy of the GNU General Public License 020 * along with STAR Scheduler; if not, write to the Free Software 021 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 022 */ 023 024 package gov.bnl.star.offline.scheduler.request.rdl; 025 import java.util.List; 026 import java.util.ArrayList; 027 import java.net.URL; 028 029 /** 030 * A base RDL task 031 * @author Levente Hajdu 032 */ 033 public abstract class Task { 034 035 public Task() {} 036 037 private URL stdin; 038 private URL stdout; 039 private URL stderr; 040 041 private String taskArguments; 042 private List arguments = new ArrayList(); 043 044 public void setTaskArguments(String arguments) { 045 this.taskArguments = arguments; 046 } 047 public String getTaskArguments() { return taskArguments; } 048 049 public void addArgument(String argument) { arguments.add(argument); } 050 public List getArguments() { return arguments; } 051 052 public void setStdIn(URL stdin) { this.stdin = stdin; } 053 public void setStdOut(URL stdout) { this.stdout = stdout; } 054 public void setStdErr(URL stderr) { this.stderr = stderr; } 055 056 public URL getStdIn() { return stdin; } 057 public URL getStdOut() { return stdout; } 058 public URL getStdErr() { return stderr; } 059 060 }