since I'm such a good bloke
Why do you need these though? Seems like a useless setting to care about.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a custom mail listener that is not controlled by the Email processor, the Email processor is turned off, but the custom mail listener can still process mail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, the selectors are baked inside the page by the servlet, with no public API, nor any hidden ajax calls on the page.
So this leads me to say db is the only place:
SELECT * FROM propertyentry WHERE property_key in ('GLOBAL_PULLER_JOB', 'GLOBAL_PROCESSOR_JOB');
id | entity_name | entity_id | property_key | propertytype
--------+------------------------------------+-----------+----------------------+--------------
169540 | JIRA_MAIL_PROCESSOR_GLOBAL_SETTING | 1 | GLOBAL_PULLER_JOB | 1
169541 | JIRA_MAIL_PROCESSOR_GLOBAL_SETTING | 1 | GLOBAL_PROCESSOR_JOB | 1
(2 rows)
Getting a 0=off 1=on values:
SELECT propertyvalue FROM propertynumber WHERE id = (SELECT id FROM propertyentry WHERE property_key = 'GLOBAL_PROCESSOR_JOB');
propertyvalue
---------------
1
(1 row)
and
SELECT propertyvalue FROM propertynumber WHERE id = (SELECT id FROM propertyentry WHERE property_key = 'GLOBAL_PULLER_JOB');
propertyvalue
---------------
1
(1 row)
However, the values do not take into account any JVM flags (and I could only test that this is the table/column on one of the properties, because the other was disabled by a jvm flag, while in db it shows 1).
I still don't quite see why you would want to need these, and given that it is unreliable due to having to dig it up through the db as well as to parse jvm arguments makes it potentially unreliable, I wouldn't personally do this, there should be an easier way than this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.