public class GrouperLoader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GrouperLoader.GrouperLoaderDryRunBean
bean holds where the logging goes, and if there, then it means we are in dry run mode
|
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_GROUPER_LOADER_METADATA_GROUP_ID
Group id which is being populated from the loader
|
static String |
ATTRIBUTE_GROUPER_LOADER_METADATA_LAODED
Deprecated.
|
static String |
ATTRIBUTE_GROUPER_LOADER_METADATA_LAST_FULL_MILLIS
Millis since 1970 that this group was fully processed
|
static String |
ATTRIBUTE_GROUPER_LOADER_METADATA_LAST_INCREMENTAL_MILLIS
Millis since 1970 that this group was incrementally processed
|
static String |
ATTRIBUTE_GROUPER_LOADER_METADATA_LAST_SUMMARY
summary like count of additions, updates and removals
|
static String |
ATTRIBUTE_GROUPER_LOADER_METADATA_LOADED
True means the group was loaded from loader
|
static String |
ATTRIBUTE_LOADER_ACTION_QUERY
SQL query with at least the following column: action_name
|
static String |
ATTRIBUTE_LOADER_ACTION_SET_QUERY
SQL query with at least the following columns: if_has_action_name, then_has_action_name
|
static String |
ATTRIBUTE_LOADER_ATTR_QUERY
SQL query with at least some of the following columns: attr_name, attr_display_name, attr_description
|
static String |
ATTRIBUTE_LOADER_ATTR_SET_QUERY
SQL query with at least the following columns: if_has_attr_name, then_has_attr_name
|
static String |
ATTRIBUTE_LOADER_ATTRS_LIKE
If empty, then orphans will be left alone (for attributeDefName and attributeDefNameSets).
|
static String |
ATTRIBUTE_LOADER_DB_NAME
DB name in grouper-loader.properties or default grouper db if blank
|
static String |
ATTRIBUTE_LOADER_INTERVAL_SECONDS
If a START_TO_START_INTERVAL schedule type, this is the number of seconds between runs
|
static 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 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 String |
ATTRIBUTE_LOADER_SCHEDULE_TYPE
Type of schedule.
|
static String |
ATTRIBUTE_LOADER_TYPE
Type of loader, e.g.
|
static String |
GROUPER_LOADER_AND_GROUPS
groups to and with to restrict members (e.g.
|
static String |
GROUPER_LOADER_DB_NAME
group attribute name of the db connection where this query comes from.
|
static String |
GROUPER_LOADER_DISPLAY_NAME_SYNC_BASE_FOLDER_NAME
folder name after which display names need to be synced between source and grouper
|
static String |
GROUPER_LOADER_DISPLAY_NAME_SYNC_LEVELS
levels starting from the group after which display names need to be synced between source and grouper
|
static String |
GROUPER_LOADER_DISPLAY_NAME_SYNC_TYPE
grouper loader display name sync type.
|
static String |
GROUPER_LOADER_GROUP_QUERY
optional group information for a group list query: e.g.
|
static String |
GROUPER_LOADER_GROUP_TYPES
types to add to loaded groups
|
static 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.
|
static String |
GROUPER_LOADER_INTERVAL_SECONDS
group attribute name of the interval in seconds for a schedule type like START_TO_START_INTERVAL.
|
static String |
GROUPER_LOADER_PRIORITY
group attribute name of priority of job, optional, if not there, will be 5.
|
static String |
GROUPER_LOADER_QUARTZ_CRON
group attribute name of quartz cron-like string to describe when the job should run
|
static String |
GROUPER_LOADER_QUERY
group attribute name of query, must have the required columns for the grouperLoaderType
|
static String |
GROUPER_LOADER_SCHEDULE_TYPE
group attribute name of type of schedule, must match one of the enums in GrouperLoaderScheduleType.
|
static String |
GROUPER_LOADER_TYPE
group attribute name of type of the loader, must match one of the enums in GrouperLoaderType.
|
static String |
LOADER_METADATA_VALUE_DEF
name of the loader metadata definition
|
Constructor and Description |
---|
GrouperLoader() |
Modifier and Type | Method and Description |
---|---|
static Hib3GrouperLoaderLog |
_internal_runJobOnceForAttributeDef(GrouperSession grouperSession,
AttributeDef attributeDef) |
static String |
dryRunJobOnceForGroup(GrouperSession grouperSession,
Group group,
String fileName) |
static void |
dryRunWriteLine(String line) |
static void |
internal_assignThreadLocalGrouperLoaderDryRun(GrouperLoader.GrouperLoaderDryRunBean theThreadLocalGrouperLoaderDryRun) |
static Date |
internal_getJobStartTimeIfRunning(String jobName) |
static GrouperLoader.GrouperLoaderDryRunBean |
internal_retrieveThreadLocalGrouperLoaderDryRun() |
static boolean |
isDryRun() |
static boolean |
isJobEnabled(String jobName) |
static boolean |
isJobRunning(String jobName) |
static void |
main(String[] args) |
static void |
printAllSupportDdlUtilsPlatforms()
print out all ddlutils platforms
|
static String |
runJobOnceForAttributeDef(GrouperSession grouperSession,
AttributeDef attributeDef) |
static String |
runJobOnceForGroup(GrouperSession grouperSession,
Group group) |
static String |
runJobOnceForGroup(GrouperSession grouperSession,
Group group,
boolean runOnDaemon) |
static String |
runOnceByJobName(GrouperSession grouperSession,
String jobName) |
static String |
runOnceByJobName(GrouperSession grouperSession,
String jobName,
boolean runOnDaemon) |
static boolean |
scheduleBuiltinMessagingDaemonJob()
schedule enabled/disabled job
|
static int |
scheduleChangeLogConsumers()
schedule change log consumer jobs
|
static int |
scheduleChangeLogJobs()
schedule change log jobs
|
static boolean |
scheduleChangeLogTempToChangeLogJob()
schedule maintenance job for moving records from change log to change log temp
|
static boolean |
scheduleDailyReportJob()
schedule maintenance job
|
static boolean |
scheduleEnabledDisabledJob()
schedule enabled/disabled job
|
static int |
scheduleEsbListenerJobs() |
static void |
scheduleExternalSubjCalcFieldsJob()
schedule external subject subj calc fields
|
static int |
scheduleGroupSyncJobs()
schedule rules job
|
static boolean |
scheduleJobIfNeeded(org.quartz.JobDetail jobDetail,
org.quartz.Trigger trigger)
Schedule job if new or something has changed
|
static int |
scheduleJobs() |
static boolean |
scheduleLogCleanerJob()
schedule maintenance job
|
static int |
scheduleMaintenanceJobs()
schedule maintenance jobs
|
static int |
scheduleMessagingListeners()
schedule messaging listener jobs
|
static int |
scheduleOtherJobs()
schedule other jobs
|
static boolean |
schedulePspFullSyncJob()
schedule psp full sync job
|
static org.quartz.SchedulerFactory |
schedulerFactory()
lazy load (and start the scheduler) the scheduler factory
|
static boolean |
scheduleRulesJob()
schedule rules job
|
static void |
shutdownIfStarted()
call this when exiting grouper if not the daemon which should stay running
|
public static final String GROUPER_LOADER_TYPE
public static final String GROUPER_LOADER_DISPLAY_NAME_SYNC_TYPE
public static final String GROUPER_LOADER_DISPLAY_NAME_SYNC_BASE_FOLDER_NAME
public static final String GROUPER_LOADER_DISPLAY_NAME_SYNC_LEVELS
public static final String GROUPER_LOADER_AND_GROUPS
public static final String GROUPER_LOADER_GROUPS_LIKE
public static final String GROUPER_LOADER_GROUP_QUERY
public static final String GROUPER_LOADER_GROUP_TYPES
public static final String GROUPER_LOADER_SCHEDULE_TYPE
public static final String GROUPER_LOADER_QUERY
public static final String GROUPER_LOADER_QUARTZ_CRON
public static final String GROUPER_LOADER_INTERVAL_SECONDS
public static final String GROUPER_LOADER_PRIORITY
public static final String GROUPER_LOADER_DB_NAME
public static final String ATTRIBUTE_LOADER_TYPE
public static final String ATTRIBUTE_LOADER_DB_NAME
public static final String ATTRIBUTE_LOADER_SCHEDULE_TYPE
public static final String ATTRIBUTE_LOADER_QUARTZ_CRON
public static final String ATTRIBUTE_LOADER_INTERVAL_SECONDS
public static final String ATTRIBUTE_LOADER_PRIORITY
public static final String ATTRIBUTE_LOADER_ATTRS_LIKE
public static final String ATTRIBUTE_LOADER_ATTR_QUERY
public static final String ATTRIBUTE_LOADER_ATTR_SET_QUERY
public static final String ATTRIBUTE_LOADER_ACTION_QUERY
public static final String ATTRIBUTE_LOADER_ACTION_SET_QUERY
public static final String ATTRIBUTE_GROUPER_LOADER_METADATA_LOADED
@Deprecated public static final String ATTRIBUTE_GROUPER_LOADER_METADATA_LAODED
public static final String ATTRIBUTE_GROUPER_LOADER_METADATA_GROUP_ID
public static final String ATTRIBUTE_GROUPER_LOADER_METADATA_LAST_FULL_MILLIS
public static final String ATTRIBUTE_GROUPER_LOADER_METADATA_LAST_INCREMENTAL_MILLIS
public static final String ATTRIBUTE_GROUPER_LOADER_METADATA_LAST_SUMMARY
public static final String LOADER_METADATA_VALUE_DEF
public static void shutdownIfStarted()
public static void main(String[] args)
args
- public static int scheduleJobs()
public static void printAllSupportDdlUtilsPlatforms()
public static org.quartz.SchedulerFactory schedulerFactory()
public static int scheduleMaintenanceJobs()
public static int scheduleChangeLogJobs()
public static boolean scheduleChangeLogTempToChangeLogJob()
public static int scheduleChangeLogConsumers()
public static int scheduleMessagingListeners()
public static int scheduleOtherJobs()
public static boolean scheduleDailyReportJob()
public static boolean scheduleRulesJob()
public static boolean scheduleEnabledDisabledJob()
public static boolean scheduleBuiltinMessagingDaemonJob()
public static void scheduleExternalSubjCalcFieldsJob()
public static boolean scheduleLogCleanerJob()
public static int scheduleEsbListenerJobs()
public static String runJobOnceForGroup(GrouperSession grouperSession, Group group)
group
- grouperSession
- public static String runJobOnceForGroup(GrouperSession grouperSession, Group group, boolean runOnDaemon)
group
- grouperSession
- runOnDaemon
- public static String runOnceByJobName(GrouperSession grouperSession, String jobName)
grouperSession
- jobName
- public static String runOnceByJobName(GrouperSession grouperSession, String jobName, boolean runOnDaemon)
grouperSession
- jobName
- runOnDaemon
- public static Hib3GrouperLoaderLog _internal_runJobOnceForAttributeDef(GrouperSession grouperSession, AttributeDef attributeDef)
attributeDef
- grouperSession
- public static String runJobOnceForAttributeDef(GrouperSession grouperSession, AttributeDef attributeDef)
attributeDef
- grouperSession
- public static int scheduleGroupSyncJobs()
public static boolean schedulePspFullSyncJob()
public static GrouperLoader.GrouperLoaderDryRunBean internal_retrieveThreadLocalGrouperLoaderDryRun()
public static void internal_assignThreadLocalGrouperLoaderDryRun(GrouperLoader.GrouperLoaderDryRunBean theThreadLocalGrouperLoaderDryRun)
theThreadLocalGrouperLoaderDryRun
- the threadLocalGrouperLoaderDryRun to setpublic static String dryRunJobOnceForGroup(GrouperSession grouperSession, Group group, String fileName)
group
- grouperSession
- fileName
- is the file where output should gopublic static boolean isDryRun()
public static void dryRunWriteLine(String line)
line
- public static boolean scheduleJobIfNeeded(org.quartz.JobDetail jobDetail, org.quartz.Trigger trigger) throws org.quartz.SchedulerException
jobDetail
- trigger
- org.quartz.SchedulerException
public static boolean isJobRunning(String jobName)
jobName
- public static Date internal_getJobStartTimeIfRunning(String jobName)
jobName
- public static boolean isJobEnabled(String jobName)
jobName
- Copyright © 2016 Internet2. All rights reserved.