|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.app.loader.GrouperLoader
public class GrouperLoader
main class to start the grouper loader
Nested Class Summary | |
---|---|
static class |
GrouperLoader.GrouperLoaderDryRunBean
bean holds where the logging goes, and if there, then it means we are in dry run mode |
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_LOADER_ACTION_QUERY
SQL query with at least the following column: action_name |
static java.lang.String |
ATTRIBUTE_LOADER_ACTION_SET_QUERY
SQL query with at least the following columns: if_has_action_name, then_has_action_name |
static java.lang.String |
ATTRIBUTE_LOADER_ATTR_QUERY
SQL query with at least some of the following columns: attr_name, attr_display_name, attr_description |
static java.lang.String |
ATTRIBUTE_LOADER_ATTR_SET_QUERY
SQL query with at least the following columns: if_has_attr_name, then_has_attr_name |
static java.lang.String |
ATTRIBUTE_LOADER_ATTRS_LIKE
If empty, then orphans will be left alone (for attributeDefName and attributeDefNameSets). |
static java.lang.String |
ATTRIBUTE_LOADER_DB_NAME
DB name in grouper-loader.properties or default grouper db if blank |
static java.lang.String |
ATTRIBUTE_LOADER_INTERVAL_SECONDS
If a START_TO_START_INTERVAL schedule type, this is the number of seconds between runs |
static java.lang.String |
ATTRIBUTE_LOADER_PRIORITY
Quartz has a fixed threadpool (max configured in the grouper-loader.properties), and when the max is reached, then jobs are prioritized by this integer. |
static java.lang.String |
ATTRIBUTE_LOADER_QUARTZ_CRON
If a CRON schedule type, this is the cron setting string from the quartz product to run a job daily, hourly, weekly, etc. |
static java.lang.String |
ATTRIBUTE_LOADER_SCHEDULE_TYPE
Type of schedule. |
static java.lang.String |
ATTRIBUTE_LOADER_TYPE
Type of loader, e.g. |
static java.lang.String |
GROUPER_LOADER_AND_GROUPS
groups to and with to restrict members (e.g. |
static java.lang.String |
GROUPER_LOADER_DB_NAME
group attribute name of the db connection where this query comes from. |
static java.lang.String |
GROUPER_LOADER_GROUP_QUERY
optional group information for a group list query: e.g. to specify the display name of the group/stem when it is created |
static java.lang.String |
GROUPER_LOADER_GROUP_TYPES
types to add to loaded groups |
static java.lang.String |
GROUPER_LOADER_GROUPS_LIKE
If you want the group (if not used from anywhere) or members deleted when no longer in loader sql results, list the sql like name, e.g. stem1:stem2:%:%org |
static java.lang.String |
GROUPER_LOADER_INTERVAL_SECONDS
group attribute name of the interval in seconds for a schedule type like START_TO_START_INTERVAL. |
static java.lang.String |
GROUPER_LOADER_PRIORITY
group attribute name of priority of job, optional, if not there, will be 5. |
static java.lang.String |
GROUPER_LOADER_QUARTZ_CRON
group attribute name of quartz cron-like string to describe when the job should run |
static java.lang.String |
GROUPER_LOADER_QUERY
group attribute name of query, must have the required columns for the grouperLoaderType |
static java.lang.String |
GROUPER_LOADER_SCHEDULE_TYPE
group attribute name of type of schedule, must match one of the enums in GrouperLoaderScheduleType. |
static java.lang.String |
GROUPER_LOADER_TYPE
group attribute name of type of the loader, must match one of the enums in GrouperLoaderType. |
Constructor Summary | |
---|---|
GrouperLoader()
|
Method Summary | |
---|---|
static Hib3GrouperLoaderLog |
_internal_runJobOnceForAttributeDef(GrouperSession grouperSession,
AttributeDef attributeDef)
|
static java.lang.String |
dryRunJobOnceForGroup(GrouperSession grouperSession,
Group group,
java.lang.String fileName)
|
static void |
dryRunWriteLine(java.lang.String line)
|
static void |
internal_assignThreadLocalGrouperLoaderDryRun(GrouperLoader.GrouperLoaderDryRunBean theThreadLocalGrouperLoaderDryRun)
|
static GrouperLoader.GrouperLoaderDryRunBean |
internal_retrieveThreadLocalGrouperLoaderDryRun()
|
static boolean |
isDryRun()
|
static void |
main(java.lang.String[] args)
|
static void |
printAllSupportDdlUtilsPlatforms()
print out all ddlutils platforms |
static java.lang.String |
runJobOnceForAttributeDef(GrouperSession grouperSession,
AttributeDef attributeDef)
|
static java.lang.String |
runJobOnceForGroup(GrouperSession grouperSession,
Group group)
|
static java.lang.String |
runOnceByJobName(GrouperSession grouperSession,
java.lang.String jobName)
|
static void |
scheduleBuiltinMessagingDaemonJob()
schedule enabled/disabled job |
static void |
scheduleChangeLogConsumers()
schedule change log consumer jobs |
static void |
scheduleChangeLogJobs()
schedule change log jobs |
static void |
scheduleChangeLogTempToChangeLogJob()
schedule maintenance job for moving records from change log to change log temp |
static void |
scheduleDailyReportJob()
schedule maintenance job |
static void |
scheduleEnabledDisabledJob()
schedule enabled/disabled job |
static void |
scheduleEsbListenerJobs()
|
static void |
scheduleExternalSubjCalcFieldsJob()
schedule external subject subj calc fields |
static void |
scheduleGroupSyncJobs()
schedule rules job |
static boolean |
scheduleJobIfNeeded(org.quartz.JobDetail jobDetail,
org.quartz.Trigger trigger)
Schedule job if new or something has changed |
static void |
scheduleLogCleanerJob()
schedule maintenance job |
static void |
scheduleMaintenanceJobs()
schedule maintenance jobs |
static void |
scheduleMessagingListeners()
schedule messaging listener jobs |
static void |
scheduleOtherJobs()
schedule other jobs |
static void |
schedulePspFullSyncJob()
schedule psp full sync job |
static void |
schedulePspFullSyncRunAtStartupJob()
schedule psp full sync job once at startup |
static org.quartz.SchedulerFactory |
schedulerFactory()
lazy load (and start the scheduler) the scheduler factory |
static void |
scheduleRulesJob()
schedule rules job |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GROUPER_LOADER_TYPE
public static final java.lang.String GROUPER_LOADER_AND_GROUPS
public static final java.lang.String GROUPER_LOADER_GROUPS_LIKE
public static final java.lang.String GROUPER_LOADER_GROUP_QUERY
public static final java.lang.String GROUPER_LOADER_GROUP_TYPES
public static final java.lang.String GROUPER_LOADER_SCHEDULE_TYPE
public static final java.lang.String GROUPER_LOADER_QUERY
public static final java.lang.String GROUPER_LOADER_QUARTZ_CRON
public static final java.lang.String GROUPER_LOADER_INTERVAL_SECONDS
public static final java.lang.String GROUPER_LOADER_PRIORITY
public static final java.lang.String GROUPER_LOADER_DB_NAME
public static final java.lang.String ATTRIBUTE_LOADER_TYPE
public static final java.lang.String ATTRIBUTE_LOADER_DB_NAME
public static final java.lang.String ATTRIBUTE_LOADER_SCHEDULE_TYPE
public static final java.lang.String ATTRIBUTE_LOADER_QUARTZ_CRON
public static final java.lang.String ATTRIBUTE_LOADER_INTERVAL_SECONDS
public static final java.lang.String ATTRIBUTE_LOADER_PRIORITY
public static final java.lang.String ATTRIBUTE_LOADER_ATTRS_LIKE
public static final java.lang.String ATTRIBUTE_LOADER_ATTR_QUERY
public static final java.lang.String ATTRIBUTE_LOADER_ATTR_SET_QUERY
public static final java.lang.String ATTRIBUTE_LOADER_ACTION_QUERY
public static final java.lang.String ATTRIBUTE_LOADER_ACTION_SET_QUERY
Constructor Detail |
---|
public GrouperLoader()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- public static void printAllSupportDdlUtilsPlatforms()
public static org.quartz.SchedulerFactory schedulerFactory()
public static void scheduleMaintenanceJobs()
public static void scheduleChangeLogJobs()
public static void scheduleChangeLogTempToChangeLogJob()
public static void scheduleChangeLogConsumers()
public static void scheduleMessagingListeners()
public static void scheduleOtherJobs()
public static void scheduleDailyReportJob()
public static void scheduleRulesJob()
public static void scheduleEnabledDisabledJob()
public static void scheduleBuiltinMessagingDaemonJob()
public static void scheduleExternalSubjCalcFieldsJob()
public static void scheduleLogCleanerJob()
public static void scheduleEsbListenerJobs()
public static java.lang.String runJobOnceForGroup(GrouperSession grouperSession, Group group)
group
- grouperSession
-
public static java.lang.String runOnceByJobName(GrouperSession grouperSession, java.lang.String jobName)
grouperSession
- jobName
-
public static Hib3GrouperLoaderLog _internal_runJobOnceForAttributeDef(GrouperSession grouperSession, AttributeDef attributeDef)
attributeDef
- grouperSession
-
public static java.lang.String runJobOnceForAttributeDef(GrouperSession grouperSession, AttributeDef attributeDef)
attributeDef
- grouperSession
-
public static void scheduleGroupSyncJobs()
public static void schedulePspFullSyncJob()
public static void schedulePspFullSyncRunAtStartupJob()
public static GrouperLoader.GrouperLoaderDryRunBean internal_retrieveThreadLocalGrouperLoaderDryRun()
public static void internal_assignThreadLocalGrouperLoaderDryRun(GrouperLoader.GrouperLoaderDryRunBean theThreadLocalGrouperLoaderDryRun)
theThreadLocalGrouperLoaderDryRun
- the threadLocalGrouperLoaderDryRun to setpublic static java.lang.String dryRunJobOnceForGroup(GrouperSession grouperSession, Group group, java.lang.String fileName)
group
- grouperSession
- fileName
- is the file where output should go
public static boolean isDryRun()
public static void dryRunWriteLine(java.lang.String line)
line
- public static boolean scheduleJobIfNeeded(org.quartz.JobDetail jobDetail, org.quartz.Trigger trigger) throws org.quartz.SchedulerException
jobDetail
- trigger
-
org.quartz.SchedulerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |