public _Callable_587(IPCLoggerChannel _enclosing, QJournalProtocolProtos.SegmentStateProto log, Uri url) { this._enclosing = _enclosing; this.log = log; this.url = url; }
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); }
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; } }
public _Callable_553(IPCLoggerChannel _enclosing, long fromTxnId, bool inProgressOk ) { this._enclosing = _enclosing; this.fromTxnId = fromTxnId; this.inProgressOk = inProgressOk; }
public _Callable_643(IPCLoggerChannel _enclosing, StorageInfo storage, StorageInfo prevStorage, int targetLayoutVersion) { this._enclosing = _enclosing; this.storage = storage; this.prevStorage = prevStorage; this.targetLayoutVersion = targetLayoutVersion; }
/// <exception cref="System.Exception"/> private static void WaitForAllPendingCalls(AsyncLoggerSet als) { foreach (AsyncLogger l in als.GetLoggersForTests()) { IPCLoggerChannel ch = (IPCLoggerChannel)l; ch.WaitForAllPendingCalls(); } }
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; }
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); }
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); } }
private void SetChannel(IPCLoggerChannel ch) { System.Diagnostics.Debug.Assert(ch.GetRemoteAddress().Equals(this.ch.GetRemoteAddress ())); this.ch = ch; }
public _Callable_665(IPCLoggerChannel _enclosing) { this._enclosing = _enclosing; }
public _Callable_620(IPCLoggerChannel _enclosing, StorageInfo sInfo) { this._enclosing = _enclosing; this.sInfo = sInfo; }
public _PrivilegedExceptionAction_227(IPCLoggerChannel _enclosing, Configuration confCopy) { this._enclosing = _enclosing; this.confCopy = confCopy; }
public _Callable_569(IPCLoggerChannel _enclosing, long segmentTxId) { this._enclosing = _enclosing; this.segmentTxId = segmentTxId; }
public _Callable_541(IPCLoggerChannel _enclosing, long minTxIdToKeep) { this._enclosing = _enclosing; this.minTxIdToKeep = minTxIdToKeep; }
public _Callable_507(IPCLoggerChannel _enclosing, long txid, int layoutVersion) { this._enclosing = _enclosing; this.txid = txid; this.layoutVersion = layoutVersion; }
public _Callable_495(IPCLoggerChannel _enclosing, NamespaceInfo nsInfo) { this._enclosing = _enclosing; this.nsInfo = nsInfo; }
public _FutureCallback_428(IPCLoggerChannel _enclosing, byte[] data) { this._enclosing = _enclosing; this.data = data; }
public _Callable_598(IPCLoggerChannel _enclosing, long startTxId) { this._enclosing = _enclosing; this.startTxId = startTxId; }
public _Callable_354(IPCLoggerChannel _enclosing, long epoch) { this._enclosing = _enclosing; this.epoch = epoch; }