FileDocCategorySizeDatePackage
TorrentDownloaderLoggedImpl.javaAPI DocAzureus 3.0.3.41289Sun Jun 27 08:09:54 BST 2004org.gudy.azureus2.core3.torrentdownloader.impl

TorrentDownloaderLoggedImpl

public class TorrentDownloaderLoggedImpl extends TorrentDownloaderImpl
author
Tobias Minich

Fields Summary
Constructors Summary
Methods Summary
public voidnotifyListener()

      super.notifyListener();
      switch(this.getDownloadState()) {
          case STATE_INIT:
            org.apache.log4j.Logger.getLogger("azureus2.torrentdownloader").info("Download of '"+this.getFile().getName()+"' queued.");
            break;
          case STATE_START:
            org.apache.log4j.Logger.getLogger("azureus2.torrentdownloader").info("Download of '"+this.getFile().getName()+"' started.");
            break;
          case STATE_FINISHED:
            org.apache.log4j.Logger.getLogger("azureus2.torrentdownloader").info("Download of '"+this.getFile().getName()+"' finished.");
            break;
          case STATE_ERROR:
            org.apache.log4j.Logger.getLogger("azureus2.torrentdownloader").error(this.getError());
            break;
          case STATE_DUPLICATE:
            org.apache.log4j.Logger.getLogger("azureus2.torrentdownloader").error("Download of '"+this.getFile().getName()+"' cancelled. File is already queued or downloading.");
      }