|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.dash.ServerManager
public final class ServerManager
Tool for stopping/resuming the UT environment that happens when
SposhDebugEngine encounters node breakpoint. Basically, every time a
node breakpoint is encountered by the engine, we want to stop the UT and when
the engine is running again, we want to resume the UT.
| Constructor Summary | |
|---|---|
ServerManager()
|
|
| Method Summary | |
|---|---|
static void |
clear(IDebugEngine engine)
Clear all frozen servers that have as initiator passed engine. |
static void |
pause(IDebugEngine blockingEngine,
InetSocketAddress serverAddress)
Pause a UT server at specified address. |
static void |
resume(IDebugEngine resumingEngine,
InetSocketAddress serverAddress)
A UT server is blocked, until all engines that are asking for it to be paused say, that it may resume execution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerManager()
| Method Detail |
|---|
public static void pause(IDebugEngine blockingEngine,
InetSocketAddress serverAddress)
throws IOException,
UnexpectedMessageException
blockingEngine - Engine that is requesting the pause state of UT.serverAddress - Address and port of the UT server
IOException
UnexpectedMessageException
public static void resume(IDebugEngine resumingEngine,
InetSocketAddress serverAddress)
throws IOException
resumingEngine - Engine that is no longer requesting a pause
(nothing wrong happens if called many times over or if engine hasn't even
requested pause).serverAddress - Address of UT server the engine is using.
IOException
public static void clear(IDebugEngine engine)
throws IOException
engine -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||