|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.micro.DataQueue
The DataQueue class represents an iSeries data queue object. This class provides a modified subset of the functions available in com.ibm.as400.access.DataQueue.
The following example demonstrates the use of DataQueue:
AS400 system = new AS400("mySystem", "myUserid", "myPwd", "myMEServer"); try { // Write to the Data Queue. DataQueue.write(system, "/QSYS.LIB/FRED.LIB/MYDTAQ.DTAQ", "some text"); // Read from the Data Queue. String txt = DataQueue.read(system, "/QSYS.LIB/FRED.LIB/MYDTAQ.DTAQ"); } catch (Exception e) { // Handle the exception } // Done with the system object. system.disconnect();
DataQueue
Method Summary | |
---|---|
static byte[] |
readBytes(AS400 system,
String path)
Reads an entry from the data queue. |
static String |
readString(AS400 system,
String path)
Reads an entry from the data queue. |
static void |
write(AS400 system,
String path,
byte[] data)
Writes an entry to the data queue. |
static void |
write(AS400 system,
String path,
String data)
Writes an entry to the data queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static byte[] readBytes(AS400 system, String path) throws IOException, MEException
system
- The system on which the data queue exists.path
- The fully qualified integrated file system path name of the data queue.
IOException
- If an error occurs while communicating with the server.
MEException
- If an error occurs while processing the ToolboxME request.public static String readString(AS400 system, String path) throws IOException, MEException
system
- The system on which the data queue exists.path
- The fully qualified integrated file system path name of the data queue.
IOException
- If an error occurs while communicating with the server.
MEException
- If an error occurs while processing the ToolboxME request.public static void write(AS400 system, String path, String data) throws IOException, MEException
system
- The system on which the data queue exists.path
- The fully qualified integrated file system path name of the data queue.data
- The string to write to the queue.
IOException
- If an error occurs while communicating with the server.
MEException
- If an error occurs while processing the ToolboxME request.public static void write(AS400 system, String path, byte[] data) throws IOException, MEException
system
- The system on which the data queue exists.path
- The fully qualified integrated file system path name of the data queue.data
- The array of bytes to write to the queue.
IOException
- If an error occurs while communicating with the server.
MEException
- If an error occurs while processing the ToolboxME request.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |