Apache Mesos
|
Represents a fetcher plugin that handles one or more URI schemes. More...
#include <fetcher.hpp>
Public Member Functions | |
virtual | ~Plugin () |
virtual std::set< std::string > | schemes () const =0 |
Returns the URI schemes that this plugin handles. More... | |
virtual std::string | name () const =0 |
Returns the name that this plugin registered with. More... | |
virtual process::Future< Nothing > | fetch (const URI &uri, const std::string &directory, const Option< std::string > &data=None(), const Option< std::string > &outputFileName=None()) const =0 |
Fetches a URI to the given directory. More... | |
Represents a fetcher plugin that handles one or more URI schemes.
|
inlinevirtual |
|
pure virtual |
Fetches a URI to the given directory.
To avoid blocking or crashing the current thread, this method might choose to fork subprocesses for third party commands.
uri | the URI to fetch |
directory | the directory the URI will be downloaded to |
data | the optional user defined data |
outputFileName | the optional output file name |
Implemented in mesos::uri::DockerFetcherPlugin, mesos::uri::HadoopFetcherPlugin, mesos::uri::CurlFetcherPlugin, and mesos::uri::CopyFetcherPlugin.
|
pure virtual |
Returns the name that this plugin registered with.
Implemented in mesos::uri::DockerFetcherPlugin, mesos::uri::HadoopFetcherPlugin, mesos::uri::CurlFetcherPlugin, and mesos::uri::CopyFetcherPlugin.
|
pure virtual |
Returns the URI schemes that this plugin handles.
Implemented in mesos::uri::DockerFetcherPlugin, mesos::uri::HadoopFetcherPlugin, mesos::uri::CurlFetcherPlugin, and mesos::uri::CopyFetcherPlugin.