@ParametersAreNonnullByDefault public class ProgressEventListener extends AbstractEventListener
EventListener
that logs the progress of a migration.Constructor and Description |
---|
ProgressEventListener(InputStream stream)
Constructs a new
ProgressEventListener with the default period. |
ProgressEventListener(InputStream stream,
long period)
Constructs a new
ProgressEventListener with the given period . |
Modifier and Type | Method and Description |
---|---|
void |
onComplete()
Handles the end of the current task.
|
void |
onInitialize()
Handles the start of a task.
|
onAttribute, onEndElement, onReference, onStartElement
public ProgressEventListener(InputStream stream)
ProgressEventListener
with the default period.stream
- the stream to watchpublic ProgressEventListener(InputStream stream, @Nonnegative long period)
ProgressEventListener
with the given period
.stream
- the stream to watchperiod
- the time between progress analysis, in millisecondspublic void onInitialize()
Handler
onInitialize
in interface Handler
onInitialize
in class AbstractEventListener
Handler.onComplete()
,
Notifier.notifyInitialize()
public void onComplete()
Handler
onComplete
in interface Handler
onComplete
in class AbstractEventListener
Handler.onInitialize()
,
Notifier.notifyComplete()
Copyright © 2013–2019 Atlanmod. All rights reserved.