public class SocketListener extends Object
Modifier and Type | Field and Description |
---|---|
static String |
REQUEST_CMD_GOTO
Request command to go to a source code
|
static String |
REQUEST_CMD_PREVIEW
Request command to preview a source code
|
static String |
REQUEST_CMD_TEST
Request command to test IDE plug-in
|
static String |
RESPONSE_OK
Value returned by the 'test' command in case of success
|
Modifier and Type | Method and Description |
---|---|
static SocketListener |
getInstance(GotoSourceManager pGotoMgr,
PluginLogger pLogger)
Return the single instance of a
SocketListener |
void |
setConfig(PluginConfig pConfig)
Set the settings to use by this Listener
|
void |
start()
Start listening to LogMX requests (test, preview, goto).
This method creates a new thread in order to open a socket, and listens this socket. |
void |
stop()
Stop listening to LogMX requests (test, preview, goto).
This method closes the socket, and stops the thread. |
public static final String REQUEST_CMD_PREVIEW
public static final String REQUEST_CMD_GOTO
public static final String REQUEST_CMD_TEST
public static final String RESPONSE_OK
public static SocketListener getInstance(GotoSourceManager pGotoMgr, PluginLogger pLogger)
SocketListener
pGotoMgr
- GotoSourceManager
that will be used to process received requestspLogger
- PluginLogger
that will be used to log information/error messages into IDE logspublic void start()
setConfig(PluginConfig)
must be called first.public void stop()
public void setConfig(PluginConfig pConfig)
pConfig
- Settings to useCopyright © 2017 LightySoft. All rights reserved. [v1.0.0 (June 29th, 2015)]