ARB
|
#include <arbdb_base.h>
Go to the source code of this file.
Classes | |
struct | arb_params |
Enumerations | |
enum | SpawnMode { WAIT_FOR_TERMINATION, SPAWN_ASYNCHRONOUS, SPAWN_DAEMONIZED } |
Functions | |
char * | createCallOnSocketHost (const char *host, const char *remotePrefix, const char *command, SpawnMode spawnmode, const char *logfile) |
GB_ERROR | arb_start_server (const char *arb_tcp_env, int do_sleep) |
GB_ERROR | arb_look_and_start_server (long magic_number, const char *arb_tcp_env) |
GB_ERROR | arb_look_and_kill_server (int magic_number, const char *arb_tcp_env) |
const char * | arb_look_and_start_ptserver (int magic_number, int ptserver_id, GB_ERROR &error) |
void | arb_print_server_params (void) |
arb_params * | arb_trace_argv (int *argc, const char **argv) |
void | free_arb_params (arb_params *params) |
enum SpawnMode |
Enumerator | |
---|---|
WAIT_FOR_TERMINATION | |
SPAWN_ASYNCHRONOUS | |
SPAWN_DAEMONIZED |
Definition at line 33 of file servercntrl.h.
char* createCallOnSocketHost | ( | const char * | host, |
const char * | remotePrefix, | ||
const char * | command, | ||
SpawnMode | spawnmode, | ||
const char * | logfile | ||
) |
transforms a shell-command
host | socket specification (may be 'host:port', 'host' or ':portOrSocketfile') |
remotePrefix | prefixed to command if it is executed on remote host (e.g. "$ARBHOME/bin/" -> uses value of environment variable ARBHOME on remote host!) |
command | the shell command to execute |
spawnmode | how to spawn: WAIT_FOR_TERMINATION = run "command" SPAWN_ASYNCHRONOUS = run "( command ) &" SPAWN_DAEMONIZED = do not forward kill signals, remove from joblist and redirect output to logfile |
logfile | use with SPAWN_DAEMONIZED (mandatory; NULp otherwise) |
Definition at line 75 of file servercntrl.cxx.
References arb_assert, ARB_strdup(), ARB_strpartdup(), GB_host_is_local(), GBK_singlequote(), GBS_global_string(), GBS_global_string_copy(), make_async_call(), make_valgrinded_call, NULp, SPAWN_ASYNCHRONOUS, SPAWN_DAEMONIZED, and WAIT_FOR_TERMINATION.
Referenced by arb_start_server(), and pd_query_pt_server().
Definition at line 134 of file servercntrl.cxx.
References ARB_alloc(), ARB_sleep(), command, createCallOnSocketHost(), error(), GB_await_error(), GB_export_errorf(), GB_getenv(), GBK_system(), GBS_global_string_copy(), GBS_read_arb_tcp(), NULp, SEC, SPAWN_ASYNCHRONOUS, and SPAWN_DAEMONIZED.
Referenced by arb_wait_for_server(), and pd_export_pt_server().
Definition at line 239 of file servercntrl.cxx.
References aisc_close(), arb_assert, ARB_strdup(), arb_tcp_dat, arb_wait_for_server(), check_server_selected(), gl_struct::com, error(), GB_await_error(), GB_have_error(), GB_size_of_file(), GBK_system(), GBS_global_string(), GBS_read_arb_tcp(), GBS_scan_arb_tcp_param(), glservercntrl, gl_struct::link, and NULp.
Referenced by arb_look_and_start_ptserver(), NameServerConnection::connect(), pd_start_pt_server(), sina_start(), and test_ptserver_activate().
Definition at line 334 of file servercntrl.cxx.
References aisc_close(), aisc_open(), check_server_selected(), gl_struct::com, error(), GB_await_error(), GBK_system(), GBS_global_string(), GBS_read_arb_tcp(), glservercntrl, gl_struct::link, and NULp.
Referenced by pd_export_pt_server(), pd_kill_pt_server(), and test_ptserver_activate().
Definition at line 359 of file servercntrl.cxx.
References arb_assert, arb_look_and_start_server(), GB_await_error(), GBS_ptserver_tag(), GBS_read_arb_tcp(), NULp, and result.
Referenced by MO_Liste::get_all_species(), Sonde::get_matching_species(), probe_design_event(), probe_match_event(), and PTserverConnection::PTserverConnection().
void arb_print_server_params | ( | void | ) |
Definition at line 377 of file servercntrl.cxx.
Referenced by show_help(), and usage().
arb_params* arb_trace_argv | ( | int * | argc, |
const char ** | argv | ||
) |
Definition at line 393 of file servercntrl.cxx.
References arb_params::alignment, ARB_strdup(), arb_params::db_server, arb_params::default_file, arb_params::extended_name, arb_params::field, arb_params::field_default, GBS_global_string_copy(), arb_params::job_server, arb_params::mgr_server, NULp, arb_params::pt_server, arb_params::read_only, s, arb_params::species_name, and arb_params::tcp.
Referenced by ARB_main(), and ALI_GLOBAL::init().
void free_arb_params | ( | arb_params * | params | ) |
Definition at line 452 of file servercntrl.cxx.
References arb_params::alignment, arb_params::db_server, arb_params::default_file, arb_params::extended_name, arb_params::field, arb_params::job_server, arb_params::mgr_server, arb_params::pt_server, arb_params::species_name, and arb_params::tcp.
Referenced by ARB_main().