org.apache.maven.cli
Class ConsoleDownloadMonitor

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.cli.AbstractConsoleDownloadMonitor
          extended by org.apache.maven.cli.ConsoleDownloadMonitor
All Implemented Interfaces:
org.apache.maven.wagon.events.TransferListener, org.codehaus.plexus.logging.LogEnabled

public class ConsoleDownloadMonitor
extends AbstractConsoleDownloadMonitor

Console download progress meter. Properly handles multiple downloads simultaneously.

Version:
$Id: ConsoleDownloadMonitor.java 747773 2009-02-25 13:35:29Z brett $
Author:
Brett Porter

Constructor Summary
ConsoleDownloadMonitor()
           
ConsoleDownloadMonitor(org.codehaus.plexus.logging.Logger logger)
           
 
Method Summary
 void transferCompleted(org.apache.maven.wagon.events.TransferEvent transferEvent)
           
 void transferInitiated(org.apache.maven.wagon.events.TransferEvent transferEvent)
           
 void transferProgress(org.apache.maven.wagon.events.TransferEvent transferEvent, byte[] buffer, int length)
          Do nothing
 void transferStarted(org.apache.maven.wagon.events.TransferEvent transferEvent)
          Do nothing
 
Methods inherited from class org.apache.maven.cli.AbstractConsoleDownloadMonitor
createCompletionLine, debug, transferError
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleDownloadMonitor

public ConsoleDownloadMonitor(org.codehaus.plexus.logging.Logger logger)

ConsoleDownloadMonitor

public ConsoleDownloadMonitor()
Method Detail

transferInitiated

public void transferInitiated(org.apache.maven.wagon.events.TransferEvent transferEvent)
Specified by:
transferInitiated in interface org.apache.maven.wagon.events.TransferListener
Overrides:
transferInitiated in class AbstractConsoleDownloadMonitor

transferStarted

public void transferStarted(org.apache.maven.wagon.events.TransferEvent transferEvent)
Description copied from class: AbstractConsoleDownloadMonitor
Do nothing

Specified by:
transferStarted in interface org.apache.maven.wagon.events.TransferListener
Overrides:
transferStarted in class AbstractConsoleDownloadMonitor

transferProgress

public void transferProgress(org.apache.maven.wagon.events.TransferEvent transferEvent,
                             byte[] buffer,
                             int length)
Description copied from class: AbstractConsoleDownloadMonitor
Do nothing

Specified by:
transferProgress in interface org.apache.maven.wagon.events.TransferListener
Overrides:
transferProgress in class AbstractConsoleDownloadMonitor

transferCompleted

public void transferCompleted(org.apache.maven.wagon.events.TransferEvent transferEvent)
Specified by:
transferCompleted in interface org.apache.maven.wagon.events.TransferListener
Overrides:
transferCompleted in class AbstractConsoleDownloadMonitor


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.