* AppManager: Register jetty, console, and SAM with manager

This commit is contained in:
zzz
2013-04-19 11:41:35 +00:00
parent 5cb449efed
commit 5ea2832ae0
3 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,7 @@ public class JettyStart implements ClientApp {
} }
} }
changeState(RUNNING); changeState(RUNNING);
_mgr.register(JettyStart.this);
} }
} }

View File

@ -605,6 +605,8 @@ public class RouterConsoleRunner implements RouterApp {
} }
} }
changeState(RUNNING); changeState(RUNNING);
if (_mgr != null)
_mgr.register(this);
} }
} else { } else {
System.err.println("ERROR: Router console did not start, not starting webapps"); System.err.println("ERROR: Router console did not start, not starting webapps");

View File

@ -484,6 +484,8 @@ public class SAMBridge implements Runnable, ClientApp {
public void run() { public void run() {
if (serverSocket == null) return; if (serverSocket == null) return;
changeState(RUNNING); changeState(RUNNING);
if (_mgr != null)
_mgr.register(this);
try { try {
while (acceptConnections) { while (acceptConnections) {
SocketChannel s = serverSocket.accept(); SocketChannel s = serverSocket.accept();