plugin cleanups
This commit is contained in:
@ -445,7 +445,8 @@ public class PluginStarter implements Runnable {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
log.debug("plugin name = <" + pluginName + ">; threads running? " + isClientThreadRunning(pluginName) + "; webapp runing? " + WebAppStarter.isWebAppRunning(pluginName) + "; jobs running? " + isJobRunning);
|
if (log.shouldLog(Log.DEBUG))
|
||||||
|
log.debug("plugin name = <" + pluginName + ">; threads running? " + isClientThreadRunning(pluginName) + "; webapp runing? " + WebAppStarter.isWebAppRunning(pluginName) + "; jobs running? " + isJobRunning);
|
||||||
return isClientThreadRunning(pluginName) || WebAppStarter.isWebAppRunning(pluginName) || isJobRunning;
|
return isClientThreadRunning(pluginName) || WebAppStarter.isWebAppRunning(pluginName) || isJobRunning;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,6 +89,8 @@ public class WebAppStarter {
|
|||||||
|
|
||||||
static boolean isWebAppRunning(String appName) {
|
static boolean isWebAppRunning(String appName) {
|
||||||
Server server = WebAppStarter.getConsoleServer();
|
Server server = WebAppStarter.getConsoleServer();
|
||||||
|
if (server == null)
|
||||||
|
return false;
|
||||||
// this will return a new context if one does not exist
|
// this will return a new context if one does not exist
|
||||||
HttpContext wac = server.getContext('/' + appName);
|
HttpContext wac = server.getContext('/' + appName);
|
||||||
return wac.isStarted();
|
return wac.isStarted();
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
|
2010-04-23 zzz
|
||||||
|
* Plugins: Cleanups
|
||||||
|
|
||||||
2010-04-21 zzz
|
2010-04-21 zzz
|
||||||
* EepGet: Don't convert a MalformedURLException into
|
* EepGet: Don't convert a MalformedURLException into
|
||||||
an IOE so we recognize it when it's throuwn
|
an IOE so we recognize it when it's thrown
|
||||||
* ReusableGZIPStreams:
|
* ReusableGZIPStreams:
|
||||||
- Concurrent
|
- Concurrent
|
||||||
- Workaround for Apache Harmony 5.0M13 Deflater bug
|
- Workaround for Apache Harmony 5.0M13 Deflater bug
|
||||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 15;
|
public final static long BUILD = 16;
|
||||||
|
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "-rc";
|
public final static String EXTRA = "-rc";
|
||||||
|
@ -4,7 +4,6 @@ import java.lang.reflect.Method;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.CountDownLatch;
|
|
||||||
|
|
||||||
import net.i2p.router.JobImpl;
|
import net.i2p.router.JobImpl;
|
||||||
import net.i2p.router.RouterContext;
|
import net.i2p.router.RouterContext;
|
||||||
|
Reference in New Issue
Block a user