@Deprecated public class MesosArtifactServerImpl extends Object implements MesosArtifactServer
MesosArtifactServer
.Modifier and Type | Class and Description |
---|---|
static class |
MesosArtifactServerImpl.UnknownFileHandler
Deprecated.
Handle a request for a non-existent file.
|
static class |
MesosArtifactServerImpl.VirtualFileServerHandler
Deprecated.
Handle HEAD and GET requests for a specific file.
|
Constructor and Description |
---|
MesosArtifactServerImpl(String prefix,
String serverHostname,
int configuredPort,
Configuration config)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
URL |
addPath(Path path,
Path remoteFile)
Deprecated.
Adds a path to the artifact server.
|
scala.Option<URL> |
resolve(Path remoteFile)
Deprecated.
|
void |
stop()
Deprecated.
Stops the artifact server.
|
public MesosArtifactServerImpl(String prefix, String serverHostname, int configuredPort, Configuration config) throws Exception
Exception
public URL addPath(Path path, Path remoteFile) throws IOException
MesosArtifactServer
addPath
in interface MesosArtifactServer
path
- the qualified FS path to serve (local, hdfs, etc).remoteFile
- the remote path with which to locate the file.MalformedURLException
- if the remote path is invalid.IOException
public scala.Option<URL> resolve(Path remoteFile)
resolve
in interface MesosArtifactResolver
public void stop() throws Exception
MesosArtifactServer
stop
in interface MesosArtifactServer
Exception
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.