Rational Developer for i
7.5.0

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

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

public class PhantomServiceEntryPointEnableHandler
extends PhantomEngineEPDCHandler

The class to handle the enable / disable Service entry point 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
PhantomServiceEntryPointEnableHandler(DataInputStream dataInputStream, DataOutputStream dataOutputStream)
          Constructor
 
Method Summary
 void enable(int sepID, boolean enable)
          Enable or disable a Service entry point.
protected  boolean processReply()
          Process reply of engine
protected  boolean processRequest()
          Create EPDC_Request and send to engine.
 void run(IProgressMonitor monitor)
          Process the request/reply.
 
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

PhantomServiceEntryPointEnableHandler

public PhantomServiceEntryPointEnableHandler(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

enable

public void enable(int sepID,
                   boolean enable)
Enable or disable a Service entry point.

Parameters:
sepID - : the ID for the Service entry point.
enable - : true for enable, false for disable
Throws:
IOException - if connection is dropped.

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 EPDC_Request and send to engine.

Throws:
IOException

processReply

protected boolean processReply()
Process reply of engine

Returns:
true if reply is OK, false otherwise.

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.