StarterHookMgr::~StarterHookMgr() { dprintf( D_FULLDEBUG, "Deleting the StarterHookMgr\n" ); // Delete our copies of the paths for each hook. clearHookPaths(); if (m_hook_keyword) { free(m_hook_keyword); } }
JobRouterHookMgr::~JobRouterHookMgr() { dprintf(D_FULLDEBUG, "Deleting the JobRouterHookMgr\n"); // Delete our copies of the paths for each hook. clearHookPaths(); JobRouterHookMgr::removeAllKnownHooks(); if (NULL != m_default_hook_keyword) { free(m_default_hook_keyword); } }
bool JobRouterHookMgr::reconfig() { // Clear out old copies of each hook's path. clearHookPaths(); // Get the default hook keyword if it's defined if (NULL != m_default_hook_keyword) { free(m_default_hook_keyword); } m_default_hook_keyword = param("JOB_ROUTER_HOOK_KEYWORD"); return true; }
bool StarterHookMgr::reconfig() { // Clear out our old copies of each hook's path. clearHookPaths(); if (!getHookPath(HOOK_PREPARE_JOB, m_hook_prepare_job)) return false; if (!getHookPath(HOOK_UPDATE_JOB_INFO, m_hook_update_job_info)) return false; if (!getHookPath(HOOK_JOB_EXIT, m_hook_job_exit)) return false; m_hook_job_exit_timeout = getHookTimeout(HOOK_JOB_EXIT, 30); return true; }