类 TotalProgressListener<E extends ImageProgressUpdateEvent>
java.lang.Object
cn.taketoday.buildpack.platform.docker.TotalProgressListener<E>
- 类型参数:
E- the type ofImageProgressUpdateEvent
- 所有已实现的接口:
UpdateListener<E>
public abstract class TotalProgressListener<E extends ImageProgressUpdateEvent>
extends Object
implements UpdateListener<E>
UpdateListener that calculates the total progress of the entire image operation
and publishes TotalProgressEvent.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Scott Frederick
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final Consumer<TotalProgressEvent>private final Map<String,TotalProgressListener.Layer> private booleanprivate final String[]从接口继承的字段 cn.taketoday.buildpack.platform.docker.UpdateListener
NONE -
构造器概要
构造器限定符构造器说明protectedTotalProgressListener(Consumer<TotalProgressEvent> consumer, String[] trackedStatusKeys) Create a newTotalProgressListenerthat sendseventsto the given consumer. -
方法概要
-
字段详细资料
-
layers
-
consumer
-
trackedStatusKeys
-
progressStarted
private boolean progressStarted
-
-
构造器详细资料
-
TotalProgressListener
Create a newTotalProgressListenerthat sendseventsto the given consumer.- 参数:
consumer- the consumer that receivesprogress eventstrackedStatusKeys- a list of status event keys to track the progress of
-
-
方法详细资料
-
onStart
public void onStart()从接口复制的说明:UpdateListenerCalled when the operation starts.- 指定者:
onStart在接口中UpdateListener<E extends ImageProgressUpdateEvent>
-
onUpdate
从接口复制的说明:UpdateListenerCalled when an update event is available.- 指定者:
onUpdate在接口中UpdateListener<E extends ImageProgressUpdateEvent>- 参数:
event- the update event
-
onFinish
public void onFinish()从接口复制的说明:UpdateListenerCalled when the operation finishes (with or without error).- 指定者:
onFinish在接口中UpdateListener<E extends ImageProgressUpdateEvent>
-
publish
private void publish(int fallback) -
withinPercentageBounds
private static int withinPercentageBounds(int value)
-