Example #1
0
 public void Append(LocalizedString msg, MailboxSizeRec mailboxSizeRec, ReportEntryFlags flags)
 {
     this.Append(new ReportEntry(msg)
     {
         MailboxSize = mailboxSizeRec,
         Flags       = (flags | ReportEntryFlags.MailboxSize)
     });
 }
Example #2
0
 public void Append(LocalizedString msg, ConfigurableObjectXML configObject, ReportEntryFlags flags)
 {
     this.Append(new ReportEntry(msg)
     {
         ConfigObject = configObject,
         Flags        = (flags | ReportEntryFlags.ConfigObject)
     });
 }
Example #3
0
 public void Append(LocalizedString msg, FailureRec failureRec, ReportEntryFlags flags)
 {
     this.Append(new ReportEntry(msg, ReportEntryType.Error)
     {
         Failure = failureRec,
         Flags   = (flags | ReportEntryFlags.Failure)
     });
 }
Example #4
0
 public void Append(LocalizedString msg, Exception failure, ReportEntryFlags flags)
 {
     this.Append(new ReportEntry(msg, ReportEntryType.Error)
     {
         Failure = FailureRec.Create(failure),
         Flags   = (flags | ReportEntryFlags.Failure)
     });
 }
Example #5
0
        public void Append(RequestJobTimeTracker timeTracker, ReportEntryFlags flags)
        {
            ThrottleDurations sourceThrottleDurations;
            ThrottleDurations targetThrottleDurations;

            timeTracker.GetThrottledDurations(out sourceThrottleDurations, out targetThrottleDurations);
            ReportEntry reportEntry = new ReportEntry();

            reportEntry.Flags = flags;
            if ((flags & ReportEntryFlags.SourceThrottleDurations) != ReportEntryFlags.None)
            {
                reportEntry.SourceThrottleDurations = sourceThrottleDurations;
            }
            if ((flags & ReportEntryFlags.TargetThrottleDurations) != ReportEntryFlags.None)
            {
                reportEntry.TargetThrottleDurations = targetThrottleDurations;
            }
            this.Append(reportEntry);
        }
Example #6
0
 public ReportEntry(LocalizedString message, ReportEntryType type, Exception failure, ReportEntryFlags flags)
 {
     this.Message      = message;
     this.CreationTime = (DateTime)ExDateTime.UtcNow;
     this.ServerName   = CommonUtils.LocalShortComputerName;
     this.Type         = type;
     this.Flags        = flags;
     if (failure != null)
     {
         this.Failure = FailureRec.Create(failure);
         this.Flags  |= ReportEntryFlags.Failure;
     }
 }