IBM SYSTEMG G RUNTIME & NATIVE STORE  0.5
IBM Native Graph Computing and Storage System based on IBM Parallel Programming Library
 All Classes Functions Variables Typedefs Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gShell_t Class Reference

gShell class - provide CLI for querying graph store and invoking graph analytics More...

#include <gShellClass.hpp>

Public Member Functions

void set_loop_ctrl (bool newval)
 determine if the gShell should continously receiving command (TRUE) or just quit (FALSE)
 
void run (string &cmd, stringstream &ss)
 Execute a command stored in cmd along with arguments; argument ss is the output message.
 
bool get_query_argument (string query_cmd, string options, string &ret)
 Given a query command and an argument name, return the argument value by parsing the command.
 
int execute (store_engine_type *s, string &cmd)
 Execute a query, called by run()
 
int get_help_info (string query_cmd, internal_outputFormat &i_out)
 Output help info of a command.
 
void get_general_help_info (internal_outputFormat &i_out)
 Output general help info, not specific to any command.
 
void get_version_info (internal_outputFormat &i_out)
 Output versioning information.
 
void run_output (const string &s, socket_server_type &sock, int mode)
 
void run_input (string &data, string &cmd, socket_server_type &sock, int mode, simpleShell &shell)
 
int main_start (int argc, char *argv[])
 Start gShell engine according to CLI argument.
 
int setup (int argc, char *argv[], string &cmd)
 
void set_loop_ctrl (bool newval)
 
void run (string &cmd)
 Execute a command stored in cmd along with arguments.
 
bool get_query_argument (string query_cmd, string options, string &ret)
 Given a query command and an argument name, return the argument value by parsing the command.
 
int execute (store_engine_type *s, string &cmd)
 Execute a query, called by run()
 
int get_help_info (string query_cmd, internal_outputFormat &i_out)
 Output help info of a command.
 
void get_general_help_info (internal_outputFormat &i_out)
 Output general help info, not specific to any command.
 
void get_version_info (internal_outputFormat &i_out)
 Output versioning information.
 
void run_output (const string &s, socket_server_type &sock, int mode)
 
void run_input (string &data, string &cmd, socket_server_type &sock, int mode, simpleShell &shell)
 
int main_start (int argc, char *argv[])
 Start gShell engine according to CLI argument.
 
int setup (int argc, char *argv[], string &cmd)
 

Protected Member Functions

void init_command_parser ()
 
void init_shell (simpleShell &shell)
 
int command_parsing (const string &line, string &query_cmd, internal_outputFormat &i_out)
 
void argument_processs (const string &data, string &query_cmd)
 
int store_process (string &query_cmd, string &store_name, internal_outputFormat &i_out, store_manager_type &stores)
 
void init_command_parser ()
 
void init_shell (simpleShell &shell)
 
int command_parsing (const string &line, string &query_cmd, internal_outputFormat &i_out)
 
void argument_processs (const string &data, string &query_cmd)
 
int store_process (string &query_cmd, string &store_name, internal_outputFormat &i_out, store_manager_type &stores)
 

Protected Attributes

int mode
 
struct sigaction sigIntHandler
 
string store_manager_file
 
int serverport
 
string supermgrhost
 
int supermgrport
 
string owner_username
 
string shell_prefix
 
command_options_map commandOptMap
 
string storepath
 

Detailed Description

gShell class - provide CLI for querying graph store and invoking graph analytics


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