///
/// Copyright © 2003-2008 JetBrains s.r.o.
/// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder).
///
using System;
using JetBrains.Omea.OpenApiEx;
namespace JetBrains.Omea.CoreServicesEx.Scheduller
{
internal class Scheduller : IScheduller
{
#region IScheduller Members
///
/// Gets the container of Scheduller data constants.
///
public ISchedullerData Data
{
get
{
return SchedullerData.Instance;
}
}
///
/// Gets the collection of all the schedulled groups.
/// A group is a collection of tasks, all schedulled for execution at some moment of time, for example, periodically, or on Omea startup.
///
public IResourceObjectsListByName Groups
{
get
{
throw new NotImplementedException();
}
}
///
/// Gets the collection of all the schedulled tasks.
/// A task is an atomic item of schedulling that does not define any schedulle on itself, but rather belongs to one or more schedulling groups.
///
public IResourceObjectsListByName Tasks
{
get
{
//return new ResourceObjectsListByName(OpenAPI.Core.ResourceStore.GetAllResources(Data.SchedullerTaskResourceTypeName), )
throw new InvalidOperationException(string.Format("!!!"));
}
}
///
/// Enumerates all the tasks and drops those for whom there is no plugin available anymore.
/// Can be executed to clean up the remainders of previously-installed plugins.
///
public void DropOrphanedTasks()
{
throw new NotImplementedException();
}
#endregion
}
}