|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.router.JobImpl
net.i2p.router.startup.LoadClientAppsJob
public class LoadClientAppsJob
Run any client applications specified in clients.config. If any clientApp contains the config property ".onBoot=true" it'll be launched immediately, otherwise it'll get queued up for starting 2 minutes later.
| Nested Class Summary | |
|---|---|
static class |
LoadClientAppsJob.DelayedRunClient
|
| Constructor Summary | |
|---|---|
LoadClientAppsJob(RouterContext ctx)
|
|
| Method Summary | |
|---|---|
String |
getName()
Descriptive name of the task |
static String[] |
parseArgs(String args)
|
static void |
runClient(String className,
String clientName,
String[] args,
Log log)
Run client in a new thread. |
static void |
runClient(String className,
String clientName,
String[] args,
Log log,
ThreadGroup threadGroup,
ClassLoader cl)
Run client in a new thread. |
static void |
runClientInline(String className,
String clientName,
String[] args,
Log log)
Run client in this thread. |
static void |
runClientInline(String className,
String clientName,
String[] args,
Log log,
ClassLoader cl)
Run client in this thread. |
void |
runJob()
Actually perform the task. |
static void |
testClient(String className,
ClassLoader cl)
Use to test if the class is present, to propagate an error back to the user, since runClient() runs in a separate thread. |
| Methods inherited from class net.i2p.router.JobImpl |
|---|
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LoadClientAppsJob(RouterContext ctx)
| Method Detail |
|---|
public void runJob()
Job
public static String[] parseArgs(String args)
public static void testClient(String className,
ClassLoader cl)
throws ClassNotFoundException
cl - can be null
ClassNotFoundException
public static void runClientInline(String className,
String clientName,
String[] args,
Log log)
throws Exception
clientName - can be nullargs - can be null
just - about anything, caller would be wise to catch Throwable
Exception
public static void runClientInline(String className,
String clientName,
String[] args,
Log log,
ClassLoader cl)
throws Exception
clientName - can be nullargs - can be nullcl - can be null
just - about anything, caller would be wise to catch Throwable
Exception
public static void runClient(String className,
String clientName,
String[] args,
Log log)
clientName - can be nullargs - can be null
public static void runClient(String className,
String clientName,
String[] args,
Log log,
ThreadGroup threadGroup,
ClassLoader cl)
clientName - can be nullargs - can be nullthreadGroup - can be nullcl - can be nullpublic String getName()
Job
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||