Skip to content

Commit

Permalink
Comment unimplemented func stubs
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Nov 8, 2024
1 parent 81503ce commit ee85066
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 50 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/

package org.opensearch.grpc.services;

import io.grpc.BindableService;
import java.util.ArrayList;

import org.opensearch.server.proto.action.admin.cluster.node.stats.NodesStatsProto;

public class gRPCServiceRegistry {
private final ArrayList<BindableService> services = new ArrayList<>();

gRPCServiceRegistry() { }

public void addService(BindableService bindableService) {
services.add(bindableService);
}

public ArrayList<BindableService> getServices() {
return services;
}
}
///*
// * SPDX-License-Identifier: Apache-2.0
// *
// * The OpenSearch Contributors require contributions made to
// * this file be licensed under the Apache-2.0 license or a
// * compatible open source license.
// */
//
//package org.opensearch.grpc.services;
//
//import io.grpc.BindableService;
//import java.util.ArrayList;
//
//public class gRPCServiceRegistry {
// private final ArrayList<BindableService> services = new ArrayList<>();
//
// gRPCServiceRegistry() { }
//
// public void addService(BindableService bindableService) {
// services.add(bindableService);
// }
//
// public ArrayList<BindableService> getServices() {
// return services;
// }
//}
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/

package org.opensearch.grpc.services.nodesInfo;

public class NodesInfoServiceImpl extends NodesInfoServiceGrpc.NodesInfoServiceImplBase {

@Override
public void getNodesInfo(NodesInfoRequest request, StreamObserver<NodesInfoResponse> responseObserver) {

}

@Override
public void streamNodesInfo(NodesInfoRequest request, StreamObserver<NodesInfoResponse> responseObserver) {

}
}
///*
// * SPDX-License-Identifier: Apache-2.0
// *
// * The OpenSearch Contributors require contributions made to
// * this file be licensed under the Apache-2.0 license or a
// * compatible open source license.
// */
//
//package org.opensearch.grpc.services.nodesInfo;
//
//public class NodesInfoServiceImpl extends NodesInfoServiceGrpc.NodesInfoServiceImplBase {
//
// @Override
// public void getNodesInfo(NodesInfoRequest request, StreamObserver<NodesInfoResponse> responseObserver) {
//
// }
//
// @Override
// public void streamNodesInfo(NodesInfoRequest request, StreamObserver<NodesInfoResponse> responseObserver) {
//
// }
//}

0 comments on commit ee85066

Please sign in to comment.