* Console cleanups

* Router: Don't do some things when we are shutting down
    * VMCommSystem fixups
This commit is contained in:
zzz
2009-08-14 01:52:47 +00:00
parent 7e039d0339
commit bcd22cfbf3
8 changed files with 32 additions and 12 deletions

View File

@ -35,16 +35,13 @@ public class ConfigStatsHelper extends HelperBase {
/**
* Configure this bean to query a particular router context
*
* @param contextId begging few characters of the routerHash, or null to pick
* @param contextId beginning few characters of the routerHash, or null to pick
* the first one we come across.
*/
@Override
public void setContextId(String contextId) {
try {
_context = ContextHelper.getContext(contextId);
_log = _context.logManager().getLog(ConfigStatsHelper.class);
} catch (Throwable t) {
t.printStackTrace();
}
super.setContextId(contextId);
_log = _context.logManager().getLog(ConfigStatsHelper.class);
_stats = new ArrayList();
Map groups = _context.statManager().getStatsByGroup();

View File

@ -14,7 +14,7 @@ public abstract class HelperBase {
/**
* Configure this bean to query a particular router context
*
* @param contextId begging few characters of the routerHash, or null to pick
* @param contextId beginning few characters of the routerHash, or null to pick
* the first one we come across.
*/
public void setContextId(String contextId) {
@ -25,5 +25,8 @@ public abstract class HelperBase {
}
}
/** might be useful in the jsp's */
//public RouterContext getContext() { return _context; }
public void setWriter(Writer out) { _out = out; }
}

View File

@ -205,6 +205,7 @@ public class RouterConsoleRunner {
}
}
/*******
public void stopConsole() {
try {
_server.stop();
@ -212,6 +213,7 @@ public class RouterConsoleRunner {
ie.printStackTrace();
}
}
********/
public static Properties webAppProperties() {
Properties rv = new Properties();