/// <summary> /// Gets the runtime status for this Proxy service /// </summary> /// <returns>a Runtime information conatining all open jobs</returns> protected virtual RuntimeInformation GetRuntimeStatus() { RuntimeInformation retVal = new RuntimeInformation(); retVal.Add("openPackages", processingPackages.ToArray()); retVal.Add("unCommittedPackages", unCommittedPackages.ToArray()); return(retVal); }
/// <summary> /// Gets the Runtime information required to restore the status when the application restarts /// </summary> /// <returns>an object serializer containing all required data for object re-construction on application reboot</returns> public virtual RuntimeInformation GetPostDisposalSerializableStaus() { RuntimeInformation retVal = new RuntimeInformation(); retVal.Add("processor", processor.GetPostDisposalSerializableStaus()); for (int i = highestPriority; i <= lowestPriority; i++) { retVal.Add(string.Format("priority_{0}_packages", i), packages[i].ToArray()); } retVal.Add("WorkingPackages", workingPackages.ToArray()); retVal.Add("TriggeredEvents", triggeredEvents.ToArray()); return(retVal); }
/// <summary> /// Generates a serializable runtime status for this scheduler /// </summary> /// <returns>a runtime information object that can be stored into a file</returns> protected override RuntimeInformation GetRuntimeStatus() { RuntimeInformation basicStatus = base.GetRuntimeStatus(); basicStatus.Add("Tasks", pendingRequests.ToArray()); return(basicStatus); }
/// <summary> /// Gets the Runtime information required to restore the status when the application restarts /// </summary> /// <returns>an object serializer containing all required data for object re-construction on application reboot</returns> public virtual RuntimeInformation GetPostDisposalSerializableStaus() { RuntimeInformation retVal = new RuntimeInformation(); foreach (KeyValuePair <int, ConcurrentQueue <TaskContainer> > list in tasks) { retVal.Add(string.Format("TaskList_{0}", list.Key), list.Value.ToArray()); } return(retVal); }