Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

arch.task
Class JunkTask  view JunkTask download JunkTask.java

java.lang.Object
  extended byarch.task.JXTask
      extended byarch.task.JunkTask
All Implemented Interfaces:
java.io.Serializable

public final class JunkTask
extends JXTask

JunkTask describes a service or task that is supported by the current Junk implementation. Each service or task is represented by an integer id defined in the JunkSupportedTask class and a detailed string description of what that service is as well as what it does. It is mainly used to define the JXTask in a JXRequest sent to the core module (JUNK). This class is an immutable class that is designed for thread safe operation.

Since:
JD4X 1.0
Version:
0.1, 27/05/2002

Field Summary
private  java.util.Vector param
          Parameters associated with a JunkTask
 
Fields inherited from class arch.task.JXTask
 
Constructor Summary
JunkTask(int id, java.lang.String describe)
          Default constructor that creates a new JXTask to represent an id and its service or task description.
 
Method Summary
 java.util.Vector getParam()
          Get the parameter associated with the request.
 void setParam(java.util.Vector vparam)
          Sets the parameters associated with a task.
 
Methods inherited from class arch.task.JXTask
equals, getTaskDescription, getTaskID, hashCode, setTaskDescription, setTaskID, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

param

private java.util.Vector param
Parameters associated with a JunkTask

Constructor Detail

JunkTask

public JunkTask(int id,
                java.lang.String describe)
Default constructor that creates a new JXTask to represent an id and its service or task description.

Method Detail

setParam

public void setParam(java.util.Vector vparam)
Sets the parameters associated with a task. The parameters are then passed to the actual module that will need these parameters to carry out the required task. The order of parameters in the Vector for each of the possible task request are as follow: JXProess = [1]command, [2]environment, [3]working directory. JXJvm = [1]JVM type, [2]System Property, [3]verbose, [4]class. Redirect standard out and error = [1]JXRedirectService interface. Add Plugin = ? Remove Plugin = ?


getParam

public java.util.Vector getParam()
Get the parameter associated with the request.