@Override protected void registerInterceptors(OperationInterceptorRegistry registry) { CompositeComponentInterceptor.register(registry); }
public static void register(OperationInterceptorRegistry registry) { registerType(registry, ComputeService.class); registerType(registry, ContainerService.class); registerType(registry, ClosureService.class); registerType(registry, GenericKubernetesEntityService.class); registerType(registry, DeploymentService.class); registerType(registry, PodService.class); registerType(registry, ServiceEntityHandler.class); registerType(registry, ReplicationControllerService.class); registerType(registry, ReplicaSetService.class); }
public static DeferredResult<Void> handleFactoryPost(Service service, Operation op) { if (op.getAction() == Action.POST) { op.nestCompletion((o, e) -> { if (e != null) { op.fail(e); return; } o.complete(); if (!o.hasBody()) { return; } ResourceState state = extractState(o); String compositeComponentLink = retrieveLink(state); if (compositeComponentLink == null) { return; } CompositeComponentNotifier.notifyCompositionComponent(service, state, compositeComponentLink, op.getAction()); }); } return null; }
ResourceState state = extractState(o); String compositeComponentLink = retrieveLink(state); if (compositeComponentLink == null) { return; } else if (op.getAction() == Action.DELETE) { ResourceState state = service.getState(op); String compositeComponentLink = retrieveLink(state); CompositeComponentNotifier.notifyCompositionComponent(service, state, compositeComponentLink, op.getAction()); ResourceState put = extractState(op); String compositeComponentLink = retrieveLink(state); String putComponentLink = retrieveLink(put); ResourceState state = service.getState(op); String compositeComponentLink = retrieveLink(state); String patchComponentLink = retrieveLink(patch); o.complete();
@Override protected void registerInterceptors(OperationInterceptorRegistry registry) { CompositeComponentInterceptor.register(registry); }
@Override protected void registerInterceptors(OperationInterceptorRegistry registry) { CompositeComponentInterceptor.register(registry); }
@Override protected void registerInterceptors(OperationInterceptorRegistry registry) { CompositeComponentInterceptor.register(registry); }
/** * Registers service operation interceptors. */ protected void registerOperationInterceptors() { InUsePlacementZoneInterceptor.register(interceptors); SchedulerPlacementZoneInterceptor.register(interceptors); CompositeComponentInterceptor.register(interceptors); AuthCredentialsInterceptor.register(interceptors); UnauthorizedDeleteInterceptor.register(interceptors); ProjectInterceptor.register(interceptors); }