Package org.slf4j.migrator.internal
Class ProgressListenerImpl
- java.lang.Object
-
- org.slf4j.migrator.internal.ProgressListenerImpl
-
- All Implemented Interfaces:
ProgressListener
public class ProgressListenerImpl extends java.lang.Object implements ProgressListener
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Abbreviator
abbr
(package private) int
addFileCount
(package private) MigratorFrame
frame
(package private) int
inplaceConversionCount
(package private) long
lastUpdate
(package private) int
scanFileCount
(package private) static int
TARGET_FILE_LENGTH
(package private) static int
UPDATE_THRESHOLD
-
Constructor Summary
Constructors Constructor Description ProgressListenerImpl(java.io.File projectFolder, MigratorFrame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.String
getShortName(java.io.File file)
(package private) boolean
isTooSoon()
void
onDirectory(java.io.File file)
void
onDone()
void
onFileAddition(java.io.File file)
void
onFileScan(java.io.File file)
void
onFileScanBegin()
void
onInplaceConversion(java.io.File file)
void
onMigrationBegin()
-
-
-
Field Detail
-
TARGET_FILE_LENGTH
static final int TARGET_FILE_LENGTH
- See Also:
- Constant Field Values
-
UPDATE_THRESHOLD
static final int UPDATE_THRESHOLD
- See Also:
- Constant Field Values
-
addFileCount
int addFileCount
-
scanFileCount
int scanFileCount
-
inplaceConversionCount
int inplaceConversionCount
-
frame
final MigratorFrame frame
-
abbr
Abbreviator abbr
-
lastUpdate
long lastUpdate
-
-
Constructor Detail
-
ProgressListenerImpl
public ProgressListenerImpl(java.io.File projectFolder, MigratorFrame frame)
-
-
Method Detail
-
onMigrationBegin
public void onMigrationBegin()
- Specified by:
onMigrationBegin
in interfaceProgressListener
-
isTooSoon
boolean isTooSoon()
-
onDirectory
public void onDirectory(java.io.File file)
- Specified by:
onDirectory
in interfaceProgressListener
-
onDone
public void onDone()
- Specified by:
onDone
in interfaceProgressListener
-
onFileAddition
public void onFileAddition(java.io.File file)
- Specified by:
onFileAddition
in interfaceProgressListener
-
onFileScan
public void onFileScan(java.io.File file)
- Specified by:
onFileScan
in interfaceProgressListener
-
onInplaceConversion
public void onInplaceConversion(java.io.File file)
- Specified by:
onInplaceConversion
in interfaceProgressListener
-
getShortName
java.lang.String getShortName(java.io.File file)
-
onFileScanBegin
public void onFileScanBegin()
- Specified by:
onFileScanBegin
in interfaceProgressListener
-
-