@Override
public boolean canLaunch(RecoveryRequirement recoveryRequirement) {
Set<String> names = recoveryRequirement.getOfferRequirement().getTaskRequirements().stream()
.map(it -> it.getTaskInfo().getName())
.collect(Collectors.toSet());
<BUG>if (names.contains(OfferUtils.idToName(2))) {
</BUG>
return false;
}
return true;

@Override
public void launchHappened(Protos.Offer.Operation launchOperation, RecoveryRequirement.RecoveryType recoveryType) {
}
@Override
public boolean canLaunch(RecoveryRequirement recoveryRequirement) {
Set<String> names = recoveryRequirement.getOfferRequirement().getTaskRequirements().stream()
.map(it -> it.getTaskInfo().getName())
.collect(Collectors.toSet());
if (names.contains(OfferUtils.brokerIdToTaskName(2))) {
return false;
}
return true;
