Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.services.qsys.commands
Class InteractiveJobFeedbackListener

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.etools.iseries.services.qsys.commands.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.


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
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
InteractiveJobFeedbackListener(AS400 system, String dataQName, IQSYSInteractiveJobStatusMonitor interactiveJobStatusMonitor)
          Constructor
 
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

Copyright

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

InteractiveJobFeedbackListener

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

Method Detail

run

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

monitorCommand

public int monitorCommand(IQSYSBatchCommandMonitor commandMonitor)
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)


cleanUpCommands

public void cleanUpCommands()

Rational Developer for Power Systems Software
V7.6

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.