Skip to content

OWLS-90180 Optimize detection of when to run introspection #2430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 8, 2021
Prev Previous commit
Next Next commit
Minor cleanup.
  • Loading branch information
ankedia committed Jun 28, 2021
commit 462b5d6dbebea7788b7eae5b41e70deee01c9f71
Original file line number Diff line number Diff line change
Expand Up @@ -408,19 +408,15 @@ public NextAction apply(Packet packet) {

private Step replaceOrCreateJob(Packet packet, Step next) {
DomainPresenceInfo info = packet.getSpi(DomainPresenceInfo.class);
java.lang.String domainUid = info.getDomain().getDomainUid();
java.lang.String namespace = info.getNamespace();
String jobName = JobHelper.createJobName(domainUid);
return new CallBuilder().readJobAsync(jobName, namespace, domainUid,
new ReplaceOrCreateStep(jobName, next));
return new CallBuilder().readJobAsync(JobHelper.createJobName(info.getDomain().getDomainUid()),
info.getNamespace(), info.getDomain().getDomainUid(),
new ReplaceOrCreateStep(next));
}

private class ReplaceOrCreateStep extends DefaultResponseStep {
private final String jobName;

ReplaceOrCreateStep(String jobName, Step next) {
ReplaceOrCreateStep(Step next) {
super(next);
this.jobName = jobName;
}

@Override
Expand Down