@Override public void onError(FlowRuleOperations ops) { intentInstallCoordinator.intentInstallFailed(context); } };
/** * Update the selector builder using a L0 instruction. * * @param builder the builder to update * @param l0instruction the l0 instruction to use */ private void updateBuilder(TrafficSelector.Builder builder, L0ModificationInstruction l0instruction) { throw new IntentCompilationException(UNSUPPORTED_L0); }
@Override public void event(IntentEvent event) { // this is the fast path for CORRUPT intents, retry on event notification. //TODO we might consider using the timer to back off for subsequent retries if (enabled && event.type() == IntentEvent.Type.CORRUPT) { Key key = event.subject().key(); if (store.isMaster(key)) { IntentData data = store.getIntentData(event.subject().key()); resubmitCorrupt(data, true); } } } }
@Override protected void doExecute() { IntentService intentService = get(IntentService.class); for (Intent intent: intentService.getIntents()) { if (intentService.getIntentState(intent.key()) == WITHDRAWN) { intentService.purge(intent); } } } }
private void printIntentHdr(Intent intent, ServiceRefs svcRefs) { print("* intent key: %s", intent.key()); print(" - state: %s", svcRefs.intentsService().getIntentState(intent.key())); dump(" - leader: %s %s", svcRefs.getWorkPartitionService().getLeader(intent.key(), Key::hash), svcRefs.workPartitionService.isMine(intent.key(), Key::hash) ? "(Mine)" : ""); }
@Override public Builder selector(TrafficSelector selector) { return (Builder) super.selector(selector); }
@Override public Builder treatment(TrafficTreatment treatment) { return (Builder) super.treatment(treatment); }
@Override public Builder constraints(List<Constraint> constraints) { return (Builder) super.constraints(constraints); }
@Override public void onSuccess(DomainIntentOperations idops) { intentInstallCoordinator.intentInstallSuccess(context); }
@Override public void onUpdate(IntentData data) { trackerService.trackIntent(data); }
@Override public Builder resourceGroup(ResourceGroup resourceGroup) { return (Builder) super.resourceGroup(resourceGroup); }
@Override public Builder appId(ApplicationId appId) { return (Builder) super.appId(appId); }
@Override public Builder priority(int priority) { return (Builder) super.priority(priority); }
@Override public void onError(DomainIntentOperations idos) { intentInstallCoordinator.intentInstallFailed(context); } };
/** * Update the selector builder using a L1 instruction. * * @param builder the builder to update * @param l1instruction the l1 instruction to use */ private void updateBuilder(TrafficSelector.Builder builder, L1ModificationInstruction l1instruction) { throw new IntentCompilationException(UNSUPPORTED_L1); }
@Override public void onSuccess(FlowRuleOperations ops) { intentInstallCoordinator.intentInstallSuccess(context); }
@Override public void onUpdate(IntentData intentData) { trackerService.trackIntent(intentData); }
@Override public void onError(FlowRuleOperations ops) { intentInstallCoordinator.intentInstallFailed(context); } };