edu.internet2.middleware.grouper.app.loader.db
Class Hib3GrouperLoaderLog

java.lang.Object
  extended by edu.internet2.middleware.grouper.app.loader.db.Hib3GrouperLoaderLog
All Implemented Interfaces:
HibGrouperLifecycle

public class Hib3GrouperLoaderLog
extends Object
implements HibGrouperLifecycle

maps to the grouper ddl table


Field Summary
static String COLUMN_CONTEXT_ID
           
static String TABLE_GROUPER_LOADER_LOG
           
 
Constructor Summary
Hib3GrouperLoaderLog()
          default constructor
 
Method Summary
 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
 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 GrouperLoaderJobType
 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, GrouerLoaderStatus
 Integer getTotalCount()
          number of records total (e.g.
 Integer getUnresolvableSubjectCount()
          number of subjects which arent resolvable via source
 Integer getUpdateCount()
          number of records updated
 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
 void setAndGroupNames(String andGroupNames1)
          if this is anded with other groups, these are the names
 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 GrouperLoaderJobType
 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, GrouerLoaderStatus
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLE_GROUPER_LOADER_LOG

public static final String TABLE_GROUPER_LOADER_LOG
See Also:
Constant Field Values

COLUMN_CONTEXT_ID

public static final String COLUMN_CONTEXT_ID
See Also:
Constant Field Values
Constructor Detail

Hib3GrouperLoaderLog

public Hib3GrouperLoaderLog()
default constructor

Method Detail

getAndGroupNames

public String getAndGroupNames()
if this is anded with other groups, these are the names

Returns:
the andGroupNames

setAndGroupNames

public void setAndGroupNames(String andGroupNames1)
if this is anded with other groups, these are the names

Parameters:
andGroupNames1 - the andGroupNames to set

addTotalCount

public void addTotalCount(Integer add)
add to totalCount

Parameters:
add -

addDeleteCount

public void addDeleteCount(Integer add)
add to deleteCount

Parameters:
add -

addUpdateCount

public void addUpdateCount(Integer add)
add to updateCount

Parameters:
add -

addInsertCount

public void addInsertCount(Integer add)
add to insertCount

Parameters:
add -

addUnresolvableSubjectCount

public void addUnresolvableSubjectCount(int add)
add to unresolvable subjectCount

Parameters:
add -

getParentJobName

public String getParentJobName()
if this is a subjob of another job, then put the parent job name here

Returns:
the parentJobName

setParentJobName

public void setParentJobName(String parentJobName1)
if this is a subjob of another job, then put the parent job name here

Parameters:
parentJobName1 - the parentJobName to set

getParentJobId

public String getParentJobId()
if this is a subjob of another job, then put the parent job id here

Returns:
the parentJobId

setParentJobId

public void setParentJobId(String parentJobId1)
if this is a subjob of another job, then put the parent job id here

Parameters:
parentJobId1 - the parentJobId to set

getTotalCount

public Integer getTotalCount()
number of records total (e.g. size of group)

Returns:
the totalCount

setTotalCount

public void setTotalCount(Integer totalCount1)
number of records total (e.g. size of group)

Parameters:
totalCount1 - the totalCount to set

getInsertCount

public Integer getInsertCount()
number of records inserted

Returns:
the insertCount

setInsertCount

public void setInsertCount(Integer insertCount1)
number of records inserted

Parameters:
insertCount1 - the insertCount to set

getUpdateCount

public Integer getUpdateCount()
number of records updated

Returns:
the updateCount

setUpdateCount

public void setUpdateCount(Integer updateCount1)
number of records updated

Parameters:
updateCount1 - the updateCount to set

getDeleteCount

public Integer getDeleteCount()
number of records deleted

Returns:
the deleteCount

setDeleteCount

public void setDeleteCount(Integer deleteCount1)
number of records deleted

Parameters:
deleteCount1 - the deleteCount to set

getUnresolvableSubjectCount

public Integer getUnresolvableSubjectCount()
number of subjects which arent resolvable via source

Returns:
the unresolvableSubjectCount

setUnresolvableSubjectCount

public void setUnresolvableSubjectCount(Integer unresolvableSubjectCount1)
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

public String getId()
uuid for the row so hib knows insert vs update

Returns:
the id

setId

public void setId(String id1)
uuid for the row so hib knows insert vs update

Parameters:
id1 - the id to set

getJobName

public String getJobName()
job that ran in loader, might have group name in it

Returns:
the jobName

setJobName

public void setJobName(String jobName1)
job that ran in loader, might have group name in it

Parameters:
jobName1 - the jobName to set

getStatus

public String getStatus()
STARTED, SUCCESS, ERROR, WARNING, GrouerLoaderStatus

Returns:
the status

setStatus

public void setStatus(String status1)
STARTED, SUCCESS, ERROR, WARNING, GrouerLoaderStatus

Parameters:
status1 - the status to set

getStartedTime

public Timestamp getStartedTime()
when the job started

Returns:
the startedTime

setStartedTime

public void setStartedTime(Timestamp startedTime1)
when the job started

Parameters:
startedTime1 - the startedTime to set

getEndedTime

public Timestamp getEndedTime()
when the job ended (if it is SUCCESS or ERROR)

Returns:
the endedTime

setEndedTime

public void setEndedTime(Timestamp endedTime1)
when the job ended (if it is SUCCESS or ERROR)

Parameters:
endedTime1 - the endedTime to set

getMillis

public Integer getMillis()
how long the job took

Returns:
the millis

setMillis

public void setMillis(Integer millis1)
how long the job took

Parameters:
millis1 - the millis to set

getMillisGetData

public Integer getMillisGetData()
if this job gets and loads data, this is the get data part

Returns:
the millisGetData

setMillisGetData

public void setMillisGetData(Integer millisGetData1)
if this job gets and loads data, this is the get data part

Parameters:
millisGetData1 - the millisGetData to set

getMillisLoadData

public Integer getMillisLoadData()
if this job gets and loads data, this is the load data part

Returns:
the millisLoadData

setMillisLoadData

public void setMillisLoadData(Integer millisLoadData1)
if this job gets and loads data, this is the load data part

Parameters:
millisLoadData1 - the millisLoadData to set

getJobType

public String getJobType()
enum value from GrouperLoaderJobType

Returns:
the jobType

setJobType

public void setJobType(String jobType1)
enum value from GrouperLoaderJobType

Parameters:
jobType1 - the jobType to set

getJobScheduleType

public String getJobScheduleType()
enum value from GrouperLoaderJobScheduleType

Returns:
the jobScheduleType

setJobScheduleType

public void setJobScheduleType(String jobScheduleType1)
enum value from GrouperLoaderJobScheduleType

Parameters:
jobScheduleType1 - the jobScheduleType to set

getJobDescription

public String getJobDescription()
job description (more info than fields in this class

Returns:
the jobDescription

setJobDescription

public void setJobDescription(String jobDescription1)
job description (more info than fields in this class

Parameters:
jobDescription1 - the jobDescription to set

getJobMessage

public String getJobMessage()
could be an error or success message. might include partial stacktraces

Returns:
the jobMessage

appendJobMessage

public void appendJobMessage(String messageFragment)
could be an error or success message. might include partial stacktraces

Parameters:
messageFragment -

insertJobMessage

public void insertJobMessage(String messageFragment)
could be an error or success message. might include partial stacktraces. insert at beginning

Parameters:
messageFragment -

setJobMessage

public void setJobMessage(String jobMessage1)
could be an error or success message. might include partial stacktraces

Parameters:
jobMessage1 - the jobMessage to set

getHost

public String getHost()
host that the loader is running on

Returns:
the host

setHost

public void setHost(String host1)
host that the loader is running on

Parameters:
host1 - the host to set

getGroupNameFromJobName

public String getGroupNameFromJobName()
get group name from job name

Returns:
group name

getGroupUuid

public String getGroupUuid()
if this is a group related job, then this is the group uuid

Returns:
the groupUuid

setGroupUuid

public void setGroupUuid(String groupUuid1)
if this is a group related job, then this is the group uuid

Parameters:
groupUuid1 - the groupUuid to set

getJobScheduleQuartzCron

public String getJobScheduleQuartzCron()
quartz cron setting string

Returns:
the jobScheduleQuartzCron

setJobScheduleQuartzCron

public void setJobScheduleQuartzCron(String jobScheduleQuartzCron1)
quartz cron setting string

Parameters:
jobScheduleQuartzCron1 - the jobScheduleQuartzCron to set

getJobScheduleIntervalSeconds

public Integer getJobScheduleIntervalSeconds()
if the schedule is periodic, then this is the seconds in between

Returns:
the jobScheduleIntervalSeconds

setJobScheduleIntervalSeconds

public void setJobScheduleIntervalSeconds(Integer jobScheduleIntervalSeconds1)
if the schedule is periodic, then this is the seconds in between

Parameters:
jobScheduleIntervalSeconds1 - the jobScheduleIntervalSeconds to set

getJobSchedulePriority

public Integer 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

setJobSchedulePriority

public void setJobSchedulePriority(Integer priority1)
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

public Timestamp getLastUpdated()
when the record was last updated

Returns:
the lastUpdated

setLastUpdated

public void setLastUpdated(Timestamp lastUpdated1)
when the record was last updated

Parameters:
lastUpdated1 - the lastUpdated to set

onPostDelete

public void onPostDelete(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
after a delete occurs

Specified by:
onPostDelete in interface HibGrouperLifecycle
See Also:
HibGrouperLifecycle.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)

onPostSave

public void onPostSave(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
after a save (insert) occurs

Specified by:
onPostSave in interface HibGrouperLifecycle
See Also:
HibGrouperLifecycle.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)

onPostUpdate

public void onPostUpdate(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
after an update occurs

Specified by:
onPostUpdate in interface HibGrouperLifecycle
See Also:
HibGrouperLifecycle.onPostUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)

onPreDelete

public void onPreDelete(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
before a delete (insert) occurs

Specified by:
onPreDelete in interface HibGrouperLifecycle
See Also:
HibGrouperLifecycle.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)

onPreSave

public void onPreSave(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
before a save (insert) occurs

Specified by:
onPreSave in interface HibGrouperLifecycle
See Also:
HibGrouperLifecycle.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)

onPreUpdate

public void onPreUpdate(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
before an update occurs

Specified by:
onPreUpdate in interface HibGrouperLifecycle
See Also:
HibGrouperLifecycle.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)