com.ibm.jtopenlite.command.program.message
Class OpenListOfMessages
- java.lang.Object
-
- com.ibm.jtopenlite.command.program.message.OpenListOfMessages
-
- All Implemented Interfaces:
- Program, OpenListProgram<OpenListOfMessagesLSTM0100,OpenListOfMessagesLSTM0100Listener>
public class OpenListOfMessages extends java.lang.Object implements OpenListProgram<OpenListOfMessagesLSTM0100,OpenListOfMessagesLSTM0100Listener>
QGYOLMSG This class fully implements the V5R4 specification of QGYOLMSG.
-
-
Constructor Summary
Constructors Constructor and Description OpenListOfMessages()
OpenListOfMessages(int lengthOfReceiverVariable, int numberOfRecordsToReturn, java.lang.String sortInformation, java.lang.String userOrQueueIndicator, java.lang.String userOrQueueName, java.lang.String queueLibrary, OpenListOfMessagesLSTM0100 format)
-
Method Summary
Methods Modifier and Type Method and Description OpenListOfMessagesLSTM0100Listener
getFormatListener()
The format listener gets called by the formatter once the output data has been formatted.OpenListOfMessagesLSTM0100
getFormatter()
The formatter is the class that handles formatting the output data for each entry in the list.int
getLengthOfReceiverVariable()
ListInformation
getListInformation()
java.lang.String
getMessageQueue1()
java.lang.String
getMessageQueue2()
int
getNumberOfParameters()
Returns the number of parameters for this program.int
getNumberOfQueuesUsed()
int
getNumberOfRecordsToReturn()
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.java.lang.String
getQueueLibrary()
OpenListOfMessagesSelectionListener
getSelectionListener()
java.lang.String
getSortInformation()
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.java.lang.String
getUserOrQueueIndicator()
java.lang.String
getUserOrQueueName()
void
newCall()
Invoked before any other methods on this interface by CommandConnection whenever this Program is called.void
setFormatListener(OpenListOfMessagesLSTM0100Listener listener)
void
setFormatter(OpenListOfMessagesLSTM0100 format)
void
setLengthOfReceiverVariable(int length)
void
setNumberOfRecordsToReturn(int numberOfRecordsToReturn)
void
setParameterOutputData(int parmIndex, byte[] data, int maxLength)
Sets the output data for the parameter at the specified index.void
setQueueLibrary(java.lang.String s)
void
setSelectionListener(OpenListOfMessagesSelectionListener listener)
void
setSortInformation(java.lang.String s)
void
setUserOrQueueIndicator(java.lang.String s)
void
setUserOrQueueName(java.lang.String s)
-
-
-
Constructor Detail
-
OpenListOfMessages
public OpenListOfMessages()
-
OpenListOfMessages
public OpenListOfMessages(int lengthOfReceiverVariable, int numberOfRecordsToReturn, java.lang.String sortInformation, java.lang.String userOrQueueIndicator, java.lang.String userOrQueueName, java.lang.String queueLibrary, OpenListOfMessagesLSTM0100 format)
-
-
Method Detail
-
getFormatListener
public OpenListOfMessagesLSTM0100Listener getFormatListener()
Description copied from interface:OpenListProgram
The format listener gets called by the formatter once the output data has been formatted.- Specified by:
getFormatListener
in interfaceOpenListProgram<OpenListOfMessagesLSTM0100,OpenListOfMessagesLSTM0100Listener>
-
setFormatListener
public void setFormatListener(OpenListOfMessagesLSTM0100Listener listener)
- Specified by:
setFormatListener
in interfaceOpenListProgram<OpenListOfMessagesLSTM0100,OpenListOfMessagesLSTM0100Listener>
-
getProgramName
public java.lang.String getProgramName()
Description copied from interface:Program
Returns the name of the program object.- Specified by:
getProgramName
in interfaceProgram
-
getProgramLibrary
public java.lang.String getProgramLibrary()
Description copied from interface:Program
Returns the library of the program object.- Specified by:
getProgramLibrary
in interfaceProgram
-
getNumberOfParameters
public int getNumberOfParameters()
Description copied from interface:Program
Returns the number of parameters for this program.- Specified by:
getNumberOfParameters
in interfaceProgram
-
getTempDataBuffer
public final 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 interfaceProgram
-
getSelectionListener
public OpenListOfMessagesSelectionListener getSelectionListener()
-
setSelectionListener
public void setSelectionListener(OpenListOfMessagesSelectionListener listener)
-
getFormatter
public OpenListOfMessagesLSTM0100 getFormatter()
Description copied from interface:OpenListProgram
The formatter is the class that handles formatting the output data for each entry in the list.- Specified by:
getFormatter
in interfaceOpenListProgram<OpenListOfMessagesLSTM0100,OpenListOfMessagesLSTM0100Listener>
-
setFormatter
public void setFormatter(OpenListOfMessagesLSTM0100 format)
- Specified by:
setFormatter
in interfaceOpenListProgram<OpenListOfMessagesLSTM0100,OpenListOfMessagesLSTM0100Listener>
-
newCall
public void newCall()
Description copied from interface:Program
Invoked before any other methods on this interface by CommandConnection whenever this Program is called.
-
getListInformation
public ListInformation getListInformation()
- Specified by:
getListInformation
in interfaceOpenListProgram<OpenListOfMessagesLSTM0100,OpenListOfMessagesLSTM0100Listener>
-
getLengthOfReceiverVariable
public int getLengthOfReceiverVariable()
-
setLengthOfReceiverVariable
public void setLengthOfReceiverVariable(int length)
-
getNumberOfRecordsToReturn
public int getNumberOfRecordsToReturn()
-
setNumberOfRecordsToReturn
public void setNumberOfRecordsToReturn(int numberOfRecordsToReturn)
-
getSortInformation
public java.lang.String getSortInformation()
-
setSortInformation
public void setSortInformation(java.lang.String s)
-
getUserOrQueueIndicator
public java.lang.String getUserOrQueueIndicator()
-
setUserOrQueueIndicator
public void setUserOrQueueIndicator(java.lang.String s)
-
getUserOrQueueName
public java.lang.String getUserOrQueueName()
-
setUserOrQueueName
public void setUserOrQueueName(java.lang.String s)
-
getQueueLibrary
public java.lang.String getQueueLibrary()
-
setQueueLibrary
public void setQueueLibrary(java.lang.String s)
-
getNumberOfQueuesUsed
public int getNumberOfQueuesUsed()
-
getMessageQueue1
public java.lang.String getMessageQueue1()
-
getMessageQueue2
public java.lang.String getMessageQueue2()
-
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 interfaceProgram
-
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 interfaceProgram
-
getParameterType
public int getParameterType(int parmIndex)
Description copied from interface:Program
Returns the type of parameter at the specified index.- Specified by:
getParameterType
in interfaceProgram
- See Also:
Parameter
-
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 interfaceProgram
-
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 interfaceProgram
-
-