Admin User Interface

1,486 views
Skip to first unread message

serser12

unread,
Apr 13, 2010, 10:01:13 AM4/13/10
to Quartz.NET
Hi,
I need a user interface which I can monitor, start/stop jobs,
reschedule jobs.. as everyone need. So I should develop a UI for our
project. Is there a code base about this? I started a web project for
our needs. But I meet some problems. I want to ask about best
practices:

1)Which function should I initilize IScheduler object?
void Application_Start(object sender, EventArgs e)
void Init()
void Session_Start(object sender, EventArgs e)
void Application_BeginRequest(object sender, EventArgs e)
...

I implemented in "void Init()".

2)How can I use IScheduler object in web pages where is initilized in
global.asax?
I tried to store in Session and HttpContext.Current.Items but failed.
Latest I used Application to store IScheduler object with success and
used in web pages.


Is there any suggustions about these topics and any other about admin
UI?
Thanks.


My Global.asax:

public override void Init()
{
InitializeScheduler();

base.Init();
}

private void InitializeScheduler()
{
NameValueCollection properties = new
NameValueCollection();
properties["quartz.scheduler.instanceName"] =
"RemoteClient";
// set remoting expoter
properties["quartz.scheduler.proxy"] = "true";
properties["quartz.scheduler.proxy.address"] = "tcp://
localhost:555/QuartzScheduler";
// First we must get a reference to a scheduler
ISchedulerFactory sf = new
StdSchedulerFactory(properties);
IScheduler sched = sf.GetScheduler();
Application["Scheduler"] = sched;
}

pmtolk

unread,
Apr 13, 2010, 1:25:47 PM4/13/10
to Quartz.NET
I have posted my GUI
its definitely needs work and features and stuff but maybe its a good
starting point
for a gui or talking about how to make a better gui for quartz
I yanked all my work specific stuff out so you need to change a couple
things like the server variable and db connection strings etc

https://71.189.190.180:8443/svn/QuartzGUI/
login:quartz.net
pass:opensource

Mingus

unread,
Apr 13, 2010, 11:00:36 AM4/13/10
to Quartz.NET
Tangentially, I started looking at doing the exact same thing
yesterday, however I found that when attempting to add jobs via
remoting to a quartz service running sql server jobstore I got an
error complaining about the cron triggers' timezone.

When not using remoting the timezone problem didnt appear. The test
was run locally on 1 machine only.

Have you encountered this problem?

(sorry if I hijacked your thread, but thought you may run into this
problem also)

Guryanov Evgeniy

unread,
Apr 14, 2010, 5:29:42 AM4/14/10
to Quartz.NET
There are some tools already implemented for scheduler monitoring and
administration:

http://code.google.com/p/quartznet-admin/ -- ASP.NET MVC - based
site for administration
http://code.google.com/p/crystal-quartz/ -- lightweight (no
database or other dependencies) tool for monitoring and simple
administration (start/pause jobs)

Second is my project. It is not mature enough now, but plan to
increase it.

serser12

unread,
Apr 14, 2010, 7:07:49 AM4/14/10
to Quartz.NET
Thanks Guryanov, It is what I am looking for.
However I didn't look your code detailed, I think you should go ahead
about yours. I like .axd(like elmah) and provider pattern.
I could not open quartznet-admin web project. I think it is about mvc
version.
Reply all
Reply to author
Forward
0 new messages