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

Quick Search    Search Deep

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

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

public class LinuxSupportedTask
extends JXSupportedTask

This is Linux's list of the possible supported services that it provides to the JD4X system. Each of the service that is provided by Linux is represented by an integer id with a LinuxTask object that describes the task to be performed by that id. Linux's unique range of id values are assigned to be 6400-9599 by the JD4X development team. In an event that there is a service or task ID request clash, Linux 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.

Since:
JD4X 1.0
Version:
0.1, 05/07/2003

Field Summary
private static java.lang.String[] details
          A set of desciptions to provide details on what a task id represents.
static int EXEC_CLASS
          Service id to create a new Shared JXJvm
static int EXEC_JAR
          Service id to create a new Shared JXJvm
static int FORK_EXEC
          Linux's fork and execute service id
static int KILL_JVM
          Service id to remove an existing Shared JXJvm
static int KILL_PROCESS
          Service id to remove an existing JXProcess
static int LINUX_ID_END
          Linux's ending service id
static int LINUX_ID_START
          Linux's starting service id
 
Fields inherited from class arch.task.supported.JXSupportedTask
 
Constructor Summary
LinuxSupportedTask()
          Default constructor that creates a management object that provide administration facilities to all of Linux's supported service id and its task.
 
Method Summary
static arch.task.JXTask getTaskDescription(int id)
          Linux'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 Linux.
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 Linux.
 
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

LINUX_ID_START

public static final int LINUX_ID_START
Linux's starting service id

See Also:
Constant Field Values

LINUX_ID_END

public static final int LINUX_ID_END
Linux's ending service id

See Also:
Constant Field Values

FORK_EXEC

public static final int FORK_EXEC
Linux's fork and execute service id

See Also:
Constant Field Values

EXEC_JAR

public static final int EXEC_JAR
Service id to create a new Shared JXJvm

See Also:
Constant Field Values

KILL_PROCESS

public static final int KILL_PROCESS
Service id to remove an existing JXProcess

See Also:
Constant Field Values

KILL_JVM

public static final int KILL_JVM
Service id to remove an existing Shared JXJvm

See Also:
Constant Field Values

EXEC_CLASS

public static final int EXEC_CLASS
Service id to create a new Shared JXJvm

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

LinuxSupportedTask

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

Method Detail

getTaskDescription

public static arch.task.JXTask getTaskDescription(int id)
Linux'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 Linux. The JXTask returned is of the reusable subclass type LinuxTask. Optimization is possible by caching the returned object for similar repeated requests to Linux.


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 Linux.