IBM API Hub
IBM Aspera Transfer SDK

By IBM Aspera

The IBM Aspera Transfer SDK allows you to initiate, monitor and control file transfers and streams.


Quick start guide for Java sample code

Follow these steps to run Java® sample code for TransferD. You can find the sample code in the /api folder of the installation directory.

For more information about the files and directories that are mentioned in the following sections, see Contents of the Installation Directory.

Requirements

  • Java.
  • Gradle (installed automatically via gradle wrapper).

Library Files

When you incorporate TransferD into your own code, you must reference the following files:

transferd.proto

Build

./gradlew build

Run

Create a connection to the transferD daemon and run the sample code.

  • In a separate window or terminal, start the Transfer SDK daemon from the installation directory:
    ./bin/asperatransferd
  • Run the wanted sample code. For example,
    
    java -cp build/libs/transferd-1.1-all.jar client.GetInfoExample
    java -cp build/libs/transferd-1.1-all.jar client.FileRegularDownloadExample
    java -cp build/libs/transferd-1.1-all.jar client.FileRegularUploadExample
Legend
Technologies
Products & Services
Company information
Company logoIBM Aspera