CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TalkManager Class Reference

#include <talk.h>

Inheritance diagram for TalkManager:
Collaboration diagram for TalkManager:

Public Member Functions

 ~TalkManager ()
 
void Spawn ()
 

Static Public Member Functions

static TalkManagerCreate (const std::string &socket_path, MountPoint *mount_point, FuseRemounter *remounter)
 

Private Member Functions

 TalkManager (const std::string &socket_path, MountPoint *mount_point, FuseRemounter *remounter)
 
void Answer (int con_fd, const std::string &msg)
 
void AnswerStringList (int con_fd, const std::vector< std::string > &list)
 
std::string FormatHostInfo (download::DownloadManager *download_mgr)
 
std::string FormatProxyInfo (download::DownloadManager *download_mgr)
 
std::string FormatLatencies (const MountPoint &mount_point, FileSystem *file_system)
 
- Private Member Functions inherited from SingleCopy
 SingleCopy ()
 

Static Private Member Functions

static void * MainResponder (void *data)
 

Private Attributes

std::string socket_path_
 
int socket_fd_
 
MountPointmount_point_
 
FuseRemounterremounter_
 
pthread_t thread_talk_
 
bool spawned_
 

Static Private Attributes

static const unsigned kMaxCommandSize = 512
 

Detailed Description

Provides a command & control interface to the MountPoint class. Data is exchanged through a UNIX domain socket. Used by the cvmfs_talk utility.

Definition at line 29 of file talk.h.

Constructor & Destructor Documentation

TalkManager::~TalkManager ( )

Definition at line 809 of file talk.cc.

TalkManager::TalkManager ( const std::string &  socket_path,
MountPoint mount_point,
FuseRemounter remounter 
)
private

Definition at line 795 of file talk.cc.

Member Function Documentation

void TalkManager::Answer ( int  con_fd,
const std::string &  msg 
)
private

Definition at line 64 of file talk.cc.

Referenced by MainResponder().

Here is the caller graph for this function:

void TalkManager::AnswerStringList ( int  con_fd,
const std::vector< std::string > &  list 
)
private

Definition at line 69 of file talk.cc.

Referenced by MainResponder().

Here is the caller graph for this function:

TalkManager * TalkManager::Create ( const std::string &  socket_path,
MountPoint mount_point,
FuseRemounter remounter 
)
static

Definition at line 78 of file talk.cc.

Referenced by Init().

Here is the call graph for this function:

Here is the caller graph for this function:

string TalkManager::FormatHostInfo ( download::DownloadManager download_mgr)
private

Definition at line 99 of file talk.cc.

Referenced by MainResponder().

Here is the call graph for this function:

Here is the caller graph for this function:

string TalkManager::FormatLatencies ( const MountPoint mount_point,
FileSystem file_system 
)
private

Definition at line 711 of file talk.cc.

Referenced by MainResponder().

Here is the call graph for this function:

Here is the caller graph for this function:

string TalkManager::FormatProxyInfo ( download::DownloadManager download_mgr)
private

Definition at line 126 of file talk.cc.

Referenced by MainResponder().

Here is the call graph for this function:

Here is the caller graph for this function:

void * TalkManager::MainResponder ( void *  data)
staticprivate

Listener thread on the socket. TODO(jblomer): create Format... helpers to shorten this method

Definition at line 159 of file talk.cc.

Referenced by Spawn().

Here is the caller graph for this function:

void TalkManager::Spawn ( )

Definition at line 831 of file talk.cc.

Referenced by Spawn().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const unsigned TalkManager::kMaxCommandSize = 512
staticprivate

Maximum number of characters that can be read as a command from the socket.

Definition at line 42 of file talk.h.

MountPoint* TalkManager::mount_point_
private

Definition at line 57 of file talk.h.

Referenced by MainResponder().

FuseRemounter* TalkManager::remounter_
private

Definition at line 58 of file talk.h.

Referenced by MainResponder().

int TalkManager::socket_fd_
private

Definition at line 56 of file talk.h.

Referenced by Create(), MainResponder(), and ~TalkManager().

std::string TalkManager::socket_path_
private

Definition at line 55 of file talk.h.

Referenced by ~TalkManager().

bool TalkManager::spawned_
private

Definition at line 60 of file talk.h.

Referenced by Spawn(), and ~TalkManager().

pthread_t TalkManager::thread_talk_
private

Definition at line 59 of file talk.h.

Referenced by Spawn(), TalkManager(), and ~TalkManager().


The documentation for this class was generated from the following files: