Class GcGrouperSyncHeartbeat

java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncHeartbeat

public class GcGrouperSyncHeartbeat extends Object
heartbeat and other logic for sync jobs
  • Constructor Details

    • GcGrouperSyncHeartbeat

      public GcGrouperSyncHeartbeat()
  • Method Details

    • isInterrupted

      public boolean isInterrupted()
      if this job is interrupted from another job, this communicates that out to callers check this while running
      Returns:
      if interrupted
    • isFullSync

      public boolean isFullSync()
      Returns:
      if full sync
    • setFullSync

      public void setFullSync(boolean fullSync1)
      Parameters:
      fullSync1 -
    • setDone

      public void setDone(boolean done1)
      if done, stop thread, set this from caller to say done
      Parameters:
      done1 -
    • getGcGrouperSyncJob

      public GcGrouperSyncJob getGcGrouperSyncJob()
      job
      Returns:
      job
    • setGcGrouperSyncJob

      public void setGcGrouperSyncJob(GcGrouperSyncJob gcGrouperSyncJob1)
      job
      Parameters:
      gcGrouperSyncJob1 -
    • runHeartbeatThread

      public void runHeartbeatThread()
    • getThread

      public Thread getThread()
      the thread
      Returns:
    • setThread

      public void setThread(Thread thread1)
      the thread
      Parameters:
      thread1 -
    • addHeartbeatLogic

      public void addHeartbeatLogic(Runnable heartbeatLogic)
      add a logic to run periodically
      Parameters:
      heartbeatLogic -
    • insertHeartbeatLogic

      public void insertHeartbeatLogic(Runnable heartbeatLogic)
      add a logic to run periodically
      Parameters:
      heartbeatLogic -
    • isStarted

      public boolean isStarted()
      if is started
      Returns:
      if started
    • setPaused

      public void setPaused(boolean paused1)
      if this is paused, call this from caller to pause things
      Parameters:
      paused1 -
    • endAndWaitForThread

      public static void endAndWaitForThread(GcGrouperSyncHeartbeat gcGrouperSyncHeartbeat)
      end this heartbeat and wait for it
      Parameters:
      gcGrouperSyncHeartbeat -