Rational Developer for Power Systems Software

Class InteractiveJobFeedbackListener

  extended by java.lang.Thread
      extended by com.ibm.etools.iseries.services.qsys.commands.InteractiveJobFeedbackListener
All Implemented Interfaces:

public class InteractiveJobFeedbackListener
extends Thread

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

Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
Field Summary
static String Copyright
Fields inherited from class java.lang.Thread
Constructor Summary
InteractiveJobFeedbackListener(AS400 system, String dataQName, IQSYSInteractiveJobStatusMonitor interactiveJobStatusMonitor)
Method Summary
 void cleanUpCommands()
 byte[] getServerKey()
          Get the data queue key used for sending messags to the interactive job (server)
 int monitorCommand(IQSYSBatchCommandMonitor commandMonitor)
          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, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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


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


public InteractiveJobFeedbackListener(AS400 system,
                                      String dataQName,
                                      IQSYSInteractiveJobStatusMonitor interactiveJobStatusMonitor)

Method Detail


public void run()
Specified by:
run in interface Runnable
run in class Thread


public int monitorCommand(IQSYSBatchCommandMonitor commandMonitor)
Add a new command to the list of commands sent to the interactive job and awaiting feedback from.

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


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.


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


public void cleanUpCommands()

Rational Developer for Power Systems Software

Copyright 2011 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.