Rational Developer for i
7.5.0

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

java.lang.Object
  extended by com.ibm.etools.systems.as400.debug.sep.internal.PhantomEngineEPDCHandler
Direct Known Subclasses:
PhantomEngineTerminateHandler, PhantomServiceEntryPointEnableHandler, PhantomServiceEntryPointRefreshHandler, PhantomServiceEntryPointRemoveHandler, PhantomServiceEntryPointSetHandler

public abstract class PhantomEngineEPDCHandler
extends Object

The base class for processing the Phantom engine request.


Field Summary
protected  DataInputStream _dataInputStream
           
protected  DataOutputStream _dataOutputStream
           
protected  PROTOCOL_EngineSession _engineSession
           
protected  PROTOCOL_Reply _epdcReply
           
protected  PROTOCOL_Request _epdcRequest
           
protected  String _errorMessage
           
protected  boolean _success
           
static String copyright
           
 
Constructor Summary
PhantomEngineEPDCHandler(DataInputStream dataInputStream, DataOutputStream dataOutputStream)
          Constructor
 
Method Summary
protected  PROTOCOL_Reply decodeReply()
          Decode the EPDC reply.
 String getErrorMessage()
          Get the returned message.
 String getMessage()
           
 boolean isSuccessful()
          Get the returned status.
protected  void processMessage()
          Process the message returned by Engine.
 void setFormatterClass(IFormattedString cls)
           
protected  void setSuccessful(boolean success)
          Set the request process status
 
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

_dataInputStream

protected DataInputStream _dataInputStream

_dataOutputStream

protected DataOutputStream _dataOutputStream

_epdcRequest

protected PROTOCOL_Request _epdcRequest

_epdcReply

protected PROTOCOL_Reply _epdcReply

_errorMessage

protected String _errorMessage

_success

protected boolean _success

_engineSession

protected PROTOCOL_EngineSession _engineSession
Constructor Detail

PhantomEngineEPDCHandler

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

getErrorMessage

public String getErrorMessage()
Get the returned message.

Returns:
message

isSuccessful

public boolean isSuccessful()
Get the returned status.

Returns:
true if request has been handled successfully, false otherwise.

setSuccessful

protected void setSuccessful(boolean success)
Set the request process status

Parameters:
true - if request has been handled successfully, false otherwise.

decodeReply

protected PROTOCOL_Reply decodeReply()
                              throws IOException
Decode the EPDC reply.

Throws:
IOException - if connection is dropped.

processMessage

protected void processMessage()
Process the message returned by Engine. The engine sends back error message if the request is not processed successfully.


setFormatterClass

public void setFormatterClass(IFormattedString cls)

getMessage

public String getMessage()

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.