public class FlowConfigResourceLocalHandler extends Object implements FlowConfigsResourceHandler
FlowConfigsResourceHandler that handles Restli locally.| Modifier and Type | Field and Description |
|---|---|
protected ContextAwareMeter |
createFlow |
protected ContextAwareMeter |
deleteFlow |
protected FlowCatalog |
flowCatalog |
static Schedule |
NEVER_RUN_CRON_SCHEDULE |
protected ContextAwareMeter |
runImmediatelyFlow |
| Constructor and Description |
|---|
FlowConfigResourceLocalHandler(FlowCatalog flowCatalog) |
| Modifier and Type | Method and Description |
|---|---|
com.linkedin.restli.server.CreateResponse |
createFlowConfig(FlowConfig flowConfig)
Add flowConfig locally and trigger all listeners
|
com.linkedin.restli.server.CreateResponse |
createFlowConfig(FlowConfig flowConfig,
boolean triggerListener)
Add flowConfig locally and trigger all listeners iff @param triggerListener is set to true
|
static FlowSpec |
createFlowSpecForConfig(FlowConfig flowConfig)
Build a
FlowSpec from a FlowConfig |
com.linkedin.restli.server.UpdateResponse |
deleteFlowConfig(FlowId flowId,
Properties header)
Delete flowConfig locally and trigger all listeners
|
com.linkedin.restli.server.UpdateResponse |
deleteFlowConfig(FlowId flowId,
Properties header,
boolean triggerListener)
Delete flowConfig locally and trigger all listeners iff @param triggerListener is set to true
|
Collection<FlowConfig> |
getAllFlowConfigs()
Get all flow configs
|
FlowConfig |
getFlowConfig(FlowId flowId)
Get flow config given a
FlowId |
Collection<FlowConfig> |
getFlowConfig(FlowSpecSearchObject flowSpecSearchObject)
Get flow config given a
FlowSpecSearchObject |
com.linkedin.restli.server.UpdateResponse |
partialUpdateFlowConfig(FlowId flowId,
com.linkedin.restli.common.PatchRequest<FlowConfig> flowConfigPatch)
Partial update a
FlowConfig |
com.linkedin.restli.server.UpdateResponse |
updateFlowConfig(FlowId flowId,
FlowConfig flowConfig)
Update flowConfig locally and trigger all listeners
|
com.linkedin.restli.server.UpdateResponse |
updateFlowConfig(FlowId flowId,
FlowConfig flowConfig,
boolean triggerListener)
Update flowConfig locally and trigger all listeners iff @param triggerListener is set to true
|
public static final Schedule NEVER_RUN_CRON_SCHEDULE
protected FlowCatalog flowCatalog
protected final ContextAwareMeter createFlow
protected final ContextAwareMeter deleteFlow
protected final ContextAwareMeter runImmediatelyFlow
@Inject public FlowConfigResourceLocalHandler(FlowCatalog flowCatalog)
public FlowConfig getFlowConfig(FlowId flowId) throws FlowConfigLoggedException
FlowIdgetFlowConfig in interface FlowConfigsResourceHandlerFlowConfigLoggedExceptionpublic Collection<FlowConfig> getFlowConfig(FlowSpecSearchObject flowSpecSearchObject) throws FlowConfigLoggedException
FlowSpecSearchObjectgetFlowConfig in interface FlowConfigsResourceHandlerFlowConfigs that satisfy the FlowSpecSearchObjectFlowConfigLoggedExceptionpublic Collection<FlowConfig> getAllFlowConfigs()
getAllFlowConfigs in interface FlowConfigsResourceHandlerpublic com.linkedin.restli.server.CreateResponse createFlowConfig(FlowConfig flowConfig, boolean triggerListener) throws FlowConfigLoggedException
FlowConfigLoggedExceptionpublic com.linkedin.restli.server.CreateResponse createFlowConfig(FlowConfig flowConfig) throws FlowConfigLoggedException
createFlowConfig in interface FlowConfigsResourceHandlerFlowConfigLoggedExceptionpublic com.linkedin.restli.server.UpdateResponse updateFlowConfig(FlowId flowId, FlowConfig flowConfig, boolean triggerListener)
public com.linkedin.restli.server.UpdateResponse updateFlowConfig(FlowId flowId, FlowConfig flowConfig) throws FlowConfigLoggedException
updateFlowConfig in interface FlowConfigsResourceHandlerFlowConfigLoggedExceptionpublic com.linkedin.restli.server.UpdateResponse partialUpdateFlowConfig(FlowId flowId, com.linkedin.restli.common.PatchRequest<FlowConfig> flowConfigPatch) throws FlowConfigLoggedException
FlowConfigsResourceHandlerFlowConfigpartialUpdateFlowConfig in interface FlowConfigsResourceHandlerFlowConfigLoggedExceptionpublic com.linkedin.restli.server.UpdateResponse deleteFlowConfig(FlowId flowId, Properties header, boolean triggerListener) throws FlowConfigLoggedException
FlowConfigLoggedExceptionpublic com.linkedin.restli.server.UpdateResponse deleteFlowConfig(FlowId flowId, Properties header) throws FlowConfigLoggedException
deleteFlowConfig in interface FlowConfigsResourceHandlerFlowConfigLoggedExceptionpublic static FlowSpec createFlowSpecForConfig(FlowConfig flowConfig)
FlowSpec from a FlowConfigflowConfig - flow configurationFlowSpec created with attributes from flowConfig