public class BundledJarRunnable extends Object implements org.apache.twill.api.TwillRunnable
BundledJarRunnable to run a bundled jar.| Constructor and Description |
|---|
BundledJarRunnable() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.twill.api.TwillRunnableSpecification |
configure() |
void |
destroy() |
protected void |
doInitialize(org.apache.twill.api.TwillContext context) |
protected BundledJarRunner.Arguments |
getArguments() |
void |
handleCommand(org.apache.twill.api.Command command) |
void |
initialize(org.apache.twill.api.TwillContext context) |
void |
run() |
protected void |
setMainArgs(String mainArgs) |
protected void |
setMainArgs(String[] mainArgs) |
void |
stop() |
public void stop()
stop in interface org.apache.twill.api.TwillRunnableprotected void doInitialize(org.apache.twill.api.TwillContext context)
protected BundledJarRunner.Arguments getArguments()
protected void setMainArgs(String[] mainArgs)
protected void setMainArgs(String mainArgs)
public org.apache.twill.api.TwillRunnableSpecification configure()
configure in interface org.apache.twill.api.TwillRunnablepublic final void initialize(org.apache.twill.api.TwillContext context)
initialize in interface org.apache.twill.api.TwillRunnablepublic void handleCommand(org.apache.twill.api.Command command)
throws Exception
handleCommand in interface org.apache.twill.api.TwillRunnableExceptionpublic void destroy()
destroy in interface org.apache.twill.api.TwillRunnableCopyright © 2013-2020 The Apache Software Foundation. All rights reserved.