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
gShellSuperMgr_t Class Reference

graph sharing management We use a graph to manage graph sharing if (v->u) E, user v shares data to user u (v, u).share_graph gives a string of all graph names v sharing to u More...

#include <gShellSuperMgr.hpp>

Public Member Functions

 gShellSuperMgr_t (int p)
 
int get_supermgr_port ()
 return the supermanager's port
 
void add_shared_graph (const string &u1, const string &u2, const string &graph_name)
 user u1 shares a graph called graph_name to user u2
 
void erase_shared_graph (const string &u1, const string &u2, const string &graph_name)
 user u1 stop sharing a graph called graph_name to u2
 
bool is_permitted (const string &u1, const string &u2, const string &graph_name)
 check if u1 has shared graph_name to u2
 
userinfo_t get_userinfo (const string &u)
 get userinfo data structure from vertex property
 
void save_userinfo (const string &u, const userinfo_t &info)
 
void start_supermgr_socket ()
 start the socket for supermgr
 
void stop_supermgr_socket ()
 
int load_registered_users ()
 load registered users from file
 
int save_registered_users ()
 save registered users to file
 
bool is_registered (const string &username)
 check if a user has been registered
 
int add_user (const string &username, const string &passwd)
 add a new user
 
void remove_user (string username)
 delete a user
 
bool is_active (const string &username)
 check if a user's service has started
 
bool user_login (string username, string password)
 check a new user's password
 
void user_logout (string username)
 
int start_service (string username)
 allocate port number and start gShell service
 
int stop_service (string username)
 deallocate port number and stop gShell service
 
int stop_all_services ()
 for admin to stop all services
 
void logout_expired_sessions ()
 
void logout_all_sessions ()
 triggered by "bye" to kill all gShell services
 
void disp_users (ostream &os=cout)
 list all users registered
 
void run ()
 

Protected Member Functions

size_t allocate_port ()
 
string allocate_host ()
 

Protected Attributes

set< string > active_users
 
string file_users
 
size_t supermgr_port
 
size_t last_port
 
socket_server_typesock
 
graph_tusers
 

Detailed Description

graph sharing management We use a graph to manage graph sharing if (v->u) E, user v shares data to user u (v, u).share_graph gives a string of all graph names v sharing to u

manage users of gShell and dynamically allocate services In this mode, all gShell services should be delegated by a superuser


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