Class ChangeLogHelper
java.lang.Object
edu.internet2.middleware.grouper.changeLog.ChangeLogHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
mainstatic void
processRecords
(String consumerName, Hib3GrouperLoaderLog hib3GrouploaderLog, ChangeLogConsumerBase changeLogConsumerBase) call this method to process a batch of 100k (max) records of the change log...static void
processRecordsWrapper
(Hib3GrouperLoaderLog hib3GrouperLoaderLogOverall) call this method to process a batch of 100k (max) records of the change log...
-
Constructor Details
-
ChangeLogHelper
public ChangeLogHelper()
-
-
Method Details
-
main
main- Parameters:
args
-
-
processRecordsWrapper
call this method to process a batch of 100k (max) records of the change log... ... and optionally loop over that after a configured sleep and for a configured amount of time. to keep track of the last processed record, the loader log which will log process in the grouper loader log table, and the processor which is the change log consumer base...
- Parameters:
hib3GrouperLoaderLogOverall
-
-
processRecords
public static void processRecords(String consumerName, Hib3GrouperLoaderLog hib3GrouploaderLog, ChangeLogConsumerBase changeLogConsumerBase) call this method to process a batch of 100k (max) records of the change log... pass in a consumer name (nothing that people would use for a real change log consumer), that is used to keep track of the last processed record, the loader log which will log process in the grouper loader log table, and the processor which is the change log consumer base... to test this, do your changes, e.g. add a member, delete a member, then call this: GrouperLoader.runOnceByJobName(grouperSession, GrouperLoaderType.GROUPER_CHANGE_LOG_TEMP_TO_CHANGE_LOG); then call this method... e.g. the static example() method in this class
- Parameters:
consumerName
- name of configured consumer, or another name that is not configured (e.g. ldappcng)hib3GrouploaderLog
- send an instance of this in so it can be logged to the DB...changeLogConsumerBase
- is the instance that should handle the requests
-