public class FileTransfer extends Wrapper
| Constructor and Description |
|---|
FileTransfer(Map<String,String> map) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageSpeed()
Returns the current file transfer speed in bytes per second.
|
int |
getClientId()
Gets the ID of the client who started this file transfer.
|
int |
getClientTransferId()
Returns the key that the client has sent to the server to identify their file transfer.
|
double |
getCurrentSpeed()
Returns the current file transfer speed in bytes per second.
|
String |
getDiskFilePath()
Gets the path of the folder that the file which is being transferred is stored in on disk.
|
String |
getFileName()
Returns the name of the file on the TS3 server without its full path.
|
long |
getRuntime()
Returns how many milliseconds have elapsed since the file transfer was first announced to
the server.
|
int |
getServerTransferId()
Returns an internal ID that the server uses to identify their file transfer.
|
int |
getStatus()
Returns the current status of the file transfer.
|
long |
getTotalFileSize()
Gets the size in bytes the file will have once it is fully transferred.
|
long |
getTransferredFileSize()
Gets the amount of bytes that have already been transferred.
|
boolean |
hasStarted()
Returns
true if the file transfer has started. |
boolean |
isActive()
Returns
true if the file transfer is still active. |
public FileTransfer(Map<String,String> map)
public int getClientId()
public String getDiskFilePath()
public String getFileName()
public long getTotalFileSize()
public long getTransferredFileSize()
public int getClientTransferId()
public int getServerTransferId()
public int getStatus()
Currently known status codes:
public boolean hasStarted()
true if the file transfer has started.public boolean isActive()
true if the file transfer is still active.
This is the case when the transfer has started and is not done or paused.public double getCurrentSpeed()
public double getAverageSpeed()
public long getRuntime()
Released under the MIT license.