com.ibm.jtopenlite.components

Class ListActiveJobs

  • java.lang.Object
    • com.ibm.jtopenlite.components.ListActiveJobs


  • public class ListActiveJobs
    extends java.lang.Object
    Represents the information returned by the WRKACTJOB command, but uses the OpenListOfJobs classes to obtain it.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ListActiveJobs() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      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.
      void getJobs(CommandConnection conn, boolean reset, ActiveJobsListener ajListener) 
      • 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 java.io.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:
        java.io.IOException