Exemple #1
0
 LeaseImpl(ClientConnectionManager connectionManager)
 {
     this.connectionManager = connectionManager;
     managedChannel         = connectionManager.NewChannel();
     leaseClient            = new LeaseClient(managedChannel.channel);
     // this.stub = connectionManager.NewStub<LeaseFutureStub>(null);
     // this.leaseStub = connectionManager.NewStub<LeaseStub>(null);
     // this.keepAlives = new ConcurrentDictionary<string, impl.KeepAlive>();
     //this.scheduledExecutorService = MoreExecutors.listeningDecorator(Executors.newScheduledThreadPool(2));
 }
Exemple #2
0
 public ClientImpl(ClientBuilder clientBuilder)
 {
     // Copy the builder so external modifications won't affect this client impl.
     this.builder           = clientBuilder.Copy();
     this.kvClient          = null;
     this.authClient        = null;
     this.maintenanceClient = null;
     this.clusterClient     = null;
     this.leaseClient       = null;
     this.watchClient       = null;
     this.lockClient        = null;
     this.connectionManager = new ClientConnectionManager(this.builder);
 }
Exemple #3
0
 AuthImpl(ClientConnectionManager connectionManager)
 {
     this.connectionManager = connectionManager;
     managedChannel         = connectionManager.NewChannel();
     authClient             = new AuthClient(managedChannel.Channel);
 }
Exemple #4
0
 public KVImpl(ClientConnectionManager connectionManager)
 {
     this.connectionManager = connectionManager;
     managedChannel         = connectionManager.NewChannel();
     kVClient = new KVClient(managedChannel.Channel);
 }
Exemple #5
0
 LockImpl(ClientConnectionManager connectionManager)
 {
     this.connectionManager = connectionManager;
     managedChannel         = connectionManager.NewChannel();
     lockClient             = new LockClient(managedChannel.Channel);
 }
Exemple #6
0
 WatchImpl(ClientConnectionManager connectionManager)
 {
     this.connectionManager = connectionManager;
     managedChannel         = connectionManager.NewChannel();
     watchClient            = new WatchClient(managedChannel.channel);
 }
Exemple #7
0
 MaintenanceImpl(ClientConnectionManager connectionManager)
 {
     this.connectionManager = connectionManager;
     managedChannel         = connectionManager.NewChannel();
     maintenanceClient      = new MaintenanceClient(managedChannel.Channel);
 }
 ClusterImpl(ClientConnectionManager connectionManager)
 {
     this.connectionManager = connectionManager;
     managedChannel         = connectionManager.NewChannel();
     clusterClient          = new ClusterClient(managedChannel.channel);
 }