| Package | Description |
|---|---|
| org.apache.twill.api |
Classes in this package provides core functionality of the Twill library.
|
| Modifier and Type | Method and Description |
|---|---|
TwillPreparer |
TwillPreparer.addJVMOptions(String options)
This methods adds extra JVM options that will be passed to the java command line for every runnable
of the application started through this
TwillPreparer instance. |
TwillPreparer |
TwillPreparer.addLogHandler(LogHandler handler)
Adds a
LogHandler for receiving an application log. |
TwillPreparer |
TwillPreparer.addSecureStore(SecureStore secureStore)
Adds security credentials for the runtime environment to gives application access to resources.
|
TwillPreparer |
TwillPreparer.enableDebugging(boolean doSuspend,
String... runnables)
Enable debugging for runnables.
|
TwillPreparer |
TwillPreparer.enableDebugging(String... runnables)
Enable debugging for runnables, without suspending the virtual machine to wait for the debugger.
|
TwillPreparer |
TwillRunner.prepare(TwillApplication application)
Prepares to run the given
TwillApplication as specified by the application. |
TwillPreparer |
TwillRunner.prepare(TwillRunnable runnable)
Prepares to run the given
TwillRunnable with ResourceSpecification.BASIC resource specification. |
TwillPreparer |
TwillRunner.prepare(TwillRunnable runnable,
ResourceSpecification resourceSpecification)
Prepares to run the given
TwillRunnable with the given resource specification. |
TwillPreparer |
TwillPreparer.setJVMOptions(String options)
This methods sets the extra JVM options that will be passed to the java command line for every runnable
of the application started through this
TwillPreparer instance. |
TwillPreparer |
TwillPreparer.setLogLevel(LogEntry.Level logLevel)
Set the log level for Twill applications running in a container.
|
TwillPreparer |
TwillPreparer.setSchedulerQueue(String name)
Sets the name of the scheduler queue to use.
|
TwillPreparer |
TwillPreparer.setUser(String user)
Deprecated.
This method will be removed in future version.
|
TwillPreparer |
TwillPreparer.withApplicationArguments(Iterable<String> args)
Sets the list of arguments that will be passed to the application.
|
TwillPreparer |
TwillPreparer.withApplicationArguments(String... args)
Sets the list of arguments that will be passed to the application.
|
TwillPreparer |
TwillPreparer.withApplicationClassPaths(Iterable<String> classPaths)
Adds the set of paths to the classpath on the target machine for ApplicationMaster and all runnables.
|
TwillPreparer |
TwillPreparer.withApplicationClassPaths(String... classPaths)
Adds the set of paths to the classpath on the target machine for ApplicationMaster and all runnables.
|
TwillPreparer |
TwillPreparer.withArguments(String runnableName,
Iterable<String> args)
Sets the list of arguments that will be passed to the
TwillRunnable identified by the given name. |
TwillPreparer |
TwillPreparer.withArguments(String runnableName,
String... args)
Sets the list of arguments that will be passed to the
TwillRunnable identified by the given name. |
TwillPreparer |
TwillPreparer.withBundlerClassAcceptor(ClassAcceptor classAcceptor)
Uses
ClassAcceptor to determine the classes to include in the bundle jar for
ApplicationMaster and all runnables. |
TwillPreparer |
TwillPreparer.withClassPaths(Iterable<String> classPaths)
Adds the set of paths to the classpath on the target machine for all runnables.
|
TwillPreparer |
TwillPreparer.withClassPaths(String... classPaths)
Adds the set of paths to the classpath on the target machine for all runnables.
|
TwillPreparer |
TwillPreparer.withDependencies(Class<?>... classes)
Adds extra classes that the application is dependent on and is not traceable from the application itself.
|
TwillPreparer |
TwillPreparer.withDependencies(Iterable<Class<?>> classes)
Adds extra classes that the application is dependent on and is not traceable from the application itself.
|
TwillPreparer |
TwillPreparer.withEnv(Map<String,String> env)
Adds the set of environment variables that will be set as container environment variables for all runnables.
|
TwillPreparer |
TwillPreparer.withEnv(String runnableName,
Map<String,String> env)
Adds the set of environment variables that will be set as container environment variables for the given runnable.
|
TwillPreparer |
TwillPreparer.withResources(Iterable<URI> resources)
Adds resources that will be available through the ClassLoader of the
runnables. |
TwillPreparer |
TwillPreparer.withResources(URI... resources)
Adds resources that will be available through the ClassLoader of the
runnables. |
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.