org.apache.maven.cli
Class AbstractConsoleDownloadMonitor

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

public abstract class AbstractConsoleDownloadMonitor
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements org.apache.maven.wagon.events.TransferListener

Abstract console download progress meter.

Since:
2.0.5
Version:
$Id: AbstractConsoleDownloadMonitor.java 747773 2009-02-25 13:35:29Z brett $
Author:
Carlos Sanchez

Constructor Summary
AbstractConsoleDownloadMonitor()
           
AbstractConsoleDownloadMonitor(org.codehaus.plexus.logging.Logger logger)
           
 
Method Summary
protected  String createCompletionLine(org.apache.maven.wagon.events.TransferEvent transferEvent)
           
 void debug(String message)
          Do nothing
 void transferCompleted(org.apache.maven.wagon.events.TransferEvent transferEvent)
           
 void transferError(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.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

AbstractConsoleDownloadMonitor

public AbstractConsoleDownloadMonitor()

AbstractConsoleDownloadMonitor

public AbstractConsoleDownloadMonitor(org.codehaus.plexus.logging.Logger logger)
Method Detail

transferInitiated

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

transferStarted

public void transferStarted(org.apache.maven.wagon.events.TransferEvent transferEvent)
Do nothing

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

transferProgress

public void transferProgress(org.apache.maven.wagon.events.TransferEvent transferEvent,
                             byte[] buffer,
                             int length)
Do nothing

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

transferCompleted

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

createCompletionLine

protected String createCompletionLine(org.apache.maven.wagon.events.TransferEvent transferEvent)

transferError

public void transferError(org.apache.maven.wagon.events.TransferEvent transferEvent)
Specified by:
transferError in interface org.apache.maven.wagon.events.TransferListener

debug

public void debug(String message)
Do nothing

Specified by:
debug in interface org.apache.maven.wagon.events.TransferListener


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