public class Hib3GrouperLoaderLog extends Object implements HibGrouperLifecycle
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_CONTEXT_ID |
static String |
TABLE_GROUPER_LOADER_LOG |
Constructor and Description |
---|
Hib3GrouperLoaderLog()
default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addDeleteCount(Integer add)
add to deleteCount
|
void |
addInsertCount(Integer add)
add to insertCount
|
void |
addTotalCount(Integer add)
add to totalCount
|
void |
addUnresolvableSubjectCount(int add)
add to unresolvable subjectCount
|
void |
addUpdateCount(Integer add)
add to updateCount
|
void |
appendJobMessage(String messageFragment)
could be an error or success message.
|
String |
getAndGroupNames()
if this is anded with other groups, these are the names
|
String |
getContextId() |
Integer |
getDeleteCount()
number of records deleted
|
Timestamp |
getEndedTime()
when the job ended (if it is SUCCESS or ERROR)
|
String |
getGroupNameFromJobName()
get group name from job name
|
String |
getGroupUuid()
if this is a group related job, then this is the group uuid
|
String |
getHost()
host that the loader is running on
|
String |
getId()
uuid for the row so hib knows insert vs update
|
Integer |
getInsertCount()
number of records inserted
|
String |
getJobDescription()
job description (more info than fields in this class
|
String |
getJobMessage()
could be an error or success message.
|
String |
getJobName()
job that ran in loader, might have group name in it
|
Integer |
getJobScheduleIntervalSeconds()
if the schedule is periodic, then this is the seconds in between
|
Integer |
getJobSchedulePriority()
if the quartz threadpool is exhausted, and many jobs are up for scheduling, then
the highest priority will win.
|
String |
getJobScheduleQuartzCron()
quartz cron setting string
|
String |
getJobScheduleType()
enum value from GrouperLoaderJobScheduleType
|
String |
getJobType()
enum value from GrouperLoaderType
|
Timestamp |
getLastUpdated()
when the record was last updated
|
Integer |
getMillis()
how long the job took
|
Integer |
getMillisGetData()
if this job gets and loads data, this is the get data part
|
Integer |
getMillisLoadData()
if this job gets and loads data, this is the load data part
|
String |
getParentJobId()
if this is a subjob of another job, then put the parent job id here
|
String |
getParentJobName()
if this is a subjob of another job, then put the parent job name here
|
Timestamp |
getStartedTime()
when the job started
|
String |
getStatus()
STARTED, SUCCESS, ERROR, WARNING, GrouperLoaderStatus
|
Integer |
getTotalCount()
number of records total (e.g.
|
Integer |
getUnresolvableSubjectCount()
number of subjects which arent resolvable via source
|
Integer |
getUpdateCount()
number of records updated
|
static boolean |
hasRecentDaemonSchedulerCheck() |
void |
incrementUnresolvableSubjectCount()
increment number of subjects which arent resolvable via source
|
void |
insertJobMessage(String messageFragment)
could be an error or success message.
|
void |
onPostDelete(HibernateSession hibernateSession)
after a delete occurs
|
void |
onPostSave(HibernateSession hibernateSession)
after a save (insert) occurs
|
void |
onPostUpdate(HibernateSession hibernateSession)
after an update occurs
|
void |
onPreDelete(HibernateSession hibernateSession)
before a delete (insert) occurs
|
void |
onPreSave(HibernateSession hibernateSession)
before a save (insert) occurs
|
void |
onPreUpdate(HibernateSession hibernateSession)
before an update occurs
|
static Hib3GrouperLoaderLog |
retrieveMostRecentLog(String jobName) |
void |
setAndGroupNames(String andGroupNames1)
if this is anded with other groups, these are the names
|
void |
setContextId(String contextId) |
void |
setDeleteCount(Integer deleteCount1)
number of records deleted
|
void |
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 uuid
|
void |
setHost(String host1)
host that the loader is running on
|
void |
setId(String id1)
uuid for the row so hib knows insert vs update
|
void |
setInsertCount(Integer insertCount1)
number of records inserted
|
void |
setJobDescription(String jobDescription1)
job description (more info than fields in this class
|
void |
setJobMessage(String jobMessage1)
could be an error or success message.
|
void |
setJobName(String jobName1)
job that ran in loader, might have group name in it
|
void |
setJobScheduleIntervalSeconds(Integer jobScheduleIntervalSeconds1)
if the schedule is periodic, then this is the seconds in between
|
void |
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 string
|
void |
setJobScheduleType(String jobScheduleType1)
enum value from GrouperLoaderJobScheduleType
|
void |
setJobType(String jobType1)
enum value from GrouperLoaderType
|
void |
setLastUpdated(Timestamp lastUpdated1)
when the record was last updated
|
void |
setMillis(Integer millis1)
how long the job took
|
void |
setMillisGetData(Integer millisGetData1)
if this job gets and loads data, this is the get data part
|
void |
setMillisLoadData(Integer millisLoadData1)
if this job gets and loads data, this is the load data part
|
void |
setParentJobId(String parentJobId1)
if this is a subjob of another job, then put the parent job id here
|
void |
setParentJobName(String parentJobName1)
if this is a subjob of another job, then put the parent job name here
|
void |
setStartedTime(Timestamp startedTime1)
when the job started
|
void |
setStatus(String status1)
STARTED, SUCCESS, ERROR, WARNING, GrouperLoaderStatus
|
void |
setTotalCount(Integer totalCount1)
number of records total (e.g.
|
void |
setUnresolvableSubjectCount(Integer unresolvableSubjectCount1)
number of subjects which arent resolvable via source
|
void |
setUpdateCount(Integer updateCount1)
number of records updated
|
void |
store()
truncate the fields if needed and store to db
|
void |
truncate()
make sure this object will fit in the DB
|
public static final String TABLE_GROUPER_LOADER_LOG
public static final String COLUMN_CONTEXT_ID
public static Hib3GrouperLoaderLog retrieveMostRecentLog(String jobName)
jobName
- public String getContextId()
public void setContextId(String contextId)
public String getAndGroupNames()
public void setAndGroupNames(String andGroupNames1)
andGroupNames1
- the andGroupNames to setpublic void addTotalCount(Integer add)
add
- public void addDeleteCount(Integer add)
add
- public void addUpdateCount(Integer add)
add
- public void addInsertCount(Integer add)
add
- public void addUnresolvableSubjectCount(int add)
add
- public String getParentJobName()
public void setParentJobName(String parentJobName1)
parentJobName1
- the parentJobName to setpublic String getParentJobId()
public void setParentJobId(String parentJobId1)
parentJobId1
- the parentJobId to setpublic Integer getTotalCount()
public void setTotalCount(Integer totalCount1)
totalCount1
- the totalCount to setpublic Integer getInsertCount()
public void setInsertCount(Integer insertCount1)
insertCount1
- the insertCount to setpublic Integer getUpdateCount()
public void setUpdateCount(Integer updateCount1)
updateCount1
- the updateCount to setpublic Integer getDeleteCount()
public void setDeleteCount(Integer deleteCount1)
deleteCount1
- the deleteCount to setpublic Integer getUnresolvableSubjectCount()
public void setUnresolvableSubjectCount(Integer unresolvableSubjectCount1)
unresolvableSubjectCount1
- the unresolvableSubjectCount to setpublic void incrementUnresolvableSubjectCount()
public String getId()
public void setId(String id1)
id1
- the id to setpublic String getJobName()
public void setJobName(String jobName1)
jobName1
- the jobName to setpublic String getStatus()
public void setStatus(String status1)
status1
- the status to setpublic Timestamp getStartedTime()
public void setStartedTime(Timestamp startedTime1)
startedTime1
- the startedTime to setpublic Timestamp getEndedTime()
public void setEndedTime(Timestamp endedTime1)
endedTime1
- the endedTime to setpublic Integer getMillis()
public void setMillis(Integer millis1)
millis1
- the millis to setpublic Integer getMillisGetData()
public void setMillisGetData(Integer millisGetData1)
millisGetData1
- the millisGetData to setpublic Integer getMillisLoadData()
public void setMillisLoadData(Integer millisLoadData1)
millisLoadData1
- the millisLoadData to setpublic String getJobType()
public void setJobType(String jobType1)
jobType1
- the jobType to setpublic String getJobScheduleType()
public void setJobScheduleType(String jobScheduleType1)
jobScheduleType1
- the jobScheduleType to setpublic String getJobDescription()
public void setJobDescription(String jobDescription1)
jobDescription1
- the jobDescription to setpublic String getJobMessage()
public void appendJobMessage(String messageFragment)
messageFragment
- public void insertJobMessage(String messageFragment)
messageFragment
- public void setJobMessage(String jobMessage1)
jobMessage1
- the jobMessage to setpublic String getHost()
public void setHost(String host1)
host1
- the host to setpublic String getGroupNameFromJobName()
public String getGroupUuid()
public void setGroupUuid(String groupUuid1)
groupUuid1
- the groupUuid to setpublic String getJobScheduleQuartzCron()
public void setJobScheduleQuartzCron(String jobScheduleQuartzCron1)
jobScheduleQuartzCron1
- the jobScheduleQuartzCron to setpublic Integer getJobScheduleIntervalSeconds()
public void setJobScheduleIntervalSeconds(Integer jobScheduleIntervalSeconds1)
jobScheduleIntervalSeconds1
- the jobScheduleIntervalSeconds to setpublic Integer getJobSchedulePriority()
public static boolean hasRecentDaemonSchedulerCheck()
public void setJobSchedulePriority(Integer priority1)
priority1
- the priority to setpublic void truncate()
public void store()
public Timestamp getLastUpdated()
public void setLastUpdated(Timestamp lastUpdated1)
lastUpdated1
- the lastUpdated to setpublic void onPostDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostDelete
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostSave
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostUpdate
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPostUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreDelete
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
Copyright © 2016 Internet2. All rights reserved.