Beispiel #1
0
        public ConnectionState(IZookeeperFactory zookeeperFactory, IEnsembleProvider ensembleProvider, TimeSpan sessionTimeout, TimeSpan connectionTimeout, IWatcher parentWatcher, ITracerDriver tracer, bool canBeReadOnly)
        {
            this.ensembleProvider  = ensembleProvider;
            this.sessionTimeout    = sessionTimeout;
            this.connectionTimeout = connectionTimeout;
            this.tracer            = tracer;
            if (parentWatcher != null)
            {
                parentWatchers.Enqueue(parentWatcher);
            }

            zooKeeper = new HandleHolder(zookeeperFactory, this, ensembleProvider, sessionTimeout, canBeReadOnly);
        }
Beispiel #2
0
		public ConnectionState(IZookeeperFactory zookeeperFactory, IEnsembleProvider ensembleProvider, TimeSpan sessionTimeout, TimeSpan connectionTimeout, IWatcher parentWatcher, ITracerDriver tracer, bool canBeReadOnly)
		{
			this.ensembleProvider = ensembleProvider;
			this.sessionTimeout = sessionTimeout;
			this.connectionTimeout = connectionTimeout;
			this.tracer = tracer;
			if ( parentWatcher != null )
			{
				parentWatchers.Enqueue (parentWatcher);

			}

			zooKeeper = new HandleHolder(zookeeperFactory, this, ensembleProvider, sessionTimeout, canBeReadOnly);
		}
Beispiel #3
0
 /**
  * Change the tracing driver
  *
  * @param tracer new tracing driver
  */
 public void setTracerDriver(ITracerDriver tracer)
 {
     this.tracer.Set(tracer);
 }
Beispiel #4
0
 /**
  * Change the tracing driver
  *
  * @param tracer new tracing driver
  */
 public void               SetTracerDriver(ITracerDriver tracer)
 {
     Interlocked.Exchange(ref this.tracer, tracer);
 }
Beispiel #5
0
 /// <summary>
 /// Create and start a timer <see cref="CuratorClient.TimeTrace"/> class.
 /// </summary>
 /// <param name="name">name of the event.</param>
 /// <param name="driver">driver.</param>
 public TimeTrace(String name, ITracerDriver driver)
 {
     this.name   = name;
     this.driver = driver;
 }
Beispiel #6
0
 /**
  * Create and start a timer
  *
  * @param name name of the event
  * @param driver driver
  */
 public TimeTrace(String name, ITracerDriver driver)
 {
     this.name = name;
     this.driver = driver;
 }
 /**
  * Change the tracing driver
  *
  * @param tracer new tracing driver
  */
 public void setTracerDriver(ITracerDriver tracer)
 {
     this.tracer.Set(tracer);
 }
Beispiel #8
0
 public RetryLoop(IRetryPolicy retryPolicy, ITracerDriver tracer)
 {
     this.retryPolicy = retryPolicy;
     this.tracer      = tracer;
 }
		/**
     * Change the tracing driver
     *
     * @param tracer new tracing driver
     */
		public void               SetTracerDriver(ITracerDriver tracer)
		{
			Interlocked.Exchange (ref this.tracer, tracer);

		}