net.i2p.router.startup
Modifier and Type | Class and Description |
---|---|
static class |
LoadClientAppsJob.DelayedRunClient |
Constructor and Description |
---|
LoadClientAppsJob(RouterContext ctx) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Descriptive name of the task
|
static void |
main(String[] args) |
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.
|
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
public LoadClientAppsJob(RouterContext ctx)
public void runJob()
Job
public static void testClient(String className, ClassLoader cl) throws ClassNotFoundException
cl
- can be nullClassNotFoundException
public static void runClientInline(String className, String clientName, String[] args, Log log) throws Exception
clientName
- can be nullargs
- can be nulljust
- about anything, caller would be wise to catch ThrowableException
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 nulljust
- about anything, caller would be wise to catch ThrowableException
public static void runClient(String className, String clientName, String[] args, Log log)
clientName
- can be nullargs
- can be nullpublic 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 static void main(String[] args)