* Console cleanups
* Router: Don't do some things when we are shutting down * VMCommSystem fixups
This commit is contained in:
@ -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();
|
||||
|
@ -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; }
|
||||
}
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user