Package net.i2p.router.startup
Class LoadClientAppsJob
java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.startup.LoadClientAppsJob
- All Implemented Interfaces:
- Job
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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classPublic for router console only, not for use by others, subject to change
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetName()Descriptive name of the taskstatic String[]Parse arg string into an array of args.static voidRun client in a new thread.static voidrunClient(String className, String clientName, String[] args, RouterContext ctx, Log log, ThreadGroup threadGroup, ClassLoader cl) Run client in a new thread.static voidrunClientInline(String className, String clientName, String[] args, Log log) Run client in this thread.static voidrunClientInline(String className, String clientName, String[] args, Log log, ClassLoader cl) Run client in this thread.voidrunJob()Actually perform the task.static voidtestClient(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.JobImpldropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, madeReady, requeue, toString
- 
Constructor Details- 
LoadClientAppsJob
 
- 
- 
Method Details- 
runJobpublic void runJob()Description copied from interface:JobActually perform the task. This call blocks until the Job is complete.
- 
parseArgsParse arg string into an array of args. Spaces or tabs separate args. Args may be single- or double-quoted if they contain spaces or tabs. There is no provision for escaping quotes. A quoted string may not contain a quote of any kind.- Parameters:
- args- may be null
- Returns:
- non-null, 0-length if args is null
 
- 
testClientUse to test if the class is present, to propagate an error back to the user, since runClient() runs in a separate thread.- Parameters:
- cl- can be null
- Throws:
- ClassNotFoundException
- Since:
- 0.7.13
 
- 
runClientInlinepublic static void runClientInline(String className, String clientName, String[] args, Log log) throws Exception Run client in this thread. Used for plugin sub-clients only. Does not register with the ClientAppManager.- Parameters:
- clientName- can be null
- args- can be null
- Throws:
- Exception- just about anything, caller would be wise to catch Throwable
- Since:
- 0.7.13
 
- 
runClientInlinepublic static void runClientInline(String className, String clientName, String[] args, Log log, ClassLoader cl) throws Exception Run client in this thread. Used for plugin sub-clients only. Does not register with the ClientAppManager.- Parameters:
- clientName- can be null
- args- can be null
- cl- can be null
- Throws:
- Exception- just about anything, caller would be wise to catch Throwable
- Since:
- 0.7.14
 
- 
runClientpublic static void runClient(String className, String clientName, String[] args, RouterContext ctx, Log log) Run client in a new thread.- Parameters:
- clientName- can be null
- args- can be null
 
- 
runClientpublic static void runClient(String className, String clientName, String[] args, RouterContext ctx, Log log, ThreadGroup threadGroup, ClassLoader cl) Run client in a new thread.- Parameters:
- clientName- can be null
- args- can be null
- threadGroup- can be null
- cl- can be null
- Since:
- 0.7.13
 
- 
getNameDescription copied from interface:JobDescriptive name of the task
 
-