Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_CHANGE |
static java.lang.String |
ACTION_END |
static java.lang.String |
ACTION_START |
static int |
COLLECT_120 |
static int |
COLLECT_15 |
static int |
COLLECT_240 |
static int |
COLLECT_30 |
static int |
COLLECT_60 |
static java.lang.String |
RESOURCE_COMM |
static java.lang.String |
RESOURCE_DISK |
static java.lang.String |
RESOURCE_IOP |
static java.lang.String |
RESOURCE_JOB |
static java.lang.String |
RESOURCE_POOL |
Constructor and Description |
---|
WorkWithCollector(java.lang.String typeOfActionToPerform,
java.lang.String typeOfResource,
int timeBetweenCollections,
java.lang.String userSpaceName,
java.lang.String userSpaceLibrary) |
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
getProgramLibrary()
Returns the library of the program object.
|
java.lang.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() |
java.lang.String |
getTypeOfActionToPerform() |
java.lang.String |
getTypeOfResource() |
java.lang.String |
getUserSpaceLibrary() |
java.lang.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(java.lang.String action) |
void |
setTypeOfResource(java.lang.String resource) |
void |
setUserSpaceLibrary(java.lang.String library) |
void |
setUserSpaceName(java.lang.String userSpace) |
public static final java.lang.String ACTION_START
public static final java.lang.String ACTION_END
public static final java.lang.String ACTION_CHANGE
public static final java.lang.String RESOURCE_JOB
public static final java.lang.String RESOURCE_POOL
public static final java.lang.String RESOURCE_DISK
public static final java.lang.String RESOURCE_IOP
public static final java.lang.String RESOURCE_COMM
public static final int COLLECT_15
public static final int COLLECT_30
public static final int COLLECT_60
public static final int COLLECT_120
public static final int COLLECT_240
public WorkWithCollector(java.lang.String typeOfActionToPerform, java.lang.String typeOfResource, int timeBetweenCollections, java.lang.String userSpaceName, java.lang.String userSpaceLibrary)
public java.lang.String getProgramLibrary()
Program
getProgramLibrary
in interface Program
public java.lang.String getProgramName()
Program
getProgramName
in interface Program
public void newCall()
Program
public void setTypeOfActionToPerform(java.lang.String action)
public java.lang.String getTypeOfActionToPerform()
public void setTypeOfResource(java.lang.String resource)
public java.lang.String getTypeOfResource()
public void setTimeBetweenCollections(int seconds)
public int getTimeBetweenCollections()
public void setUserSpaceName(java.lang.String userSpace)
public java.lang.String getUserSpaceName()
public void setUserSpaceLibrary(java.lang.String library)
public java.lang.String getUserSpaceLibrary()
public int getFirstSequenceNumber()
public int getNumberOfParameters()
Program
getNumberOfParameters
in interface Program
public int getParameterInputLength(int parmIndex)
Program
getParameterInputLength
in interface Program
public int getParameterOutputLength(int parmIndex)
Program
getParameterOutputLength
in interface Program
public int getParameterType(int parmIndex)
Program
getParameterType
in interface Program
Parameter
public byte[] getTempDataBuffer()
Program
getTempDataBuffer
in interface Program
public byte[] getParameterInputData(int parmIndex)
Program
getParameterInputData
in interface Program
public void setParameterOutputData(int parmIndex, byte[] data, int maxLength)
Program
setParameterOutputData
in interface Program