Package org.apache.synapse.debug
Class SynapseDebugInterface
- java.lang.Object
-
- org.apache.synapse.debug.SynapseDebugInterface
-
public class SynapseDebugInterface extends Object
This is the main class that handles communication channels to the outside debugger. Mainly handles connection creation to receive and send debug commands and to send debug related events to the outside debugger. Channel creation happens asynchronously in a separate thread, but initialization of ESB server runtime ( mediation initializer ) is paused until a successful creation of communication channel.
-
-
Constructor Summary
Constructors Constructor Description SynapseDebugInterface()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnection()
Closes the communication and event channelsvoid
createDebugChannels(int listenPortParam, int sendPortParam)
static SynapseDebugInterface
getInstance()
ServerSocket
getOpenedPortListen()
ServerSocket
getOpenedPortSend()
BufferedReader
getPortListenReader()
PrintWriter
getPortListenWriter()
PrintWriter
getPortSendWriter()
void
init(int listenPortParam, int sendPortParam)
Initializes the communication command and event channels asynchronously.void
setUncaughtException(Exception ex)
-
-
-
Method Detail
-
init
public void init(int listenPortParam, int sendPortParam) throws InterruptedException, IOException
Initializes the communication command and event channels asynchronously.- Parameters:
listenPortParam
- command port numbersendPortParam
- event port number- Throws:
InterruptedException
IOException
-
createDebugChannels
public void createDebugChannels(int listenPortParam, int sendPortParam) throws IOException
- Throws:
IOException
-
getInstance
public static SynapseDebugInterface getInstance()
-
closeConnection
public void closeConnection()
Closes the communication and event channels
-
getOpenedPortListen
public ServerSocket getOpenedPortListen()
-
getOpenedPortSend
public ServerSocket getOpenedPortSend()
-
getPortSendWriter
public PrintWriter getPortSendWriter()
-
getPortListenReader
public BufferedReader getPortListenReader()
-
getPortListenWriter
public PrintWriter getPortListenWriter()
-
setUncaughtException
public void setUncaughtException(Exception ex)
-
-