private function _initKeeperRestartPolicy($config)
{
$max = self::_fetchIntValue($config, 'maxRestartTimes', self::DEFAULT_MAX_RESTART_TIMES);
if ($max == 0) {
throw new \InvalidArgumentException('maxRestartTimes must be integer and cannot be zero');
}
$withIn = self::_fetchIntValue($config, 'withInSeconds', self::DEFAULT_WITH_IN_SECONDS);
if ($withIn == 0) {
throw new \InvalidArgumentException('withInSeconds must be integer and cannot be zero');
}
$this->_keeperRestartPolicy = KeeperRestartPolicy::create($max, $withIn);
}