class DisableJobService {

    public void add(final String jobName) {
        if (regCenter.getNumChildren(DisableJobNode.ROOT) > env.getFrameworkConfiguration().getJobStateQueueSize()) {
            log.warn("Cannot add disable job, caused by read state queue size is larger than {}.", env.getFrameworkConfiguration().getJobStateQueueSize());
            return;
        }
        String disableJobNodePath = DisableJobNode.getDisableJobNodePath(jobName);
        if (!regCenter.isExisted(disableJobNodePath)) {
            regCenter.persist(disableJobNodePath, jobName);
        }
    }

    public  DisableJobService(final CoordinatorRegistryCenter regCenter);

}