Rational Developer for i
7.5.0

com.ibm.etools.systems.as400.debug.sep.internal
Class PhantomServiceEntryPointSetHandler

java.lang.Object
  extended by com.ibm.etools.systems.as400.debug.sep.internal.PhantomEngineEPDCHandler
      extended by com.ibm.etools.systems.as400.debug.sep.internal.PhantomServiceEntryPointSetHandler

public class PhantomServiceEntryPointSetHandler
extends PhantomEngineEPDCHandler

The class to handle set or modify request.


Field Summary
static String copyright
           
 
Fields inherited from class com.ibm.etools.systems.as400.debug.sep.internal.PhantomEngineEPDCHandler
_dataInputStream, _dataOutputStream, _engineSession, _epdcReply, _epdcRequest, _errorMessage, _success
 
Constructor Summary
PhantomServiceEntryPointSetHandler(DataInputStream dataInputStream, DataOutputStream dataOutputStream)
          Constructor
 
Method Summary
 int getSEPID()
          Get the Service Entry Point ID.
 void modify(int sepID, String selectedProgramDestination, String selectedProgramType, String selectedProgramName, String selectedModuleName, String selectedEntryName, String selectedUserProfile, boolean preferenceOption)
          Modify an existing Service Entry Point.
protected  boolean processReply()
          Process the reply from engine.
protected  boolean processRequest()
          Create an EPDC_Request and send to engine.
 void run(IProgressMonitor monitor)
          Process the request/reply.
 void set(String selectedUserProfile, String selectedProgramDestination, String selectedProgramType, String selectedProgramName, String selectedModuleName, String selectedEntryName, boolean preferenceOption)
          Set a new Service Entry Point.
 
Methods inherited from class com.ibm.etools.systems.as400.debug.sep.internal.PhantomEngineEPDCHandler
decodeReply, getErrorMessage, getMessage, isSuccessful, processMessage, setFormatterClass, setSuccessful
 
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
Constructor Detail

PhantomServiceEntryPointSetHandler

public PhantomServiceEntryPointSetHandler(DataInputStream dataInputStream,
                                          DataOutputStream dataOutputStream)
Constructor

Parameters:
dataInputStream - : the dataInputStream used to read data from Phantom Engine.
dataOutputStream - : the dataOutputStream used to write data to Phantom Engine.
Method Detail

set

public void set(String selectedUserProfile,
                String selectedProgramDestination,
                String selectedProgramType,
                String selectedProgramName,
                String selectedModuleName,
                String selectedEntryName,
                boolean preferenceOption)
Set a new Service Entry Point.

Parameters:
selectedUserProfile - : the name of user profile
selectedLibraryName - : the library name
selectedProgramType - : the type of program. *PGM and *SRVPGM are valid
selectedProgramName - : the program name
selectedModuleName - : the module name. *ALL or specific name
selectedEntryName - : the entry name. *ALL or specific name
preferenceOption - : the preference value affecting engine's behavior Conflict resolution for now.

modify

public void modify(int sepID,
                   String selectedProgramDestination,
                   String selectedProgramType,
                   String selectedProgramName,
                   String selectedModuleName,
                   String selectedEntryName,
                   String selectedUserProfile,
                   boolean preferenceOption)
Modify an existing Service Entry Point.

Parameters:
sepID - : the ID for existing Service entry point
selectedLibraryName - : the library name
selectedProgramType - : the type of program. *PGM and *SRVPGM are valid
selectedProgramName - : the program name
selectedModuleName - : the module name. *ALL or specific name
selectedEntryName - : the entry name. *ALL or specific name
selectedUserProfile - : the name of user profile
preferenceOption - : the preference value affecting engine's behavior Conflict resolution for now.

run

public void run(IProgressMonitor monitor)
         throws InvocationTargetException,
                InterruptedException
Process the request/reply.

Throws:
IOException - if connection is dropped.
InvocationTargetException
InterruptedException

processRequest

protected boolean processRequest()
                          throws IOException
Create an EPDC_Request and send to engine. Depends on the action, either a new Service Entry Point request or modify request is generated.

Returns:
true if the request is processed successfully, false otherwise.
Throws:
IOException - if connection is dropped.

processReply

protected boolean processReply()
Process the reply from engine.


getSEPID

public int getSEPID()
Get the Service Entry Point ID. For Set request, return the ID provided by engine. For Modify request, simply returns the ID for the Service entry point passed by the caller.

Returns:
the Service Entry Point ID.

Rational Developer for i
7.5.0

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