Skip to Content.
Sympa Menu

grouper-users - [grouper-users] recipe to "start a loader job" from a Java application

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] recipe to "start a loader job" from a Java application


Chronological Thread 
  • From: "Black, Carey M." <>
  • To: "" <>
  • Subject: [grouper-users] recipe to "start a loader job" from a Java application
  • Date: Thu, 1 Mar 2018 04:24:55 +0000
  • Accept-language: en-US
  • Authentication-results: spf=pass (sender IP is 128.146.163.15) smtp.mailfrom=osu.edu; internet2.edu; dkim=none (message not signed) header.d=none;internet2.edu; dmarc=pass action=none header.from=osu.edu;
  • Ironport-phdr: 9a23:bFey2xLHFpBzalRKvNmcpTZWNBhigK39O0sv0rFitYgfLPvxwZ3uMQTl6Ol3ixeRBMOHs6kC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwtFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhicZOTAk7GHZhM9+jKNHrxyuqBNy2JLUYJiROfZiYq/RYc0WSGxcVchRTSxBBYa8YpMBA+ccOeZXtZXyp1gWoRCjGwSjHvnvxSFIh3Tr2qM2yeotGhzB0QM7G9IBqmjbrNbvOKsPT+y4wrLFzTLYb/NLwzvy9pXHcg04rPyKQLl+f83RyUw1GAPEiFWdsY3lPzWJ1usTqWib6fRvVf6xh2I9tQ5+vyWvy8ExgYfKnoIY0k7I+j9lzIooINC0VVN3bcOhHZteuCyWK5d6T8YsQ252tys217gLtJu5cSQW1Jsr3wPTZ+KEfoSS/x7uW+ecLS1liH9qYr6ygxi//VCuyuLiVcS4zFNHoy9Fn9bQqn8N2Rne5taIR/Z840is3DmC2gDR5+xKJE07ibHUJIU7zbM2i5Edq17MHjXsl0XzlKKWdlsr+uyv6+n/ervrupiSO5Nphg3nL6kggsKyDf0/MgcVQWeX4+O81KD//ULiR7VKk/s2nbTDvJDCP8QbobK5DBFJ3YY/6ha/CDGm3M4fnXkaMFJFfBWHj4/qO13UPP/4CvK/j0ytkDdt2f/GIqXsDovXIXTfjbvseKtx51NBxAc2w9BS6I5YBq0ELfL9RED8u8HUAxo8PgG23+roFM1x1oYEVmKOBq+ZPrnSsViN5u83OOaMYJUatyr+K/Q/+vLik3E0lEQafamywJsbcm63Eel7I0mBe3rjns8BEXsWvgo5VOHqh0eCUTlOZ3aqQa08/Cg3CJ+9DYjdXICtm6eM3CO6Hp1NemBGEU6AHW3pd4WCR/cDdjiSIsl/nTwYS7StUZEu2gyztFyy970yZOXO/TAAuIimycN4/fb7lBcu+CZyAtjHlWyBUis8ymwSQCIu0bo6vFdw0Eyr0K5kjuZeGMAJof5FT1FpG4TbyrkwIdT7UQGFNvyAUlu3CvDgS3llRNY4yNxIOhwmM9K5k1bO0zf8UOxdrKCCGJFhqvGU5HP2Pcsok3s=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hello all,

I am hopeful that someone could share the recipe to "start a loader job" from
a Java application using the Grouper API.
REF:
https://spaces.internet2.edu/display/Grouper/Grouper+Loader+add+new+job
...
Log in to the daemon server where you run GSH:
....
"
gsh 0% grouperSession = GrouperSession.startRootSession();
edu.internet2.middleware.grouper.GrouperSession:
96f3d78c030b45f1b43f5d5d4a598448,'GrouperSystem','application'
gsh 1% loaderGroup = GroupFinder.findByName(grouperSession,
"some:group");
gsh 2% loaderRunOneJob(loaderGroup);
"
I likely can rip apart the gsh environment/code to work this out on my own.
But I thought I would ask in case someone already has the recipe already
worked out. :) And after all, maybe others will have the same question in
the future too. :)


I am looking for the ingredients list of:
Include these jars/config files/paths in your app.
Use this/these class(es)/methods....

The app will be running from one of the Grouper servers. So the code will
have access to all of the grouper config/files/secretes.



Why? ( I heard you ask that. )
I am working on a "how to load lots of data process" and I want to
dove tail the end of the "load lots of data" (into a cache of RDMBS tables)
with the "start of the loader job" (to ingest the data into grouper).
Yes, I could likely write more code and do what the loader would do
with those tables. However, that process is already written. If I can define
the job(s) then just start them. I think that would be "close enough" to
"in-line" for me. :) ( Well, for now. )

Thanks in advance.

--
Carey Matthew




Archive powered by MHonArc 2.6.19.

Top of Page