iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.core.dstore.miners
Class InteractiveJobFeedbackListener

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.ibm.etools.iseries.core.dstore.miners.InteractiveJobFeedbackListener
All Implemented Interfaces:
Runnable

public class InteractiveJobFeedbackListener
extends Thread

This class is listens to feedback from the Interactive job associated with an iSeries RSE connection.


Field Summary
static String Copyright
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
InteractiveJobFeedbackListener(com.ibm.as400.access.AS400 system, com.ibm.etools.systems.dstore.core.model.DataElement dataQ, String dataQName)
          Constructor
 
Method Summary
 byte[] getServerKey()
          Get the data queue key used for sending messags to the interactive job (server)
 int monitorCommand(com.ibm.etools.systems.dstore.core.model.DataElement status)
          Add a new command to the list of commands sent to the interactive job and awaiting feedback from.
protected  void removeCommand(int cmdID)
          Remove a command from being monitored.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

InteractiveJobFeedbackListener

public InteractiveJobFeedbackListener(com.ibm.as400.access.AS400 system,
                                      com.ibm.etools.systems.dstore.core.model.DataElement dataQ,
                                      String dataQName)
Constructor

Method Detail

run

public void run()

monitorCommand

public int monitorCommand(com.ibm.etools.systems.dstore.core.model.DataElement status)
Add a new command to the list of commands sent to the interactive job and awaiting feedback from.

Returns:
A unique ID which represents this command. This id should be included in any messages returned from the interactive job related to this command.

removeCommand

protected void removeCommand(int cmdID)
Remove a command from being monitored. This is usually done if an error occurs while the command is being sent to the interactive job.


getServerKey

public byte[] getServerKey()
Get the data queue key used for sending messags to the interactive job (server)


iSeries Remote Systems
v6.0.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.