Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.subsystems.qsys.comm
Class RSEInteractiveJobHandler

java.lang.Object
  extended by com.ibm.etools.iseries.subsystems.qsys.comm.RSEInteractiveJobHandler
All Implemented Interfaces:
ISystemCommunicationsDaemonHandler

public class RSEInteractiveJobHandler
extends Object
implements ISystemCommunicationsDaemonHandler

The class handles incoming communications requests from the CL command STRRSESVR to associate an interactive job with an RSE connection.


Field Summary
static String copyright
           
static int REQUEST_KEY
           
 
Constructor Summary
RSEInteractiveJobHandler()
          Constructor for RSEInteractiveJobHandler.
 
Method Summary
 void addInteractiveJobListener(IInteractiveJobListener listener)
          Add an IInteractiveJobListener.
 void fireInteractiveJobEvent(int eventType, IHost connection)
          Firing InteractiveJob events
static RSEInteractiveJobHandler getInstance()
           
 void handleRequest(Socket socket, byte[] ccsidArray)
          Here for compatablity with WDSc V4.0 server code which did not send a request key
 void handleRequest(Socket socket, int requestKey)
          The handleRequest method is invoked by the RSE communications daemon when a new socket connection is established and the requestKey matches for this handler.
 void removeInteractiveJobListener(IInteractiveJobListener listener)
          Remove an IInteractiveJobListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

REQUEST_KEY

public static int REQUEST_KEY
Constructor Detail

RSEInteractiveJobHandler

public RSEInteractiveJobHandler()
Constructor for RSEInteractiveJobHandler.

Method Detail

getInstance

public static RSEInteractiveJobHandler getInstance()

handleRequest

public void handleRequest(Socket socket,
                          byte[] ccsidArray)
Here for compatablity with WDSc V4.0 server code which did not send a request key


handleRequest

public void handleRequest(Socket socket,
                          int requestKey)
Description copied from interface: ISystemCommunicationsDaemonHandler
The handleRequest method is invoked by the RSE communications daemon when a new socket connection is established and the requestKey matches for this handler. The handleRequest method will be invoked on a new thread.

It is the implementors responsability to close the socket and clean up all associated resources (like the InputStream) when finished.

Specified by:
handleRequest in interface ISystemCommunicationsDaemonHandler
Parameters:
socket - The communications socket connected to the remote peer. The only thing read of the socket will have been the request key.
See Also:
com.ibm.etools.iseries.core.comm.ICommunicationsDaemonHandler#handleRequest(Socket)

addInteractiveJobListener

public void addInteractiveJobListener(IInteractiveJobListener listener)
Add an IInteractiveJobListener.


removeInteractiveJobListener

public void removeInteractiveJobListener(IInteractiveJobListener listener)
Remove an IInteractiveJobListener


fireInteractiveJobEvent

public void fireInteractiveJobEvent(int eventType,
                                    IHost connection)
Firing InteractiveJob events


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.