Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

RunTool Class Reference

#include <RunToolClient.H>

List of all members.

Static Public Member Functions

static Tool_result do_it (const Text &host, chars_seq *argv, LongId &fsroot, const Text &wd=DEFAULT_TOOL_WD, chars_seq *ev=NULL, std::ostream *report_out=NULL, std::ostream *value_out=NULL, std::ostream *report_err=NULL, std::ostream *value_err=NULL, Basics::mutex *mu=NULL, const Text &label="", const Text &stdin_name="") throw (SRPC::failure, FS::Failure)
static void get_info (const Text &host, Host_info &hinfo) throw (SRPC::failure)

Static Private Member Functions

static void init () throw (SRPC::failure)
static void ensure_init () throw (SRPC::failure)
static void send_relay_socket (Tool_Relay &r, SRPC *srpc)
static void send_vdir (LongId &fsroot, SRPC *srpc)

Static Private Attributes

static pthread_once_t init_block = PTHREAD_ONCE_INIT
static MultiSRPCsrpc_cache = NULL

Friends

void RunTool_init ()

Classes

struct  Host_info
struct  Tool_result


Member Function Documentation

RunTool::Tool_result RunTool::do_it const Text host,
chars_seq argv,
LongId fsroot,
const Text wd = DEFAULT_TOOL_WD,
chars_seq ev = NULL,
std::ostream *  report_out = NULL,
std::ostream *  value_out = NULL,
std::ostream *  report_err = NULL,
std::ostream *  value_err = NULL,
Basics::mutex mu = NULL,
const Text label = "",
const Text stdin_name = ""
throw (SRPC::failure, FS::Failure) [static]
 

Definition at line 125 of file RunToolClient.C.

References SRPC::convert_TCP_failure(), RunTool::Tool_result::dumped_core, Tool_Relay::finish(), mu, NEW, SRPC::failure::r, SRPC::recv_bool(), SRPC::recv_end(), SRPC::recv_int(), RUN_TOOL_DOIT, RUN_TOOL_INTERFACE_VERSION, SRPC::send_chars_seq(), SRPC::send_end(), SRPC::send_Text(), Tool_Relay::setup(), RunTool::Tool_result::sigval, SRPC::start_call(), RunTool::Tool_result::status, RunTool::Tool_result::stderr_written, and RunTool::Tool_result::stdout_written.

Referenced by RunTool().

void RunTool::ensure_init  )  throw (SRPC::failure) [static, private]
 

Definition at line 67 of file RunToolClient.C.

References implementation_error, init_block, and RunTool_init.

void RunTool::get_info const Text host,
Host_info hinfo
throw (SRPC::failure) [static]
 

Definition at line 235 of file RunToolClient.C.

References SRPC::enable_read_timeout(), SRPC::recv_float(), SRPC::recv_int(), SRPC::recv_Text(), RUN_TOOL_INFO, RUN_TOOL_INTERFACE_VERSION, SRPC::send_end(), and SRPC::start_call().

Referenced by main(), and RunToolHost().

void RunTool::init  )  throw (SRPC::failure) [static, private]
 

Definition at line 73 of file RunToolClient.C.

References Text::cchars(), VestaConfig::get(), VestaConfig::get_Text(), implementation_error, VestaConfig::failure::msg, NEW, RUN_TOOL_CONFIG_SECTION, and srpc_cache.

Referenced by RunTool_init().

void RunTool::send_relay_socket Tool_Relay r,
SRPC srpc
[static, private]
 

Definition at line 94 of file RunToolClient.C.

References Tool_Relay::get_sockaddr(), and SRPC::send_socket().

void RunTool::send_vdir LongId fsroot,
SRPC srpc
[static, private]
 

Definition at line 101 of file RunToolClient.C.

References VDirSurrogate::getNFSInfo(), TCP_sock::name_to_sockaddr(), SRPC::send_bytes(), and SRPC::send_socket().


Friends And Related Function Documentation

void RunTool_init  )  [friend]
 

Definition at line 61 of file RunToolClient.C.

Referenced by ensure_init().


Member Data Documentation

pthread_once_t RunTool::init_block = PTHREAD_ONCE_INIT [static, private]
 

Definition at line 43 of file RunToolClient.C.

Referenced by ensure_init().

MultiSRPC * RunTool::srpc_cache = NULL [static, private]
 

Definition at line 45 of file RunToolClient.C.

Referenced by init().


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:12 2006 for Vesta by  doxygen 1.4.2