Class ProgressEvent
- java.lang.Object
-
- com.google.cloud.tools.jib.event.events.ProgressEvent
-
- All Implemented Interfaces:
JibEvent
public class ProgressEvent extends java.lang.Object implements JibEvent
Event representing progress. The progress accounts for allocation units in anAllocation
, which makes up a Decentralized Allocation Tree.- See Also:
Allocation
-
-
Constructor Summary
Constructors Constructor Description ProgressEvent(Allocation allocation, long progressUnits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Allocation
getAllocation()
Gets theAllocation
this progress event accounts for.long
getUnits()
Gets the units of progress this progress event accounts for in the associatedAllocation
.
-
-
-
Constructor Detail
-
ProgressEvent
public ProgressEvent(Allocation allocation, long progressUnits)
-
-
Method Detail
-
getAllocation
public Allocation getAllocation()
Gets theAllocation
this progress event accounts for.- Returns:
- the
Allocation
-
getUnits
public long getUnits()
Gets the units of progress this progress event accounts for in the associatedAllocation
.- Returns:
- units of allocation
-
-