public class FlowConfigClient extends Object implements Closeable
| Constructor and Description |
|---|
FlowConfigClient(com.linkedin.restli.client.RestClient restClient)
Construct a
FlowConfigClient to communicate with http flow config server at URI serverUri |
FlowConfigClient(String serverUri)
Construct a
FlowConfigClient to communicate with http flow config server at URI serverUri |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
createFlowConfig(org.apache.gobblin.service.FlowConfig flowConfig)
Create a flow configuration
|
void |
deleteFlowConfig(org.apache.gobblin.service.FlowId flowId)
Delete a flow configuration
|
org.apache.gobblin.service.FlowConfig |
getFlowConfig(org.apache.gobblin.service.FlowId flowId)
Get a flow configuration
|
void |
updateFlowConfig(org.apache.gobblin.service.FlowConfig flowConfig)
Update a flow configuration
|
public FlowConfigClient(String serverUri)
FlowConfigClient to communicate with http flow config server at URI serverUriserverUri - address and port of the REST serverpublic FlowConfigClient(com.linkedin.restli.client.RestClient restClient)
FlowConfigClient to communicate with http flow config server at URI serverUrirestClient - restClient to send restli requestpublic void createFlowConfig(org.apache.gobblin.service.FlowConfig flowConfig)
throws com.linkedin.r2.RemoteInvocationException
flowConfig - flow configuration attributescom.linkedin.r2.RemoteInvocationExceptionpublic void updateFlowConfig(org.apache.gobblin.service.FlowConfig flowConfig)
throws com.linkedin.r2.RemoteInvocationException
flowConfig - flow configuration attributescom.linkedin.r2.RemoteInvocationExceptionpublic org.apache.gobblin.service.FlowConfig getFlowConfig(org.apache.gobblin.service.FlowId flowId)
throws com.linkedin.r2.RemoteInvocationException
flowId - identifier of flow configuration to getFlowConfig with the flow configurationcom.linkedin.r2.RemoteInvocationExceptionpublic void deleteFlowConfig(org.apache.gobblin.service.FlowId flowId)
throws com.linkedin.r2.RemoteInvocationException
flowId - identifier of flow configuration to deletecom.linkedin.r2.RemoteInvocationExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException