public interface RpcEnvFileServer
The file server can return URIs handled by common libraries (such as "http" or "hdfs"), or
it can return "spark" URIs which will be handled by RpcEnv#fetchFile.
| Modifier and Type | Method and Description |
|---|---|
String |
addDirectory(String baseUri,
java.io.File path)
Adds a local directory to be served via this file server.
|
String |
addFile(java.io.File file)
Adds a file to be served by this RpcEnv.
|
String |
addJar(java.io.File file)
Adds a jar to be served by this RpcEnv.
|
String |
validateDirectoryUri(String baseUri)
Validates and normalizes the base URI for directories.
|
String addDirectory(String baseUri,
java.io.File path)
baseUri - Leading URI path (files can be retrieved by appending their relative
path to this base URI). This cannot be "files" nor "jars".path - Path to the local directory.String addFile(java.io.File file)
file - Local file to serve.String addJar(java.io.File file)
addFile but for jars added using
SparkContext.addJar.
file - Local file to serve.String validateDirectoryUri(String baseUri)