public class FlowStatusClient extends Object implements Closeable
| Constructor and Description |
|---|
FlowStatusClient(com.linkedin.restli.client.RestClient restClient)
Construct a
FlowStatusClient to communicate with http flow status server at URI serverUri |
FlowStatusClient(String serverUri)
Construct a
FlowStatusClient to communicate with http flow status server at URI serverUri |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.gobblin.service.FlowStatus |
getFlowStatus(org.apache.gobblin.service.FlowStatusId flowStatusId)
Get a flow status
|
org.apache.gobblin.service.FlowStatus |
getLatestFlowStatus(org.apache.gobblin.service.FlowId flowId)
Get the latest flow status
|
public FlowStatusClient(String serverUri)
FlowStatusClient to communicate with http flow status server at URI serverUriserverUri - address and port of the REST serverpublic FlowStatusClient(com.linkedin.restli.client.RestClient restClient)
FlowStatusClient to communicate with http flow status server at URI serverUrirestClient - restClient to send restli requestpublic org.apache.gobblin.service.FlowStatus getFlowStatus(org.apache.gobblin.service.FlowStatusId flowStatusId)
throws com.linkedin.r2.RemoteInvocationException
flowStatusId - identifier of flow status to getFlowStatus with the flow statuscom.linkedin.r2.RemoteInvocationExceptionpublic org.apache.gobblin.service.FlowStatus getLatestFlowStatus(org.apache.gobblin.service.FlowId flowId)
throws com.linkedin.r2.RemoteInvocationException
flowId - identifier of flow status to getFlowStatus with the flow statuscom.linkedin.r2.RemoteInvocationExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException