com.ibm.etools.iseries.services.qsys.commands
Class InteractiveJobFeedbackListener
java.lang.Object
java.lang.Thread
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.
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 |
Copyright
public static final String Copyright
- See Also:
- Constant Field Values
InteractiveJobFeedbackListener
public InteractiveJobFeedbackListener(AS400 system,
String dataQName,
IQSYSInteractiveJobStatusMonitor interactiveJobStatusMonitor)
- Constructor
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()
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.