c# - InstanceName and InstanceID in Quartz.Net Configuration -
i working on creating scheduler using quartz.net.
while configuring it, using 2 properties below:
properties["quartz.scheduler.instancename"] = "testscheduler2"; properties["quartz.scheduler.instanceid"] = "instance_two";
i have used them don't know do.
referred quartz.net official website information provided not enough.
please explain use of these 2 configuration properties.
from java version's configuration guide:
org.quartz.scheduler.instancename
can string, , value has no meaning scheduler - rather serves mechanism client code distinguish schedulers when multiple instances used within same program. if using clustering features, must use same name every instance in cluster 'logically' same scheduler.
org.quartz.scheduler.instanceid
can string, must unique schedulers working if same 'logical' scheduler within cluster. may use value "auto" instanceid if wish id generated you. or value "sys_prop" if want value come system property "org.quartz.scheduler.instanceid".
Comments
Post a Comment