// Token: 0x0600004E RID: 78 RVA: 0x00002C80 File Offset: 0x00000E80 protected void AddDelayedFailoverEntryAsync(AmServerName nodeName, AmDbActionReason reasonCode) { ThreadPool.QueueUserWorkItem(delegate(object unused) { AmSystemManager.Instance.TransientFailoverSuppressor.AddEntry(reasonCode, nodeName); }); }
public AmDbActionCode(AmDbActionInitiator initiator, AmDbActionReason reason, AmDbActionCategory category) { this.m_initiator = initiator; this.m_reason = reason; this.m_category = category; this.m_intValue = AmDbActionCode.ToInt(initiator, reason, category); this.UpdateStringRepresentation(); }
// Token: 0x06000635 RID: 1589 RVA: 0x0001EB68 File Offset: 0x0001CD68 internal void AddEntry(AmDbActionReason reasonCode, AmServerName serverName) { if (AmSystemManager.Instance.Config.IsPAM) { this.AddEntry(new AmFailoverEntry(reasonCode, serverName) { TimeCreated = ExDateTime.Now, Delay = TimeSpan.FromSeconds((double)RegistryParameters.TransientFailoverSuppressionDelayInSec) }); } }
internal AmSystemSwitchover(AmServerName nodeName, AmDbActionReason reasonCode) : base(nodeName) { this.m_reasonCode = reasonCode; }
// Token: 0x060000A8 RID: 168 RVA: 0x00004ECF File Offset: 0x000030CF internal AmBatchMarkDismounted(AmServerName nodeName, AmDbActionReason reasonCode) { this.m_nodeName = nodeName; this.m_reasonCode = reasonCode; }
// Token: 0x0600008F RID: 143 RVA: 0x000049E8 File Offset: 0x00002BE8 internal AmSystemFailover(AmServerName nodeName, AmDbActionReason reasonCode, bool isForce, bool skipIfReplayRunning = false) : base(nodeName) { this.m_reasonCode = reasonCode; this.m_isForce = isForce; this.skipIfReplayRunning = skipIfReplayRunning; }
// Token: 0x06000623 RID: 1571 RVA: 0x0001E548 File Offset: 0x0001C748 internal AmFailoverEntry(AmDbActionReason reasonCode, AmServerName serverName) { this.ReasonCode = reasonCode; this.ServerName = serverName; }
public static int ToInt(AmDbActionInitiator initiator, AmDbActionReason reason, AmDbActionCategory category) { return((int)(category | (AmDbActionCategory)((int)reason << 8) | (AmDbActionCategory)((int)initiator << 18))); }
public static void ToEnumFields(int actionCode, out AmDbActionInitiator initiator, out AmDbActionReason reason, out AmDbActionCategory category) { category = (AmDbActionCategory)(actionCode & 255); if (category > (AmDbActionCategory)255) { throw new AmInvalidActionCodeException(actionCode, category.GetType().Name, category.ToString()); } reason = (AmDbActionReason)(actionCode >> 8 & 1023); if (reason > (AmDbActionReason)1023) { throw new AmInvalidActionCodeException(actionCode, reason.GetType().Name, reason.ToString()); } initiator = (AmDbActionInitiator)(actionCode >> 18 & 255); if (initiator > (AmDbActionInitiator)255) { throw new AmInvalidActionCodeException(actionCode, initiator.GetType().Name, initiator.ToString()); } }