#include <uri_disk_profile_adaptor.hpp>
mesos::internal::storage::UriDiskProfileAdaptor::UriDiskProfileAdaptor |
( |
const Flags & |
_flags | ) |
|
mesos::internal::storage::UriDiskProfileAdaptor::~UriDiskProfileAdaptor |
( |
| ) |
|
|
override |
Returns the CSI volume capability and the parameters to create CSI volumes associated with the profile.
This method is expected to return a Failure if a matching profile cannot be found or retrieved. The caller should not proceed with any of the affected CSI requests if this method returns a failure.
The resourceProviderInfo
parameter is the ResourceProviderInfo
of the storage resource provider. This module may choose to filter results based on the type and name of the resource provider, or based on the type of the CSI plugin.
NOTE: This module assumes that profiles are immutable after creation. Changing the CSI volume capability or parameters of a profile after creation may result in undefined behavior from the storage resource provider.
Implements mesos::DiskProfileAdaptor.
process::Future<hashset<std::string> > mesos::internal::storage::UriDiskProfileAdaptor::watch |
( |
const hashset< std::string > & |
knownProfiles, |
|
|
const ResourceProviderInfo & |
resourceProviderInfo |
|
) |
| |
|
overridevirtual |
Returns a future that will be satisifed iff the set of profiles known by the module differs from the knownProfiles
parameter.
The resourceProviderInfo
parameter is the ResourceProviderInfo
of the storage resource provider. This module may choose to filter results based on the type and name of the resource provider, or based on the type of the CSI plugin.
NOTE: It is highly recommended for the module to insert a random delay between discovering a different set of profiles and satisfying this future, because the storage resource provider is expected to update the set of offered resources based on this future. Adding a random delay may prevent a thundering herd of resource updates to the Mesos master.
Implements mesos::DiskProfileAdaptor.
Flags mesos::internal::storage::UriDiskProfileAdaptor::flags |
|
protected |
The documentation for this class was generated from the following file: