spera.cos-aspera-win-v140_xp-64.0.1.162892.source-code.ITransferListener Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cos-aspera-win-v140_xp-64 Show documentation
Show all versions of cos-aspera-win-v140_xp-64 Show documentation
API for use of Aspera Transfer software from ICOS
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.ibm.aspera.faspmanager2;
/**
* Callback wrapper interface
*/
public class ITransferListener {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected ITransferListener(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ITransferListener obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
faspmanager2JNI.delete_ITransferListener(swigCPtr);
}
swigCPtr = 0;
}
}
protected void swigDirectorDisconnect() {
swigCMemOwn = false;
delete();
}
public void swigReleaseOwnership() {
swigCMemOwn = false;
faspmanager2JNI.ITransferListener_change_ownership(this, swigCPtr, false);
}
public void swigTakeOwnership() {
swigCMemOwn = true;
faspmanager2JNI.ITransferListener_change_ownership(this, swigCPtr, true);
}
/**
* Callback function
* @param xferId The transfer GUID
* @param message contains ransfer status updates
*/
public void transferReporter(String xferId, String message) {
faspmanager2JNI.ITransferListener_transferReporter(swigCPtr, this, xferId, message);
}
/**
* Class constructor.
*/
public ITransferListener() {
this(faspmanager2JNI.new_ITransferListener(), true);
faspmanager2JNI.ITransferListener_director_connect(this, swigCPtr, swigCMemOwn, true);
}
}