Class Hib3GrouperLoaderLog

java.lang.Object
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 Details

  • Constructor Details

    • Hib3GrouperLoaderLog

      public Hib3GrouperLoaderLog()
      default constructor
  • Method Details

    • retrieveMostRecentLog

      public static Hib3GrouperLoaderLog retrieveMostRecentLog(String jobName)
      Parameters:
      jobName -
      Returns:
      the most recent
    • getJobMessageDb

      public String getJobMessageDb()
    • setJobMessageDb

      public void setJobMessageDb(String jobMessageDb)
    • getContextId

      public String getContextId()
    • setContextId

      public void setContextId(String contextId)
    • 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, GrouperLoaderStatus
      Returns:
      the status
    • getStatusEnum

      public GrouperLoaderStatus getStatusEnum()
    • setStatus

      public void setStatus(String status1)
      STARTED, SUCCESS, ERROR, WARNING, GrouperLoaderStatus
      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 GrouperLoaderType
      Returns:
      the jobType
    • setJobType

      public void setJobType(String jobType1)
      enum value from GrouperLoaderType
      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
    • getJobMessageStringBuilder

      public StringBuilder getJobMessageStringBuilder()
      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 -
    • getJobMessageBytes

      public Long getJobMessageBytes()
      size of job message in bytes
      Returns:
      bytes
    • setJobMessageBytes

      public void setJobMessageBytes(Long jobMessageBytes)
      size of job message in bytes
      Parameters:
      jobMessageBytes -
    • getJobMessageClob

      public String getJobMessageClob()
      Returns:
    • setJobMessageClob

      public void setJobMessageClob(String jobMessageClob)
      Parameters:
      jobMessageClob -
    • 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
    • hasRecentDaemonSchedulerCheck

      public static boolean hasRecentDaemonSchedulerCheck()
      Returns:
      true if ok with scheduler check
    • 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:
    • onPostSave

      public void onPostSave(HibernateSession hibernateSession)
      Description copied from interface: HibGrouperLifecycle
      after a save (insert) occurs
      Specified by:
      onPostSave in interface HibGrouperLifecycle
      See Also:
    • onPostUpdate

      public void onPostUpdate(HibernateSession hibernateSession)
      Description copied from interface: HibGrouperLifecycle
      after an update occurs
      Specified by:
      onPostUpdate in interface HibGrouperLifecycle
      See Also:
    • onPreDelete

      public void onPreDelete(HibernateSession hibernateSession)
      Description copied from interface: HibGrouperLifecycle
      before a delete (insert) occurs
      Specified by:
      onPreDelete in interface HibGrouperLifecycle
      See Also:
    • onPreSave

      public void onPreSave(HibernateSession hibernateSession)
      Description copied from interface: HibGrouperLifecycle
      before a save (insert) occurs
      Specified by:
      onPreSave in interface HibGrouperLifecycle
      See Also:
    • onPreUpdate

      public void onPreUpdate(HibernateSession hibernateSession)
      Description copied from interface: HibGrouperLifecycle
      before an update occurs
      Specified by:
      onPreUpdate in interface HibGrouperLifecycle
      See Also:
    • reset

      public static void reset(HibernateSession hibernateSession)
      Parameters:
      hibernateSession -