com.ibm.jtopenlite.components
Class ListActiveJobs

java.lang.Object
  extended by com.ibm.jtopenlite.components.ListActiveJobs

public class ListActiveJobs
extends Object

Represents the information returned by the WRKACTJOB command, but uses the OpenListOfJobs classes to obtain it.


Constructor Summary
ListActiveJobs()
           
 
Method Summary
 long getElapsedTime()
          Returns the elapsed time since job statistics were reset, in milliseconds.
 JobInfo[] getJobs(CommandConnection conn, boolean reset)
          Returns an array of active jobs, sorted by subsystem and job name, the way WRKACTJOB does.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListActiveJobs

public ListActiveJobs()
Method Detail

getElapsedTime

public long getElapsedTime()
Returns the elapsed time since job statistics were reset, in milliseconds.


getJobs

public JobInfo[] getJobs(CommandConnection conn,
                         boolean reset)
                  throws IOException
Returns an array of active jobs, sorted by subsystem and job name, the way WRKACTJOB does. JobInfo.toString() prints the fields the way WRKACTJOB does.

Parameters:
conn - The connection to use.
reset - Indicates if the job statistics should be reset on this invocation, like F10 in WRKACTJOB does.
Throws:
IOException