com.ibm.jtopenlite.command.program.perf
Class WorkWithCollector

java.lang.Object
  extended by com.ibm.jtopenlite.command.program.perf.WorkWithCollector
All Implemented Interfaces:
Program

public class WorkWithCollector
extends Object
implements Program

QPMWKCOL


Field Summary
static String ACTION_CHANGE
           
static String ACTION_END
           
static String ACTION_START
           
static int COLLECT_120
           
static int COLLECT_15
           
static int COLLECT_240
           
static int COLLECT_30
           
static int COLLECT_60
           
static String RESOURCE_COMM
           
static String RESOURCE_DISK
           
static String RESOURCE_IOP
           
static String RESOURCE_JOB
           
static String RESOURCE_POOL
           
 
Constructor Summary
WorkWithCollector(String typeOfActionToPerform, String typeOfResource, int timeBetweenCollections, String userSpaceName, String userSpaceLibrary)
           
 
Method Summary
 int getFirstSequenceNumber()
           
 int getNumberOfParameters()
          Returns the number of parameters for this program.
 byte[] getParameterInputData(int parmIndex)
          Returns the input data of the parameter at the specified index.
 int getParameterInputLength(int parmIndex)
          Returns the input length of the parameter at the specified index.
 int getParameterOutputLength(int parmIndex)
          Returns the output length of the parameter at the specified index.
 int getParameterType(int parmIndex)
          Returns the type of parameter at the specified index.
 String getProgramLibrary()
          Returns the library of the program object.
 String getProgramName()
          Returns the name of the program object.
 byte[] getTempDataBuffer()
          The implementor can create their own temp byte array for the output parameter size and reuse it each time a call is performed, or for more than one parameter on the same call.
 int getTimeBetweenCollections()
           
 String getTypeOfActionToPerform()
           
 String getTypeOfResource()
           
 String getUserSpaceLibrary()
           
 String getUserSpaceName()
           
 void newCall()
          Invoked before any other methods on this interface by CommandConnection whenever this Program is called.
 void setParameterOutputData(int parmIndex, byte[] data, int maxLength)
          Sets the output data for the parameter at the specified index.
 void setTimeBetweenCollections(int seconds)
           
 void setTypeOfActionToPerform(String action)
           
 void setTypeOfResource(String resource)
           
 void setUserSpaceLibrary(String library)
           
 void setUserSpaceName(String userSpace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_START

public static final String ACTION_START
See Also:
Constant Field Values

ACTION_END

public static final String ACTION_END
See Also:
Constant Field Values

ACTION_CHANGE

public static final String ACTION_CHANGE
See Also:
Constant Field Values

RESOURCE_JOB

public static final String RESOURCE_JOB
See Also:
Constant Field Values

RESOURCE_POOL

public static final String RESOURCE_POOL
See Also:
Constant Field Values

RESOURCE_DISK

public static final String RESOURCE_DISK
See Also:
Constant Field Values

RESOURCE_IOP

public static final String RESOURCE_IOP
See Also:
Constant Field Values

RESOURCE_COMM

public static final String RESOURCE_COMM
See Also:
Constant Field Values

COLLECT_15

public static final int COLLECT_15
See Also:
Constant Field Values

COLLECT_30

public static final int COLLECT_30
See Also:
Constant Field Values

COLLECT_60

public static final int COLLECT_60
See Also:
Constant Field Values

COLLECT_120

public static final int COLLECT_120
See Also:
Constant Field Values

COLLECT_240

public static final int COLLECT_240
See Also:
Constant Field Values
Constructor Detail

WorkWithCollector

public WorkWithCollector(String typeOfActionToPerform,
                         String typeOfResource,
                         int timeBetweenCollections,
                         String userSpaceName,
                         String userSpaceLibrary)
Method Detail

getProgramLibrary

public String getProgramLibrary()
Description copied from interface: Program
Returns the library of the program object.

Specified by:
getProgramLibrary in interface Program

getProgramName

public String getProgramName()
Description copied from interface: Program
Returns the name of the program object.

Specified by:
getProgramName in interface Program

newCall

public void newCall()
Description copied from interface: Program
Invoked before any other methods on this interface by CommandConnection whenever this Program is called.

Specified by:
newCall in interface Program

setTypeOfActionToPerform

public void setTypeOfActionToPerform(String action)

getTypeOfActionToPerform

public String getTypeOfActionToPerform()

setTypeOfResource

public void setTypeOfResource(String resource)

getTypeOfResource

public String getTypeOfResource()

setTimeBetweenCollections

public void setTimeBetweenCollections(int seconds)

getTimeBetweenCollections

public int getTimeBetweenCollections()

setUserSpaceName

public void setUserSpaceName(String userSpace)

getUserSpaceName

public String getUserSpaceName()

setUserSpaceLibrary

public void setUserSpaceLibrary(String library)

getUserSpaceLibrary

public String getUserSpaceLibrary()

getFirstSequenceNumber

public int getFirstSequenceNumber()

getNumberOfParameters

public int getNumberOfParameters()
Description copied from interface: Program
Returns the number of parameters for this program.

Specified by:
getNumberOfParameters in interface Program

getParameterInputLength

public int getParameterInputLength(int parmIndex)
Description copied from interface: Program
Returns the input length of the parameter at the specified index.

Specified by:
getParameterInputLength in interface Program

getParameterOutputLength

public int getParameterOutputLength(int parmIndex)
Description copied from interface: Program
Returns the output length of the parameter at the specified index.

Specified by:
getParameterOutputLength in interface Program

getParameterType

public int getParameterType(int parmIndex)
Description copied from interface: Program
Returns the type of parameter at the specified index.

Specified by:
getParameterType in interface Program
See Also:
Parameter

getTempDataBuffer

public byte[] getTempDataBuffer()
Description copied from interface: Program
The implementor can create their own temp byte array for the output parameter size and reuse it each time a call is performed, or for more than one parameter on the same call. The implementor can choose to ignore this, and simply return null. The command connection checks to see if the buffer returned by this method is not null and large enough to accommodate the output parameter size.

Specified by:
getTempDataBuffer in interface Program

getParameterInputData

public byte[] getParameterInputData(int parmIndex)
Description copied from interface: Program
Returns the input data of the parameter at the specified index.

Specified by:
getParameterInputData in interface Program

setParameterOutputData

public void setParameterOutputData(int parmIndex,
                                   byte[] data,
                                   int maxLength)
Description copied from interface: Program
Sets the output data for the parameter at the specified index.

Specified by:
setParameterOutputData in interface Program