Package | Description |
---|---|
org.apache.twill.api |
Classes in this package provides core functionality of the Twill library.
|
org.apache.twill.yarn |
Classes in this package implement the Twill API for Apache Hadoop YARN.
|
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.setClassLoader(String classLoaderClassName)
Sets the class name of the
ClassLoader to be used for loading twill and application classes for
all containers. |
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.setJVMOptions(String runnableName,
String options)
This methods sets the extra JVM options that will be passed to the java command line for the given runnable
of the application started through this
TwillPreparer instance. |
TwillPreparer |
TwillPreparer.setLogLevel(LogEntry.Level logLevel)
Deprecated.
Use
setLogLevels(Map) with key Logger.ROOT_LOGGER_NAME instead. |
TwillPreparer |
TwillPreparer.setLogLevels(Map<String,LogEntry.Level> logLevels)
Set the log levels for requested logger names for Twill applications running in a container.
|
TwillPreparer |
TwillPreparer.setLogLevels(String runnableName,
Map<String,LogEntry.Level> logLevelsForRunnable)
Set the log levels for requested logger names for a
TwillRunnable . |
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.withConfiguration(Map<String,String> config)
Overrides the default configuration with the given set of configurations.
|
TwillPreparer |
TwillPreparer.withConfiguration(String runnableName,
Map<String,String> config)
Overrides the default configuration with the given set of configurations for the given runnable only.
|
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.withMaxRetries(String runnableName,
int maxRetries)
Sets the maximum number of times (per instance) a runnable will be retried if it exits without success.
|
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 . |
Modifier and Type | Method and Description |
---|---|
TwillPreparer |
YarnTwillRunnerService.prepare(TwillApplication application) |
TwillPreparer |
YarnTwillRunnerService.prepare(TwillRunnable runnable) |
TwillPreparer |
YarnTwillRunnerService.prepare(TwillRunnable runnable,
ResourceSpecification resourceSpecification) |
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.