public class FlowConfigResourceLocalHandler extends Object implements FlowConfigsResourceHandler
FlowConfigsResourceHandler that handles Restli locally.| Modifier and Type | Field and Description |
|---|---|
protected FlowCatalog |
flowCatalog |
| 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 |
static URI |
createFlowSpecUri(FlowId flowId) |
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
|
FlowConfig |
getFlowConfig(FlowId flowId)
Get flow config
|
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
|
protected FlowCatalog flowCatalog
public FlowConfigResourceLocalHandler(FlowCatalog flowCatalog)
public FlowConfig getFlowConfig(FlowId flowId) throws FlowConfigLoggedException
getFlowConfig in interface FlowConfigsResourceHandlerFlowConfigLoggedExceptionpublic 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 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 URI createFlowSpecUri(FlowId flowId) throws URISyntaxException
URISyntaxExceptionpublic static FlowSpec createFlowSpecForConfig(FlowConfig flowConfig)
FlowSpec from a FlowConfigflowConfig - flow configurationFlowSpec created with attributes from flowConfig