コード例 #1
0
 public _Callable_587(IPCLoggerChannel _enclosing, QJournalProtocolProtos.SegmentStateProto
                      log, Uri url)
 {
     this._enclosing = _enclosing;
     this.log        = log;
     this.url        = url;
 }
コード例 #2
0
 public virtual void SetupMock()
 {
     conf.SetInt(DFSConfigKeys.DfsQjournalQueueSizeLimitKey, LimitQueueSizeMb);
     // Channel to the mock object instead of a real IPC proxy.
     ch = new _IPCLoggerChannel_70(this, conf, FakeNsinfo, Jid, FakeAddr);
     ch.SetEpoch(1);
 }
コード例 #3
0
        private IPCLoggerChannelMetrics(IPCLoggerChannel ch)
        {
            this.ch = ch;
            Configuration conf = new HdfsConfiguration();

            int[] intervals = conf.GetInts(DFSConfigKeys.DfsMetricsPercentilesIntervalsKey);
            if (intervals != null)
            {
                writeEndToEndLatencyQuantiles = new MutableQuantiles[intervals.Length];
                writeRpcLatencyQuantiles      = new MutableQuantiles[intervals.Length];
                for (int i = 0; i < writeEndToEndLatencyQuantiles.Length; i++)
                {
                    int interval = intervals[i];
                    writeEndToEndLatencyQuantiles[i] = registry.NewQuantiles("writesE2E" + interval +
                                                                             "s", "End-to-end time for write operations", "ops", "LatencyMicros", interval);
                    writeRpcLatencyQuantiles[i] = registry.NewQuantiles("writesRpc" + interval + "s",
                                                                        "RPC RTT for write operations", "ops", "LatencyMicros", interval);
                }
            }
            else
            {
                writeEndToEndLatencyQuantiles = null;
                writeRpcLatencyQuantiles      = null;
            }
        }
コード例 #4
0
 public _Callable_553(IPCLoggerChannel _enclosing, long fromTxnId, bool inProgressOk
                      )
 {
     this._enclosing   = _enclosing;
     this.fromTxnId    = fromTxnId;
     this.inProgressOk = inProgressOk;
 }
コード例 #5
0
 public _Callable_643(IPCLoggerChannel _enclosing, StorageInfo storage, StorageInfo
                      prevStorage, int targetLayoutVersion)
 {
     this._enclosing          = _enclosing;
     this.storage             = storage;
     this.prevStorage         = prevStorage;
     this.targetLayoutVersion = targetLayoutVersion;
 }
コード例 #6
0
 /// <exception cref="System.Exception"/>
 private static void WaitForAllPendingCalls(AsyncLoggerSet als)
 {
     foreach (AsyncLogger l in als.GetLoggersForTests())
     {
         IPCLoggerChannel ch = (IPCLoggerChannel)l;
         ch.WaitForAllPendingCalls();
     }
 }
コード例 #7
0
 public _Callable_378(IPCLoggerChannel _enclosing, long segmentTxId, long firstTxnId
                      , int numTxns, byte[] data, long submitNanos)
 {
     this._enclosing  = _enclosing;
     this.segmentTxId = segmentTxId;
     this.firstTxnId  = firstTxnId;
     this.numTxns     = numTxns;
     this.data        = data;
     this.submitNanos = submitNanos;
 }
コード例 #8
0
        private static string GetName(IPCLoggerChannel ch)
        {
            IPEndPoint addr    = ch.GetRemoteAddress();
            string     addrStr = addr.Address.GetHostAddress();

            // IPv6 addresses have colons, which aren't allowed as part of
            // MBean names. Replace with '.'
            addrStr = addrStr.Replace(':', '.');
            return("IPCLoggerChannel-" + addrStr + "-" + addr.Port);
        }
コード例 #9
0
        internal static Org.Apache.Hadoop.Hdfs.Qjournal.Client.IPCLoggerChannelMetrics Create
            (IPCLoggerChannel ch)
        {
            string name = GetName(ch);

            lock (Registry)
            {
                Org.Apache.Hadoop.Hdfs.Qjournal.Client.IPCLoggerChannelMetrics m = Registry[name];
                if (m != null)
                {
                    m.SetChannel(ch);
                }
                else
                {
                    m = new Org.Apache.Hadoop.Hdfs.Qjournal.Client.IPCLoggerChannelMetrics(ch);
                    DefaultMetricsSystem.Instance().Register(name, null, m);
                    Registry[name] = m;
                }
                return(m);
            }
        }
コード例 #10
0
 private void SetChannel(IPCLoggerChannel ch)
 {
     System.Diagnostics.Debug.Assert(ch.GetRemoteAddress().Equals(this.ch.GetRemoteAddress
                                                                      ()));
     this.ch = ch;
 }
コード例 #11
0
 public _Callable_665(IPCLoggerChannel _enclosing)
 {
     this._enclosing = _enclosing;
 }
コード例 #12
0
 public _Callable_620(IPCLoggerChannel _enclosing, StorageInfo sInfo)
 {
     this._enclosing = _enclosing;
     this.sInfo      = sInfo;
 }
コード例 #13
0
 public _PrivilegedExceptionAction_227(IPCLoggerChannel _enclosing, Configuration
                                       confCopy)
 {
     this._enclosing = _enclosing;
     this.confCopy   = confCopy;
 }
コード例 #14
0
 public _Callable_569(IPCLoggerChannel _enclosing, long segmentTxId)
 {
     this._enclosing  = _enclosing;
     this.segmentTxId = segmentTxId;
 }
コード例 #15
0
 public _Callable_541(IPCLoggerChannel _enclosing, long minTxIdToKeep)
 {
     this._enclosing    = _enclosing;
     this.minTxIdToKeep = minTxIdToKeep;
 }
コード例 #16
0
 public _Callable_507(IPCLoggerChannel _enclosing, long txid, int layoutVersion)
 {
     this._enclosing    = _enclosing;
     this.txid          = txid;
     this.layoutVersion = layoutVersion;
 }
コード例 #17
0
 public _Callable_495(IPCLoggerChannel _enclosing, NamespaceInfo nsInfo)
 {
     this._enclosing = _enclosing;
     this.nsInfo     = nsInfo;
 }
コード例 #18
0
 public _FutureCallback_428(IPCLoggerChannel _enclosing, byte[] data)
 {
     this._enclosing = _enclosing;
     this.data       = data;
 }
コード例 #19
0
 public _Callable_598(IPCLoggerChannel _enclosing, long startTxId)
 {
     this._enclosing = _enclosing;
     this.startTxId  = startTxId;
 }
コード例 #20
0
 public _Callable_354(IPCLoggerChannel _enclosing, long epoch)
 {
     this._enclosing = _enclosing;
     this.epoch      = epoch;
 }