ConnectorScheduler

public class ConnectorScheduler extends Object
Known Direct Subclasses

Handles scheduling and execution of connector traversal related tasks.

Nested Class Summary

class ConnectorScheduler.AbstractBuilder<B extends AbstractBuilder<B, T extends ConnectorContext>, T>  
class ConnectorScheduler.AlreadyRunningRunnable  
class ConnectorScheduler.BackgroundRunnable Runnable that when invoked executes the delegate with getBackgroundExecutor() and then returns before completion. 
class ConnectorScheduler.Builder Builder for ConnectorScheduler instances. 
class ConnectorScheduler.ConnectorSchedule Wrapper object to maintain connector traversal schedule. 
class ConnectorScheduler.OneAtATimeRunnable Runnable implementation which allows only one thread to run given runnable at a time. 
class ConnectorScheduler.ShutdownAfterCompleteRunnable  
interface ConnectorScheduler.ShutdownHolder Pointer to shutdown method to be executed when traversal is complete. 

Protected Constructor Summary

Public Method Summary

boolean
isStarted()
Check if ConnectorScheduler is started.
synchronized void
start()
Starts traversal process and worker threads.
synchronized void
stop()
Stops traversal process and worker threads.

Protected Method Summary

ExecutorService
ConnectorScheduler.ConnectorSchedule
ScheduledExecutorService

Inherited Method Summary

Protected Constructors

protected ConnectorScheduler (AbstractBuilder<? extends AbstractBuilder, T> builder)

Parameters
builder

Public Methods

public boolean isStarted ()

Check if ConnectorScheduler is started.

Returns
  • true if ConnectorScheduler started, false otherwise.

public synchronized void start ()

Starts traversal process and worker threads.

public synchronized void stop ()

Stops traversal process and worker threads.

Protected Methods

protected ExecutorService getBackgroundExecutor ()

protected ConnectorScheduler.ConnectorSchedule getConnectorSchedule ()

protected ScheduledExecutorService getScheduledExecutor ()

Send feedback about...

Cloud Search
Cloud Search