@@ -47,7 +47,6 @@ public class CoreServiceImpl extends CoreServiceImplBase {
4747
4848 private final FeastProperties feastProperties ;
4949 private SpecService specService ;
50- // private JobService jobService;
5150 private StatsService statsService ;
5251 private ProjectService projectService ;
5352 private final AuthorizationService authorizationService ;
@@ -57,12 +56,10 @@ public CoreServiceImpl(
5756 SpecService specService ,
5857 ProjectService projectService ,
5958 StatsService statsService ,
60- // JobService jobService,
6159 FeastProperties feastProperties ,
6260 AuthorizationService authorizationService ) {
6361 this .specService = specService ;
6462 this .projectService = projectService ;
65- // this.jobService = jobService;
6663 this .feastProperties = feastProperties ;
6764 this .statsService = statsService ;
6865 this .authorizationService = authorizationService ;
@@ -307,72 +304,4 @@ public void listProjects(
307304 Status .INTERNAL .withDescription (e .getMessage ()).withCause (e ).asRuntimeException ());
308305 }
309306 }
310-
311- // @Override
312- // public void listIngestionJobs(
313- // ListIngestionJobsRequest request,
314- // StreamObserver<ListIngestionJobsResponse> responseObserver) {
315- // try {
316- // ListIngestionJobsResponse response = this.jobService.listJobs(request);
317- // responseObserver.onNext(response);
318- // responseObserver.onCompleted();
319- // } catch (InvalidArgumentException e) {
320- // log.error("Recieved an invalid request on calling listIngestionJobs method:", e);
321- // responseObserver.onError(
322- // Status.INVALID_ARGUMENT.withDescription(e.getMessage()).withCause(e).asException());
323- // } catch (Exception e) {
324- // log.error("Unexpected exception on calling listIngestionJobs method:", e);
325- // responseObserver.onError(
326- // Status.INTERNAL.withDescription(e.getMessage()).withCause(e).asRuntimeException());
327- // }
328- // }
329- //
330- // @Override
331- // public void restartIngestionJob(
332- // RestartIngestionJobRequest request,
333- // StreamObserver<RestartIngestionJobResponse> responseObserver) {
334- // try {
335- // RestartIngestionJobResponse response = this.jobService.restartJob(request);
336- // responseObserver.onNext(response);
337- // responseObserver.onCompleted();
338- // } catch (NoSuchElementException e) {
339- // log.error(
340- // "Attempted to restart an nonexistent job on calling restartIngestionJob method:", e);
341- // responseObserver.onError(
342- // Status.NOT_FOUND.withDescription(e.getMessage()).withCause(e).asException());
343- // } catch (UnsupportedOperationException e) {
344- // log.error("Recieved an unsupported request on calling restartIngestionJob method:", e);
345- // responseObserver.onError(
346- //
347- // Status.FAILED_PRECONDITION.withDescription(e.getMessage()).withCause(e).asException());
348- // } catch (Exception e) {
349- // log.error("Unexpected exception on calling restartIngestionJob method:", e);
350- // responseObserver.onError(
351- // Status.INTERNAL.withDescription(e.getMessage()).withCause(e).asRuntimeException());
352- // }
353- // }
354-
355- // @Override
356- // public void stopIngestionJob(
357- // StopIngestionJobRequest request, StreamObserver<StopIngestionJobResponse>
358- // responseObserver) {
359- // try {
360- // StopIngestionJobResponse response = this.jobService.stopJob(request);
361- // responseObserver.onNext(response);
362- // responseObserver.onCompleted();
363- // } catch (NoSuchElementException e) {
364- // log.error("Attempted to stop an nonexistent job on calling stopIngestionJob method:", e);
365- // responseObserver.onError(
366- // Status.NOT_FOUND.withDescription(e.getMessage()).withCause(e).asException());
367- // } catch (UnsupportedOperationException e) {
368- // log.error("Recieved an unsupported request on calling stopIngestionJob method:", e);
369- // responseObserver.onError(
370- //
371- // Status.FAILED_PRECONDITION.withDescription(e.getMessage()).withCause(e).asException());
372- // } catch (Exception e) {
373- // log.error("Unexpected exception on calling stopIngestionJob method:", e);
374- // responseObserver.onError(
375- // Status.INTERNAL.withDescription(e.getMessage()).withCause(e).asRuntimeException());
376- // }
377- // }
378307}
0 commit comments