public class EventDrivenSchedulingAgent
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
protected FlowEngine | 
flowEngine  | 
| Constructor and Description | 
|---|
EventDrivenSchedulingAgent(FlowEngine flowEngine,
                          ControllerServiceProvider serviceProvider,
                          StateManagerProvider stateManagerProvider,
                          EventDrivenWorkerQueue workerQueue,
                          ProcessContextFactory contextFactory,
                          int maxThreadCount,
                          StringEncryptor encryptor)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
doSchedule(Connectable connectable,
          ScheduleState scheduleState)
Schedules the provided  
Connectable. | 
void | 
doSchedule(ReportingTaskNode taskNode,
          ScheduleState scheduleState)
Schedules the provided  
ReportingTaskNode. | 
void | 
doUnschedule(Connectable connectable,
            ScheduleState scheduleState)
Unschedules the provided  
Connectable. | 
void | 
doUnschedule(ReportingTaskNode taskNode,
            ScheduleState scheduleState)
Unschedules the provided  
ReportingTaskNode. | 
int | 
getActiveThreadCount()  | 
java.lang.String | 
getAdministrativeYieldDuration()  | 
long | 
getAdministrativeYieldDuration(java.util.concurrent.TimeUnit timeUnit)  | 
void | 
onEvent(Connectable connectable)  | 
void | 
schedule(Connectable connectable,
        ScheduleState scheduleState)  | 
void | 
schedule(ReportingTaskNode taskNode,
        ScheduleState scheduleState)  | 
void | 
setAdministrativeYieldDuration(java.lang.String yieldDuration)  | 
void | 
setMaxThreadCount(int maxThreadCount)  | 
void | 
shutdown()  | 
void | 
unschedule(Connectable connectable,
          ScheduleState scheduleState)  | 
void | 
unschedule(ReportingTaskNode taskNode,
          ScheduleState scheduleState)  | 
protected final FlowEngine flowEngine
public EventDrivenSchedulingAgent(FlowEngine flowEngine, ControllerServiceProvider serviceProvider, StateManagerProvider stateManagerProvider, EventDrivenWorkerQueue workerQueue, ProcessContextFactory contextFactory, int maxThreadCount, StringEncryptor encryptor)
public int getActiveThreadCount()
public void shutdown()
public void doSchedule(ReportingTaskNode taskNode, ScheduleState scheduleState)
ReportingTaskNode. Its
 ScheduleState will be set to truetaskNode - the instance of ReportingTaskNodescheduleState - the instance of ScheduleStatepublic void doUnschedule(ReportingTaskNode taskNode, ScheduleState scheduleState)
ReportingTaskNode. Its
 ScheduleState will be set to falsetaskNode - the instance of ReportingTaskNodescheduleState - the instance of ScheduleStatepublic void doSchedule(Connectable connectable, ScheduleState scheduleState)
Connectable. Its ScheduleState
 will be set to trueconnectable - the instance of ConnectablescheduleState - the instance of ScheduleStatepublic void doUnschedule(Connectable connectable, ScheduleState scheduleState)
Connectable. Its ScheduleState
 will be set to falseconnectable - the instance of ConnectablescheduleState - the instance of ScheduleStatepublic void onEvent(Connectable connectable)
public void setMaxThreadCount(int maxThreadCount)
public void setAdministrativeYieldDuration(java.lang.String yieldDuration)
public java.lang.String getAdministrativeYieldDuration()
public long getAdministrativeYieldDuration(java.util.concurrent.TimeUnit timeUnit)
public void schedule(Connectable connectable, ScheduleState scheduleState)
schedule in interface SchedulingAgentpublic void unschedule(Connectable connectable, ScheduleState scheduleState)
unschedule in interface SchedulingAgentpublic void schedule(ReportingTaskNode taskNode, ScheduleState scheduleState)
schedule in interface SchedulingAgentpublic void unschedule(ReportingTaskNode taskNode, ScheduleState scheduleState)
unschedule in interface SchedulingAgent