This is an automated email from the ASF dual-hosted git repository. dimuthuupe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airavata-mft.git
commit 07546764e4bebfb45bce1f5a2af1be4cf770e0c3 Author: Gopi kiran <6153136+gkiran...@users.noreply.github.com> AuthorDate: Thu Apr 30 19:29:02 2020 -0400 Readme Update Updating the client code to break when the transfer is completed and adding "start agent" part --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ee92cac..e82505d 100755 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Airavata Managed File Transfer Service and Clients * Start SecretServiceApplication * Start MftController * Start ApiServiceApplication +* Start the agent ## Building from the script @@ -73,6 +74,9 @@ public class SampleClient { try { TransferStateApiResponse transferState = client.getTransferState(TransferStateApiRequest.newBuilder().setTransferId(transferApiResponse.getTransferId()).build()); System.out.println("Latest Transfer State " + transferState.getState()); + if (transferState.getState().equals("COMPLETED")) { + break; + } } catch (Exception e) { System.out.println("Errored " + e.getMessage()); @@ -81,4 +85,4 @@ public class SampleClient { } } } -``` \ No newline at end of file +```