Search in sources :

Example 1 with SharedTorrent

use of com.turn.ttorrent.client.SharedTorrent in project teamcity-torrent-plugin by JetBrains.

the class TeamcityTorrentClient method stopSeedingByPath.

public void stopSeedingByPath(File file) {
    final SharedTorrent torrentByName = myClient.getTorrentByFilePath(file);
    if (torrentByName != null) {
        LOG.info("Stopped seeding torrent by file: " + file.getAbsolutePath());
        myClient.removeTorrent(torrentByName);
    }
}
Also used : SharedTorrent(com.turn.ttorrent.client.SharedTorrent)

Aggregations

SharedTorrent (com.turn.ttorrent.client.SharedTorrent)1