Class GcGrouperSyncHeartbeat
java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncHeartbeat
heartbeat and other logic for sync jobs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHeartbeatLogic(Runnable heartbeatLogic) add a logic to run periodicallystatic voidendAndWaitForThread(GcGrouperSyncHeartbeat gcGrouperSyncHeartbeat) end this heartbeat and wait for itjobthe threadvoidinsertHeartbeatLogic(Runnable heartbeatLogic) add a logic to run periodicallybooleanbooleanif this job is interrupted from another job, this communicates that out to callers check this while runningbooleanif is startedvoidvoidsetDone(boolean done1) if done, stop thread, set this from caller to say donevoidsetFullSync(boolean fullSync1) voidsetGcGrouperSyncJob(GcGrouperSyncJob gcGrouperSyncJob1) jobvoidsetPaused(boolean paused1) if this is paused, call this from caller to pause thingsvoidthe thread
-
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
job- Returns:
- job
-
setGcGrouperSyncJob
job- Parameters:
gcGrouperSyncJob1-
-
runHeartbeatThread
public void runHeartbeatThread() -
getThread
the thread- Returns:
-
setThread
the thread- Parameters:
thread1-
-
addHeartbeatLogic
add a logic to run periodically- Parameters:
heartbeatLogic-
-
insertHeartbeatLogic
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
end this heartbeat and wait for it- Parameters:
gcGrouperSyncHeartbeat-
-