Back to index

nordugrid-arc-nox  1.1.0~rc6
conf_pre.h
Go to the documentation of this file.
00001 #ifndef __GM_CONFIG_PRE_H__
00002 #define __GM_CONFIG_PRE_H__
00003 
00004 #include <string>
00005 #include <list>
00006 
00007 #include <arc/XMLNode.h>
00008 
00009 class JobUsers;
00010 class ContinuationPlugins;
00011 class RunPlugin;
00012 
00013 /*
00014   Reads configuration file to find directories associated with
00015   given user.
00016   Accepts:
00017     my_username - username for which directories will be searched.
00018   Returns
00019     true - success
00020     false - failure
00021     On success 'control_dir', 'session_root', 'default_lrms' and
00022     'default_queue' are filled. For meaning of these directories
00023     look description of grid-manager and configuration template.
00024 */
00025 bool configure_user_dirs(const std::string &my_username,
00026                 std::string &control_dir,std::vector<std::string> &session_roots,
00027                 std::vector<std::string> &session_roots_non_draining,
00028                 std::string &default_lrms,std::string &default_queue,
00029                 std::list<std::string>& queues,
00030                 ContinuationPlugins &plugins,RunPlugin& cred,
00031                 std::string& allow_submit,bool& strict_session);
00032 
00033 /*
00034   Reads configuration file to find all defined control directories.
00035   Returns
00036     true - success
00037     false - failure
00038     On success 'control_dirs' contains list of all control directories.
00039 */
00040 bool configure_users_dirs(JobUsers& users);
00041 bool configure_users_dirs(Arc::XMLNode cfg,JobUsers& users);
00042 
00043 #endif // __GM_CONFIG_PRE_H__