Search in sources :

Example 1 with GrpcServiceUpdateTask

use of com.tencent.polaris.plugins.connector.grpc.GrpcServiceUpdateTask in project polaris-java by polarismesh.

the class CompositeServiceUpdateTask method execute.

@Override
protected void execute() {
    CompositeConnector connector = (CompositeConnector) serverConnector;
    for (DestroyableServerConnector sc : connector.getServerConnectors()) {
        if (DefaultPlugins.SERVER_CONNECTOR_GRPC.equals(sc.getName())) {
            GrpcServiceUpdateTask grpcServiceUpdateTask = new GrpcServiceUpdateTask(serviceEventHandler, sc);
            grpcServiceUpdateTask.execute(this);
        }
    }
}
Also used : DestroyableServerConnector(com.tencent.polaris.plugins.connector.common.DestroyableServerConnector) GrpcServiceUpdateTask(com.tencent.polaris.plugins.connector.grpc.GrpcServiceUpdateTask)

Aggregations

DestroyableServerConnector (com.tencent.polaris.plugins.connector.common.DestroyableServerConnector)1 GrpcServiceUpdateTask (com.tencent.polaris.plugins.connector.grpc.GrpcServiceUpdateTask)1