void Reconfig() { // This method is called both at startup [from method Init()], and // when we are asked to reconfig. contactScheddDelay = param_integer("GRIDMANAGER_CONTACT_SCHEDD_DELAY", 5); ReconfigProxyManager(); GahpReconfig(); BaseJob::BaseJobReconfig(); JobType *job_type; jobTypes.Rewind(); while ( jobTypes.Next( job_type ) ) { job_type->ReconfigFunc(); } // Tell all the job objects to deal with their new config values BaseJob *next_job; BaseJob::JobsByProcId.startIterations(); while ( BaseJob::JobsByProcId.iterate( next_job ) != 0 ) { next_job->Reconfig(); } }
// Initialize the ProxyManager module. proxy_dir is the directory in // which the module should place the "master" proxy files. bool InitializeProxyManager( const char *proxy_dir ) { if ( proxymanager_initialized == true ) { return false; } CheckProxies_tid = daemonCore->Register_Timer( 1, CheckProxies_interval, CheckProxies, "CheckProxies" ); masterProxyDirectory = strdup( proxy_dir ); ReconfigProxyManager(); proxymanager_initialized = true; return true; }