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

Quick Search    Search Deep

arch.task.supported
Class JvmSupportedTask  view JvmSupportedTask download JvmSupportedTask.java

java.lang.Object
  extended byarch.task.supported.JXSupportedTask
      extended byarch.task.supported.JvmSupportedTask

public final class JvmSupportedTask
extends JXSupportedTask

This is JXJvm's list of the possible supported services that it provides to the JD4X system. Each of the service that is provided by JXJvm is represented by an integer id with a JunkTask object that describes the task to be performed by that id. JXJvm's unique range of id values are assigned to be 3000-3199 by the JD4X development team. In an event that there is a service or task ID request clash, JUNK will take priority against all other modules. The specific action taken to deal with an id clash exception will be to reject the service requested. The class has been made final for security reasons.
JXJvm's task ID range is a subset of JUNK's assigned task ID range values.

Since:
JD4X 1.0
Version:
0.1, 11/12/2002

Field Summary
private static java.lang.String[] details
          A set of desciptions to provide details on what a task id represents.
static int JVM_ID_END
          JXJvm's ending service id
static int JVM_ID_START
          JXJvm's starting service id
static int LOAD_RUN
          Service id to automatically load and run an application
static int SHOW_GUI
          Service id to display its GUI
static int STOP_INSTREAM
          Service id to end its input stream reading
static int TEST_STATE
          Service id to test the Jvm state
 
Fields inherited from class arch.task.supported.JXSupportedTask
 
Constructor Summary
JvmSupportedTask()
          Default constructor that creates a management object that provide administration facilities to all of JXJvm's supported service id and its task.
 
Method Summary
static arch.task.JXTask getTaskDescription(int id)
          JXJvm's method to provide a description of the task that each id represents, so that it is possible to determine the semantics of the id values predefined by JXJvm.
static boolean isTaskSupported(int id)
          It searches the pre-defined id values to determine if the id value passed is valid and therefore a valid id will also mean that the service is provided by JXJvm.
 
Methods inherited from class arch.task.supported.JXSupportedTask
equals, getEndRange, getRangeSize, getStartRange, hashCode, setEndRange, setStartRange, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

JVM_ID_START

public static final int JVM_ID_START
JXJvm's starting service id

See Also:
Constant Field Values

JVM_ID_END

public static final int JVM_ID_END
JXJvm's ending service id

See Also:
Constant Field Values

SHOW_GUI

public static final int SHOW_GUI
Service id to display its GUI

See Also:
Constant Field Values

STOP_INSTREAM

public static final int STOP_INSTREAM
Service id to end its input stream reading

See Also:
Constant Field Values

LOAD_RUN

public static final int LOAD_RUN
Service id to automatically load and run an application

See Also:
Constant Field Values

TEST_STATE

public static final int TEST_STATE
Service id to test the Jvm state

See Also:
Constant Field Values

details

private static final java.lang.String[] details
A set of desciptions to provide details on what a task id represents.

Constructor Detail

JvmSupportedTask

public JvmSupportedTask()
Default constructor that creates a management object that provide administration facilities to all of JXJvm's supported service id and its task.

Method Detail

getTaskDescription

public static arch.task.JXTask getTaskDescription(int id)
JXJvm's method to provide a description of the task that each id represents, so that it is possible to determine the semantics of the id values predefined by JXJvm. The JXTask returned is of the reusable subclass type JunkTask. Optimization is possible by caching the returned object for similar repeated requests to JXJvm.


isTaskSupported

public static boolean isTaskSupported(int id)
It searches the pre-defined id values to determine if the id value passed is valid and therefore a valid id will also mean that the service is provided by JXJvm.