public boolean addParticipantToCluster(ParticipantConfig participant) {
if (participant == null) {
LOG.error("Participant config cannot be null");
return false;
}
HelixLock lock = _lockProvider.getLock(_clusterId, Scope.participant(participant.getId()));
boolean locked = lock.lock();
if (locked) {
try {
return _clusterAccessor.addParticipantToCluster(participant);
} finally {
lock.unlock();
}
}
return false;
}