Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
899 B
8
Indexable
Never
package pt.tecnico.distledger.userclient.grpc;

import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.StatusRuntimeException;
import pt.tecnico.distledger.userclient.ServerConnection;
import pt.ulisboa.tecnico.distledger.contract.DistLedgerCommonDefinitions;
import pt.ulisboa.tecnico.distledger.contract.namingserver.NamingServer;
import pt.ulisboa.tecnico.distledger.contract.namingserver.NamingServerServiceGrpc;
import pt.ulisboa.tecnico.distledger.contract.user.UserDistLedger;
import pt.ulisboa.tecnico.distledger.contract.user.UserServiceGrpc;



import java.util.HashMap;
import java.util.Map;

import static pt.ulisboa.tecnico.distledger.contract.user.UserServiceGrpc.newBlockingStub;

public class UserService {

    private Map<String, ServerConnection> stubs = new HashMap<>();
    private final NamingServerServiceGrpc.NamingServerServiceBlockingStub stub;