Skip to content

Commit

Permalink
fix: Add common client inheritence to RhelHosts (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien authored Sep 30, 2024
1 parent 21e8fec commit b54c5cd
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,16 @@
import org.project_kessel.api.inventory.v1beta1.resources.CreateRhelHostRequest;
import org.project_kessel.api.inventory.v1beta1.resources.CreateRhelHostResponse;
import org.project_kessel.api.inventory.v1beta1.resources.KesselRhelHostServiceGrpc;

import org.project_kessel.clients.KesselClient;


import java.util.logging.Logger;

public class RhelHostClient {
public class RhelHostClient extends KesselClient<KesselRhelHostServiceGrpc.KesselRhelHostServiceStub, KesselRhelHostServiceGrpc.KesselRhelHostServiceBlockingStub> {
private static final Logger logger = Logger.getLogger(RhelHostClient.class.getName());

private final KesselRhelHostServiceGrpc.KesselRhelHostServiceStub asyncStub;
private final KesselRhelHostServiceGrpc.KesselRhelHostServiceBlockingStub blockingStub;

RhelHostClient(Channel channel){
asyncStub = KesselRhelHostServiceGrpc.newStub(channel);
blockingStub = KesselRhelHostServiceGrpc.newBlockingStub(channel);
super(KesselRhelHostServiceGrpc.newStub(channel), KesselRhelHostServiceGrpc.newBlockingStub(channel));
}

public void CreateRhelHost(CreateRhelHostRequest request, StreamObserver<CreateRhelHostResponse> responseStreamObserver) {
Expand Down

0 comments on commit b54c5cd

Please sign in to comment.