Skip to content

Commit

Permalink
BIGTOP-4331: Split command grpc service into multi services (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinw66 authored Jan 21, 2025
1 parent 552ce4b commit df09bd0
Show file tree
Hide file tree
Showing 70 changed files with 668 additions and 986 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
*/
package org.apache.bigtop.manager.agent.cache;

import java.util.ArrayList;
import java.util.List;

public class Caches {
public static final List<Long> RUNNING_TASKS = new ArrayList<>();

public static Long RUNNING_TASK = null;
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.bigtop.manager.agent.grpc.config;

import org.apache.bigtop.manager.agent.grpc.interceptor.TaskInterceptor;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import net.devh.boot.grpc.server.serverfactory.GrpcServerConfigurer;

@Configuration
public class GrpcServerConfig {

@Bean
public GrpcServerConfigurer configurer() {
return serverBuilder -> serverBuilder.intercept(new TaskInterceptor());
}
}
Loading

0 comments on commit df09bd0

Please sign in to comment.