Apache Mesos
Classes | Functions | Variables
mesos::internal::slave::paths Namespace Reference

Classes

struct  ExecutorRunPath
 

Functions

Try< ExecutorRunPathparseExecutorRunPath (const std::string &rootDir, const std::string &dir)
 
std::string getMetaRootDir (const std::string &rootDir)
 
std::string getSandboxRootDir (const std::string &rootDir)
 
std::string getProvisionerDir (const std::string &rootDir)
 
std::string getCsiRootDir (const std::string &workDir)
 
std::string getLatestSlavePath (const std::string &rootDir)
 
std::string getBootIdPath (const std::string &rootDir)
 
std::string getSlaveInfoPath (const std::string &rootDir, const SlaveID &slaveId)
 
std::string getSlavePath (const std::string &rootDir, const SlaveID &slaveId)
 
Try< std::list< std::string > > getContainerPaths (const std::string &rootDir)
 
std::string getContainerPath (const std::string &rootDir, const ContainerID &containerId)
 
Try< std::list< std::string > > getFrameworkPaths (const std::string &rootDir, const SlaveID &slaveId)
 
std::string getFrameworkPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId)
 
std::string getFrameworkPidPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId)
 
std::string getFrameworkInfoPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId)
 
Try< std::list< std::string > > getExecutorPaths (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId)
 
std::string getExecutorPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId)
 
std::string getExecutorInfoPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId)
 
Try< std::list< std::string > > getExecutorRunPaths (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId)
 
std::string getExecutorRunPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
 
std::string getExecutorHttpMarkerPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
 
std::string getExecutorSentinelPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
 
std::string getExecutorVirtualPath (const FrameworkID &frameworkId, const ExecutorID &executorId)
 
std::string getExecutorLatestRunPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId)
 
std::string getLibprocessPidPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
 
std::string getForkedPidPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
 
std::string getContainerRootfsPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
 
Try< std::list< std::string > > getTaskPaths (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
 
std::string getTaskPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId, const TaskID &taskId)
 
std::string getTaskInfoPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId, const TaskID &taskId)
 
std::string getTaskUpdatesPath (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId, const TaskID &taskId)
 
std::string getResourceProviderRegistryPath (const std::string &rootDir, const SlaveID &slaveId)
 
Try< std::list< std::string > > getResourceProviderPaths (const std::string &metaDir, const SlaveID &slaveId)
 
std::string getResourceProviderPath (const std::string &metaDir, const SlaveID &slaveId, const std::string &resourceProviderType, const std::string &resourceProviderName, const ResourceProviderID &resourceProviderId)
 
std::string getResourceProviderStatePath (const std::string &metaDir, const SlaveID &slaveId, const std::string &resourceProviderType, const std::string &resourceProviderName, const ResourceProviderID &resourceProviderId)
 
std::string getLatestResourceProviderPath (const std::string &metaDir, const SlaveID &slaveId, const std::string &resourceProviderType, const std::string &resourceProviderName)
 
Try< std::list< std::string > > getOperationPaths (const std::string &rootDir)
 
std::string getOperationPath (const std::string &rootDir, const id::UUID &operationUuid)
 
Try< id::UUIDparseOperationPath (const std::string &rootDir, const std::string &dir)
 
std::string getOperationUpdatesPath (const std::string &rootDir, const id::UUID &operationUuid)
 
std::string getResourcesInfoPath (const std::string &rootDir)
 
std::string getResourcesTargetPath (const std::string &rootDir)
 
std::string getPersistentVolumePath (const std::string &workDir, const std::string &role, const std::string &persistenceId)
 
std::string getPersistentVolumePath (const std::string &workDir, const Resource &resource)
 
std::string createExecutorDirectory (const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId, const Option< std::string > &user=None())
 
Try< NothingcreateSandboxDirectory (const std::string &directory, const Option< std::string > &user)
 
std::string createSlaveDirectory (const std::string &rootDir, const SlaveID &slaveId)
 
std::string createResourceProviderDirectory (const std::string &rootDir, const SlaveID &slaveId, const std::string &resourceProviderType, const std::string &resourceProviderName, const ResourceProviderID &resourceProviderId)
 

Variables

const char LATEST_SYMLINK [] = "latest"
 
const char LIBPROCESS_PID_FILE []
 
const char HTTP_MARKER_FILE []
 

Function Documentation

std::string mesos::internal::slave::paths::createExecutorDirectory ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId,
const ContainerID &  containerId,
const Option< std::string > &  user = None() 
)
std::string mesos::internal::slave::paths::createResourceProviderDirectory ( const std::string &  rootDir,
const SlaveID &  slaveId,
const std::string &  resourceProviderType,
const std::string &  resourceProviderName,
const ResourceProviderID &  resourceProviderId 
)
Try<Nothing> mesos::internal::slave::paths::createSandboxDirectory ( const std::string &  directory,
const Option< std::string > &  user 
)
std::string mesos::internal::slave::paths::createSlaveDirectory ( const std::string &  rootDir,
const SlaveID &  slaveId 
)
std::string mesos::internal::slave::paths::getBootIdPath ( const std::string &  rootDir)
std::string mesos::internal::slave::paths::getContainerPath ( const std::string &  rootDir,
const ContainerID &  containerId 
)
Try<std::list<std::string> > mesos::internal::slave::paths::getContainerPaths ( const std::string &  rootDir)
std::string mesos::internal::slave::paths::getContainerRootfsPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::paths::getCsiRootDir ( const std::string &  workDir)
std::string mesos::internal::slave::paths::getExecutorHttpMarkerPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::paths::getExecutorInfoPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId 
)
std::string mesos::internal::slave::paths::getExecutorLatestRunPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId 
)
std::string mesos::internal::slave::paths::getExecutorPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId 
)
Try<std::list<std::string> > mesos::internal::slave::paths::getExecutorPaths ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId 
)
std::string mesos::internal::slave::paths::getExecutorRunPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId,
const ContainerID &  containerId 
)
Try<std::list<std::string> > mesos::internal::slave::paths::getExecutorRunPaths ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId 
)
std::string mesos::internal::slave::paths::getExecutorSentinelPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::paths::getExecutorVirtualPath ( const FrameworkID &  frameworkId,
const ExecutorID &  executorId 
)
std::string mesos::internal::slave::paths::getForkedPidPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::paths::getFrameworkInfoPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId 
)
std::string mesos::internal::slave::paths::getFrameworkPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId 
)
Try<std::list<std::string> > mesos::internal::slave::paths::getFrameworkPaths ( const std::string &  rootDir,
const SlaveID &  slaveId 
)
std::string mesos::internal::slave::paths::getFrameworkPidPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId 
)
std::string mesos::internal::slave::paths::getLatestResourceProviderPath ( const std::string &  metaDir,
const SlaveID &  slaveId,
const std::string &  resourceProviderType,
const std::string &  resourceProviderName 
)
std::string mesos::internal::slave::paths::getLatestSlavePath ( const std::string &  rootDir)
std::string mesos::internal::slave::paths::getLibprocessPidPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::paths::getMetaRootDir ( const std::string &  rootDir)
std::string mesos::internal::slave::paths::getOperationPath ( const std::string &  rootDir,
const id::UUID operationUuid 
)
Try<std::list<std::string> > mesos::internal::slave::paths::getOperationPaths ( const std::string &  rootDir)
std::string mesos::internal::slave::paths::getOperationUpdatesPath ( const std::string &  rootDir,
const id::UUID operationUuid 
)
std::string mesos::internal::slave::paths::getPersistentVolumePath ( const std::string &  workDir,
const std::string &  role,
const std::string &  persistenceId 
)
std::string mesos::internal::slave::paths::getPersistentVolumePath ( const std::string &  workDir,
const Resource &  resource 
)
std::string mesos::internal::slave::paths::getProvisionerDir ( const std::string &  rootDir)
std::string mesos::internal::slave::paths::getResourceProviderPath ( const std::string &  metaDir,
const SlaveID &  slaveId,
const std::string &  resourceProviderType,
const std::string &  resourceProviderName,
const ResourceProviderID &  resourceProviderId 
)
Try<std::list<std::string> > mesos::internal::slave::paths::getResourceProviderPaths ( const std::string &  metaDir,
const SlaveID &  slaveId 
)
std::string mesos::internal::slave::paths::getResourceProviderRegistryPath ( const std::string &  rootDir,
const SlaveID &  slaveId 
)
std::string mesos::internal::slave::paths::getResourceProviderStatePath ( const std::string &  metaDir,
const SlaveID &  slaveId,
const std::string &  resourceProviderType,
const std::string &  resourceProviderName,
const ResourceProviderID &  resourceProviderId 
)
std::string mesos::internal::slave::paths::getResourcesInfoPath ( const std::string &  rootDir)
std::string mesos::internal::slave::paths::getResourcesTargetPath ( const std::string &  rootDir)
std::string mesos::internal::slave::paths::getSandboxRootDir ( const std::string &  rootDir)
std::string mesos::internal::slave::paths::getSlaveInfoPath ( const std::string &  rootDir,
const SlaveID &  slaveId 
)
std::string mesos::internal::slave::paths::getSlavePath ( const std::string &  rootDir,
const SlaveID &  slaveId 
)
std::string mesos::internal::slave::paths::getTaskInfoPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId,
const ContainerID &  containerId,
const TaskID &  taskId 
)
std::string mesos::internal::slave::paths::getTaskPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId,
const ContainerID &  containerId,
const TaskID &  taskId 
)
Try<std::list<std::string> > mesos::internal::slave::paths::getTaskPaths ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::paths::getTaskUpdatesPath ( const std::string &  rootDir,
const SlaveID &  slaveId,
const FrameworkID &  frameworkId,
const ExecutorID &  executorId,
const ContainerID &  containerId,
const TaskID &  taskId 
)
Try<ExecutorRunPath> mesos::internal::slave::paths::parseExecutorRunPath ( const std::string &  rootDir,
const std::string &  dir 
)
Try<id::UUID> mesos::internal::slave::paths::parseOperationPath ( const std::string &  rootDir,
const std::string &  dir 
)

Variable Documentation

const char mesos::internal::slave::paths::HTTP_MARKER_FILE[]
const char mesos::internal::slave::paths::LATEST_SYMLINK[] = "latest"
const char mesos::internal::slave::paths::LIBPROCESS_PID_FILE[]