Class GcGrouperSyncHeartbeat
java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncHeartbeat
heartbeat and other logic for sync jobs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHeartbeatLogic
(Runnable heartbeatLogic) add a logic to run periodicallystatic void
endAndWaitForThread
(GcGrouperSyncHeartbeat gcGrouperSyncHeartbeat) end this heartbeat and wait for itjobthe threadvoid
insertHeartbeatLogic
(Runnable heartbeatLogic) add a logic to run periodicallyboolean
boolean
if this job is interrupted from another job, this communicates that out to callers check this while runningboolean
if is startedvoid
void
setDone
(boolean done1) if done, stop thread, set this from caller to say donevoid
setFullSync
(boolean fullSync1) void
setGcGrouperSyncJob
(GcGrouperSyncJob gcGrouperSyncJob1) jobvoid
setPaused
(boolean paused1) if this is paused, call this from caller to pause thingsvoid
the 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
-
-