Package | Description |
---|---|
org.apache.twill.filesystem |
Contains HDFS location classes.
|
org.apache.twill.internal |
This package provides internal classes for Twill.
|
Modifier and Type | Method and Description |
---|---|
Location |
Location.append(String child)
Appends the child to the current
Location . |
Location |
FileContextLocationFactory.create(String path) |
Location |
LocalLocationFactory.create(String path) |
Location |
LocationFactory.create(String path)
Creates an instance of
Location of the given path. |
Location |
FileContextLocationFactory.create(URI uri) |
Location |
LocalLocationFactory.create(URI uri) |
Location |
LocationFactory.create(URI uri)
|
Location |
FileContextLocationFactory.getHomeLocation() |
Location |
LocalLocationFactory.getHomeLocation() |
Location |
LocationFactory.getHomeLocation()
Returns the home location.
|
Location |
Location.getTempFile(String suffix)
Returns unique location for temporary file to be placed near this location.
|
Location |
Location.renameTo(Location destination)
Moves the file or directory denoted by this abstract pathname.
|
Modifier and Type | Method and Description |
---|---|
List<Location> |
Location.list()
List the locations under this location.
|
Modifier and Type | Method and Description |
---|---|
Location |
Location.renameTo(Location destination)
Moves the file or directory denoted by this abstract pathname.
|
Modifier and Type | Method and Description |
---|---|
protected Location |
ServiceMain.createAppLocation(org.apache.hadoop.conf.Configuration conf,
String fsUser,
URI appDir)
Returns the
Location for the application based on the app directory. |
Modifier and Type | Method and Description |
---|---|
void |
ApplicationBundler.createBundle(Location target,
Class<?> clz,
Class<?>... classes)
Same as calling
ApplicationBundler.createBundle(Location, Iterable) . |
void |
ApplicationBundler.createBundle(Location target,
Iterable<Class<?>> classes) |
void |
ApplicationBundler.createBundle(Location target,
Iterable<Class<?>> classes,
Iterable<URI> resources)
Creates a jar file which includes all the given classes and all the classes that they depended on.
|
TwillContainerController |
TwillContainerLauncher.start(RunId runId,
int instanceId,
Class<?> mainClass,
String classPath,
Location logLevelLocation)
Start execution run for a class in a container.
|
Constructor and Description |
---|
TwillContainerLauncher(RuntimeSpecification runtimeSpec,
ContainerInfo containerInfo,
ProcessLauncher.PrepareLaunchContext launchContext,
ZKClient zkClient,
int instanceCount,
JvmOptions jvmOpts,
int reservedMemory,
double minHeapRatio,
Location secureStoreLocation) |
Copyright © 2013-2020 The Apache Software Foundation. All rights reserved.