private boolean isModuleConfigValid(ModuleConfig module) {
        if (module == null) {
            LOGGER.error("module should not be null!");
            return false;
        }
        if (module.getMd5() == null) {
            LOGGER.error("module md5 should not be null!");
            return false;
        }
        if (module.getName() == null) {
            LOGGER.error("module name should not be null!");
            return false;
        }
        if (module.getVersion() == null) {
            LOGGER.error("module version should not be null!");
            return false;
        }
        if (module.getInstallCommand() == null) {
            LOGGER.error("module install cmd should not be null!");
            return false;
        }
        if (module.getStartCommand() == null) {
            LOGGER.error("module start cmd should not be null!");
            return false;
        }
        if (module.getStopCommand() == null) {
            LOGGER.error("module stop cmd should not be null!");
            return false;
        }
        if (module.getCheckCommand() == null) {
            LOGGER.error("module check cmd should not be null!");
            return false;
        }
        if (!isPackageConfigValid(module.getPackageConfig())) {
            return false;
        }
        return true;
    }
module manager, deal with module add, delete and modify
inlong-agent/agent-installer/src/main/java/org/apache/inlong/agent/installer/ModuleManager.java