//****************************************************************************************************** // ProcessQueueStatistics.cs - Gbtc // // Copyright © 2012, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NOTICE file distributed with this work for additional information regarding copyright ownership. // The GPA licenses this file to you under the MIT License (MIT), the "License"; you may // not use this file except in compliance with the License. You may obtain a copy of the License at: // // http://www.opensource.org/licenses/MIT // // Unless agreed to in writing, the subject software distributed under the License is distributed on an // "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the // License for the specific language governing permissions and limitations. // // Code Modification History: // ---------------------------------------------------------------------------------------------------- // 11/06/2008 - J. Ritchie Carroll // Generated original version of source code. // 09/14/2009 - Stephen C. Wills // Added new header and license agreement. // 12/13/2012 - Starlynn Danyelle Gilliam // Modified Header. // //****************************************************************************************************** using GSF.Units; namespace GSF.Collections { /// /// Represents the statistics of a . /// public struct ProcessQueueStatistics { /// /// Gets indicator that the is currently enabled. /// public bool IsEnabled; /// /// Gets indicator that the is actively processing items. /// public bool IsProcessing; /// /// Gets the interval, in milliseconds, on which new items begin processing. /// public double ProcessingInterval; /// /// Gets the maximum time, in milliseconds, allowed for processing an item. /// public int ProcessTimeout; /// /// Gets the current for the (i.e., synchronous or asynchronous). /// public QueueThreadingMode ThreadingMode; /// /// Gets the item for the (i.e., one at a time or many at once). /// public QueueProcessingStyle ProcessingStyle; /// /// Gets the total amount of time, in seconds, that the process has been active. /// public Time RunTime; /// /// Gets the current number of active threads. /// public int ActiveThreads; /// /// Gets the number of elements queued for processing in the . /// public int QueueCount; /// /// Gets the total number of items currently being processed. /// public long ItemsBeingProcessed; /// /// Gets the total number of items processed so far. /// public long TotalProcessedItems; } }