Class Hib3GrouperLoaderLog
java.lang.Object
edu.internet2.middleware.grouper.app.loader.db.Hib3GrouperLoaderLog
- All Implemented Interfaces:
HibGrouperLifecycle
maps to the grouper ddl table
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDeleteCount
(Integer add) add to deleteCountvoid
addInsertCount
(Integer add) add to insertCountvoid
addTotalCount
(Integer add) add to totalCountvoid
addUnresolvableSubjectCount
(int add) add to unresolvable subjectCountvoid
addUpdateCount
(Integer add) add to updateCountvoid
appendJobMessage
(String messageFragment) could be an error or success message.if this is anded with other groups, these are the namesnumber of records deletedwhen the job ended (if it is SUCCESS or ERROR)get group name from job nameif this is a group related job, then this is the group uuidgetHost()
host that the loader is running ongetId()
uuid for the row so hib knows insert vs updatenumber of records insertedjob description (more info than fields in this classcould be an error or success message.size of job message in bytescould be an error or success message.job that ran in loader, might have group name in itif the schedule is periodic, then this is the seconds in betweenif the quartz threadpool is exhausted, and many jobs are up for scheduling, then the highest priority will win.quartz cron setting stringenum value from GrouperLoaderJobScheduleTypeenum value from GrouperLoaderTypewhen the record was last updatedhow long the job tookif this job gets and loads data, this is the get data partif this job gets and loads data, this is the load data partif this is a subjob of another job, then put the parent job id hereif this is a subjob of another job, then put the parent job name herewhen the job startedSTARTED, SUCCESS, ERROR, WARNING, GrouperLoaderStatusnumber of records total (e.g.number of subjects which arent resolvable via sourcenumber of records updatedstatic boolean
void
increment number of subjects which arent resolvable via sourcevoid
insertJobMessage
(String messageFragment) could be an error or success message.void
onPostDelete
(HibernateSession hibernateSession) after a delete occursvoid
onPostSave
(HibernateSession hibernateSession) after a save (insert) occursvoid
onPostUpdate
(HibernateSession hibernateSession) after an update occursvoid
onPreDelete
(HibernateSession hibernateSession) before a delete (insert) occursvoid
onPreSave
(HibernateSession hibernateSession) before a save (insert) occursvoid
onPreUpdate
(HibernateSession hibernateSession) before an update occursstatic void
reset
(HibernateSession hibernateSession) static Hib3GrouperLoaderLog
retrieveMostRecentLog
(String jobName) void
setAndGroupNames
(String andGroupNames1) if this is anded with other groups, these are the namesvoid
setContextId
(String contextId) void
setDeleteCount
(Integer deleteCount1) number of records deletedvoid
setEndedTime
(Timestamp endedTime1) when the job ended (if it is SUCCESS or ERROR)void
setGroupUuid
(String groupUuid1) if this is a group related job, then this is the group uuidvoid
host that the loader is running onvoid
uuid for the row so hib knows insert vs updatevoid
setInsertCount
(Integer insertCount1) number of records insertedvoid
setJobDescription
(String jobDescription1) job description (more info than fields in this classvoid
setJobMessage
(String jobMessage1) could be an error or success message.void
setJobMessageBytes
(Long jobMessageBytes) size of job message in bytesvoid
setJobMessageClob
(String jobMessageClob) void
setJobMessageDb
(String jobMessageDb) void
setJobName
(String jobName1) job that ran in loader, might have group name in itvoid
setJobScheduleIntervalSeconds
(Integer jobScheduleIntervalSeconds1) if the schedule is periodic, then this is the seconds in betweenvoid
setJobSchedulePriority
(Integer priority1) if the quartz threadpool is exhausted, and many jobs are up for scheduling, then the highest priority will win.void
setJobScheduleQuartzCron
(String jobScheduleQuartzCron1) quartz cron setting stringvoid
setJobScheduleType
(String jobScheduleType1) enum value from GrouperLoaderJobScheduleTypevoid
setJobType
(String jobType1) enum value from GrouperLoaderTypevoid
setLastUpdated
(Timestamp lastUpdated1) when the record was last updatedvoid
how long the job tookvoid
setMillisGetData
(Integer millisGetData1) if this job gets and loads data, this is the get data partvoid
setMillisLoadData
(Integer millisLoadData1) if this job gets and loads data, this is the load data partvoid
setParentJobId
(String parentJobId1) if this is a subjob of another job, then put the parent job id herevoid
setParentJobName
(String parentJobName1) if this is a subjob of another job, then put the parent job name herevoid
setStartedTime
(Timestamp startedTime1) when the job startedvoid
STARTED, SUCCESS, ERROR, WARNING, GrouperLoaderStatusvoid
setTotalCount
(Integer totalCount1) number of records total (e.g.void
setUnresolvableSubjectCount
(Integer unresolvableSubjectCount1) number of subjects which arent resolvable via sourcevoid
setUpdateCount
(Integer updateCount1) number of records updatedvoid
store()
truncate the fields if needed and store to dbvoid
truncate()
make sure this object will fit in the DB
-
Field Details
-
TABLE_GROUPER_LOADER_LOG
- See Also:
-
COLUMN_CONTEXT_ID
- See Also:
-
COLUMN_JOB_MESSAGE_CLOB
- See Also:
-
COLUMN_JOB_MESSAGE_BYTES
- See Also:
-
-
Constructor Details
-
Hib3GrouperLoaderLog
public Hib3GrouperLoaderLog()default constructor
-
-
Method Details
-
retrieveMostRecentLog
- Parameters:
jobName
-- Returns:
- the most recent
-
getJobMessageDb
-
setJobMessageDb
-
getContextId
-
setContextId
-
getAndGroupNames
if this is anded with other groups, these are the names- Returns:
- the andGroupNames
-
setAndGroupNames
if this is anded with other groups, these are the names- Parameters:
andGroupNames1
- the andGroupNames to set
-
addTotalCount
add to totalCount- Parameters:
add
-
-
addDeleteCount
add to deleteCount- Parameters:
add
-
-
addUpdateCount
add to updateCount- Parameters:
add
-
-
addInsertCount
add to insertCount- Parameters:
add
-
-
addUnresolvableSubjectCount
public void addUnresolvableSubjectCount(int add) add to unresolvable subjectCount- Parameters:
add
-
-
getParentJobName
if this is a subjob of another job, then put the parent job name here- Returns:
- the parentJobName
-
setParentJobName
if this is a subjob of another job, then put the parent job name here- Parameters:
parentJobName1
- the parentJobName to set
-
getParentJobId
if this is a subjob of another job, then put the parent job id here- Returns:
- the parentJobId
-
setParentJobId
if this is a subjob of another job, then put the parent job id here- Parameters:
parentJobId1
- the parentJobId to set
-
getTotalCount
number of records total (e.g. size of group)- Returns:
- the totalCount
-
setTotalCount
number of records total (e.g. size of group)- Parameters:
totalCount1
- the totalCount to set
-
getInsertCount
number of records inserted- Returns:
- the insertCount
-
setInsertCount
number of records inserted- Parameters:
insertCount1
- the insertCount to set
-
getUpdateCount
number of records updated- Returns:
- the updateCount
-
setUpdateCount
number of records updated- Parameters:
updateCount1
- the updateCount to set
-
getDeleteCount
number of records deleted- Returns:
- the deleteCount
-
setDeleteCount
number of records deleted- Parameters:
deleteCount1
- the deleteCount to set
-
getUnresolvableSubjectCount
number of subjects which arent resolvable via source- Returns:
- the unresolvableSubjectCount
-
setUnresolvableSubjectCount
number of subjects which arent resolvable via source- Parameters:
unresolvableSubjectCount1
- the unresolvableSubjectCount to set
-
incrementUnresolvableSubjectCount
public void incrementUnresolvableSubjectCount()increment number of subjects which arent resolvable via source -
getId
uuid for the row so hib knows insert vs update- Returns:
- the id
-
setId
uuid for the row so hib knows insert vs update- Parameters:
id1
- the id to set
-
getJobName
job that ran in loader, might have group name in it- Returns:
- the jobName
-
setJobName
job that ran in loader, might have group name in it- Parameters:
jobName1
- the jobName to set
-
getStatus
STARTED, SUCCESS, ERROR, WARNING, GrouperLoaderStatus- Returns:
- the status
-
getStatusEnum
-
setStatus
STARTED, SUCCESS, ERROR, WARNING, GrouperLoaderStatus- Parameters:
status1
- the status to set
-
getStartedTime
when the job started- Returns:
- the startedTime
-
setStartedTime
when the job started- Parameters:
startedTime1
- the startedTime to set
-
getEndedTime
when the job ended (if it is SUCCESS or ERROR)- Returns:
- the endedTime
-
setEndedTime
when the job ended (if it is SUCCESS or ERROR)- Parameters:
endedTime1
- the endedTime to set
-
getMillis
how long the job took- Returns:
- the millis
-
setMillis
how long the job took- Parameters:
millis1
- the millis to set
-
getMillisGetData
if this job gets and loads data, this is the get data part- Returns:
- the millisGetData
-
setMillisGetData
if this job gets and loads data, this is the get data part- Parameters:
millisGetData1
- the millisGetData to set
-
getMillisLoadData
if this job gets and loads data, this is the load data part- Returns:
- the millisLoadData
-
setMillisLoadData
if this job gets and loads data, this is the load data part- Parameters:
millisLoadData1
- the millisLoadData to set
-
getJobType
enum value from GrouperLoaderType- Returns:
- the jobType
-
setJobType
enum value from GrouperLoaderType- Parameters:
jobType1
- the jobType to set
-
getJobScheduleType
enum value from GrouperLoaderJobScheduleType- Returns:
- the jobScheduleType
-
setJobScheduleType
enum value from GrouperLoaderJobScheduleType- Parameters:
jobScheduleType1
- the jobScheduleType to set
-
getJobDescription
job description (more info than fields in this class- Returns:
- the jobDescription
-
setJobDescription
job description (more info than fields in this class- Parameters:
jobDescription1
- the jobDescription to set
-
getJobMessage
could be an error or success message. might include partial stacktraces- Returns:
- the jobMessage
-
getJobMessageStringBuilder
could be an error or success message. might include partial stacktraces- Returns:
- the jobMessage
-
appendJobMessage
could be an error or success message. might include partial stacktraces- Parameters:
messageFragment
-
-
insertJobMessage
could be an error or success message. might include partial stacktraces. insert at beginning- Parameters:
messageFragment
-
-
getJobMessageBytes
size of job message in bytes- Returns:
- bytes
-
setJobMessageBytes
size of job message in bytes- Parameters:
jobMessageBytes
-
-
getJobMessageClob
- Returns:
-
setJobMessageClob
- Parameters:
jobMessageClob
-
-
setJobMessage
could be an error or success message. might include partial stacktraces- Parameters:
jobMessage1
- the jobMessage to set
-
getHost
host that the loader is running on- Returns:
- the host
-
setHost
host that the loader is running on- Parameters:
host1
- the host to set
-
getGroupNameFromJobName
get group name from job name- Returns:
- group name
-
getGroupUuid
if this is a group related job, then this is the group uuid- Returns:
- the groupUuid
-
setGroupUuid
if this is a group related job, then this is the group uuid- Parameters:
groupUuid1
- the groupUuid to set
-
getJobScheduleQuartzCron
quartz cron setting string- Returns:
- the jobScheduleQuartzCron
-
setJobScheduleQuartzCron
quartz cron setting string- Parameters:
jobScheduleQuartzCron1
- the jobScheduleQuartzCron to set
-
getJobScheduleIntervalSeconds
if the schedule is periodic, then this is the seconds in between- Returns:
- the jobScheduleIntervalSeconds
-
setJobScheduleIntervalSeconds
if the schedule is periodic, then this is the seconds in between- Parameters:
jobScheduleIntervalSeconds1
- the jobScheduleIntervalSeconds to set
-
getJobSchedulePriority
if the quartz threadpool is exhausted, and many jobs are up for scheduling, then the highest priority will win. Default is 5 if not entered.- Returns:
- the priority
-
hasRecentDaemonSchedulerCheck
public static boolean hasRecentDaemonSchedulerCheck()- Returns:
- true if ok with scheduler check
-
setJobSchedulePriority
if the quartz threadpool is exhausted, and many jobs are up for scheduling, then the highest priority will win. Default is 5 if not entered.- Parameters:
priority1
- the priority to set
-
truncate
public void truncate()make sure this object will fit in the DB -
store
public void store()truncate the fields if needed and store to db -
getLastUpdated
when the record was last updated- Returns:
- the lastUpdated
-
setLastUpdated
when the record was last updated- Parameters:
lastUpdated1
- the lastUpdated to set
-
onPostDelete
Description copied from interface:HibGrouperLifecycle
after a delete occurs- Specified by:
onPostDelete
in interfaceHibGrouperLifecycle
- See Also:
-
onPostSave
Description copied from interface:HibGrouperLifecycle
after a save (insert) occurs- Specified by:
onPostSave
in interfaceHibGrouperLifecycle
- See Also:
-
onPostUpdate
Description copied from interface:HibGrouperLifecycle
after an update occurs- Specified by:
onPostUpdate
in interfaceHibGrouperLifecycle
- See Also:
-
onPreDelete
Description copied from interface:HibGrouperLifecycle
before a delete (insert) occurs- Specified by:
onPreDelete
in interfaceHibGrouperLifecycle
- See Also:
-
onPreSave
Description copied from interface:HibGrouperLifecycle
before a save (insert) occurs- Specified by:
onPreSave
in interfaceHibGrouperLifecycle
- See Also:
-
onPreUpdate
Description copied from interface:HibGrouperLifecycle
before an update occurs- Specified by:
onPreUpdate
in interfaceHibGrouperLifecycle
- See Also:
-
reset
- Parameters:
hibernateSession
-
-