grouper-users - [grouper-users] RE: Schedule a job to run later via quarts and java?
Subject: Grouper Users - Open Discussion List
List archive
- From: "Hyzer, Chris" <>
- To: "Black, Carey M." <>, " Mailing List" <>
- Subject: [grouper-users] RE: Schedule a job to run later via quarts and java?
- Date: Mon, 24 Sep 2018 02:03:44 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:CqgvjRa2C3qEo79xC0eBM77/LSx+4OfEezUN459isYplN5qZps27YR7h7PlgxGXEQZ/co6odzbaO7Oa4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahY75+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v9LlgRgP2hygbNj456GDXhdJ2jKJHuxKquhhzz5fJbI2JKPZye6XQds4YS2VcRMZcTyxPDJ2hYYsTAeQPPuhYoIv8p1QSohWxChKhBP/2yjNUmnP6wbE23/onHArb3AIgBdUOsHHModn7NqkTUeG0w7fSzTnbcvhbxzf96JLJchA6r/2HQLV9cc/NxkkvFwLEj0ufqZb+MjOUzeQCr3KX7/d4Ve2xjW4nrRt9rSayyccxk4TEgJ8exF7D9SV82ok1JNu4RVZ0Yd6+F5tQqjmaOJVsQs84WW5ooD46xqUfuZ6mZicK0ognxh/GZ/ycb4eI4gzsW/uMITd8mn1lYqizhxGo8UivzOD3S8q60E5SoyZbiNbAqm0B2hnO5sSaV/dw+0mh1DmT2wzP7+xJI147mKrGJ5Mkx7M8iIYfvEfbEiPrlkj6kLWae0E59uSy9ejrf7HrqoWBO4J2iwzyKqouldK8DOgkNwUDWnaU9fi+2bL4+ED0RLZHjvMyn6TcsZ3XJcAWqrC8Dg9b1oss9Q2wAjG729oCh3YHNkhKeBefgojpJV7OJPf4AO+njVmwlzln2/DLMqTvDJvKIHXPibDhcq1j5EJGzwoz0Mxf6IlTCrEcJvL8R1X9tMTCDh8+Lwy73froCMl81oMZX2KDGKiZML7OsV+M4eIvJOqMaJUJtzb6Lvgp///ujXknll8BZaSlw4EYZGylEvljPkmVfGfgj9IPEWoFogYyUOnnhV+cXjNTenq/Wqcx6i8nBI+lFYvDQ5qigL2F3Ce1BJ1WYWVGB0iJEXj0d4WFW/YNZzyIIsJ6kzwETqSuR5U81RG2qgD6zbxnIvDK9SIFqJLvzMJ16PHLlREu6Tx0CNyQ026XT2Fzg2MIXyE53LpmrUxg0VeMz7J4g+dDGNxX5vNJSRs6NYXCw+BgCtDyXB7BccmTSFagXNqmHS89QsgvzNATfkYuU+ml21rp2yOhAPtdvLWRCY181+SWlyz7I892yDCfjvIJiEI7BMZDKDvizuRw7Q/OH4PT1liCmryxXaUawCPX8mqflyyDsFwQdQdxVaTDUjg7Z1DK55yt6VnFUqejE/E6KQZb0uaDLLdHcNvkkQ8ASfv+bofweWW0zi2QFASF3PfER4rwen5XlHHYA0gVgQ0J1XedPk4jHiqnpSTTACE4RgGnWF/l7eQr8CDzdUQz1QzfKhQ5j+DvqBcImfyRTe8S1bsYuSAn7i95B0u5w8mIV4ibvwQ0eqJabJt9+1pB2W/D/y1Fdp27Z+EH5BYFdhhv+Ubn1hF5EIJFxM0hrGI4wRBaKLmTlk5ZejWem538J+6fJw==
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
You can get a scheduler like this:
Scheduler scheduler = GrouperLoader.schedulerFactory().getScheduler();
Not sure exactly how to schedule a one-off...
-----Original Message-----
From:
<>
On Behalf Of Black, Carey M.
Sent: Friday, September 21, 2018 2:54 PM
To:
Mailing List
<>
Subject: [grouper-users] RE: Schedule a job to run later via quarts and java?
Sorry.. wrong method ref... (copy/paste error...)
Create a version of:
edu.internet2.middleware.grouper.app.loader.GrouperLoader.scheduleOtherJobs()
That calls:
-->
edu.internet2.middleware.grouper.app.loader.GrouperLoader.scheduleJobIfNeeded(JobDetail,
Trigger)
--
Carey Matthew
-----Original Message-----
From:
<>
On Behalf Of Black, Carey M.
Sent: Friday, September 21, 2018 2:43 PM
To:
Mailing List
<>
Subject: [grouper-users] Schedule a job to run later via quarts and java?
If I have a loader job ( or built in job ) is there a way to programmatically
schedule it to run at some time in the future?
( Example: in 10 minutes from now run the Unresolvable Subject
Deletion Utility (USDU)")
I can do the USDU job via cron (or at) at the OS level, but it could
be helpful to trigger such things from inside a Change Log Consumer or GSH
scripts.
Yes I know I can run them "now". (AKA loaderRunOneJob()) The trick that I am
talking about here is to delay the "now" until "later". ( And to be really
fancy, see if It was already scheduled so that the job is not run multiple
times in a short period of time.)
REF:
http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-01.html
REF: I am looking at
edu.internet2.middleware.grouper.app.loader.GrouperLoader.scheduleChangeLogTempToChangeLogJob()
as an example.
Maybe another way to ask this might be:
Is there an acceptable interface to get ahold of the Scheduler so
that I could add a "local job" to it?
Or is that "behind the curtain" and I should look elsewhere for my
needs?
Thinking about ideas like:
Custom reports/exports/checks that need to be triggered by
user event and/or other run time conditions.
Set an attribute "ReportRequest" =
"EmailMeReport-GoodUsers" (on a group or folder context) and a report is run
and an email shows up to the user.
Etc...
--
Carey Matthew
- [grouper-users] Schedule a job to run later via quarts and java?, Black, Carey M., 09/21/2018
- [grouper-users] RE: Schedule a job to run later via quarts and java?, Black, Carey M., 09/21/2018
- [grouper-users] RE: Schedule a job to run later via quarts and java?, Hyzer, Chris, 09/24/2018
- [grouper-users] RE: Schedule a job to run later via quarts and java?, Black, Carey M., 09/21/2018
Archive powered by MHonArc 2.6.19.