gov.bnl.star.offline.scheduler.request.rdl
Class JavaTask

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.request.rdl.Task
      extended by gov.bnl.star.offline.scheduler.request.rdl.JavaTask

public class JavaTask
extends Task

An RDL java task object

Author:
Levente Hajdu

Constructor Summary
JavaTask()
          Creates a new instance of JavaTask
 
Method Summary
 java.lang.String getClassName()
          Note: when this is set the setMainJar() may not be set.
 java.lang.String getClassPath()
          This is used with the -cp option
 java.lang.String getMainJar()
          This is used with the -jar opton.
 boolean isTaskClear()
           
 void setClassName(java.lang.String className)
           
 void setClassPath(java.lang.String path)
          This is used with the -cp option
 void setMainJar(java.lang.String mainJar)
          This is used with the -jar opton, Executes a program encapsulated in a JAR archive.
 
Methods inherited from class gov.bnl.star.offline.scheduler.request.rdl.Task
addArgument, getArguments, getStdErr, getStdIn, getStdOut, getTaskArguments, setStdErr, setStdIn, setStdOut, setTaskArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaTask

public JavaTask()
Creates a new instance of JavaTask

Method Detail

isTaskClear

public boolean isTaskClear()

setClassName

public void setClassName(java.lang.String className)

getClassName

public java.lang.String getClassName()
Note: when this is set the setMainJar() may not be set.


setMainJar

public void setMainJar(java.lang.String mainJar)
This is used with the -jar opton, Executes a program encapsulated in a JAR archive. The manifest of the JAR file must point to the main class in order for this option to work. The ClassName option must not be set.


getMainJar

public java.lang.String getMainJar()
This is used with the -jar opton. The ClassName option must not be set.


setClassPath

public void setClassPath(java.lang.String path)
This is used with the -cp option


getClassPath

public java.lang.String getClassPath()
This is used with the -cp option



Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.