Class DefaultStatusEvent
- java.lang.Object
-
- org.gradle.tooling.events.internal.DefaultStatusEvent
-
- All Implemented Interfaces:
ProgressEvent,StatusEvent
public class DefaultStatusEvent extends java.lang.Object implements StatusEvent
Base implementation of theStatusEventinterface.
-
-
Constructor Summary
Constructors Constructor Description DefaultStatusEvent(long eventTime, java.lang.String displayName, OperationDescriptor descriptor, long total, long progress, java.lang.String unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationDescriptorgetDescriptor()Returns the description of the operation for which progress is reported.java.lang.StringgetDisplayName()Returns a human consumable short description of the event.longgetEventTime()Returns the time this event was triggered.longgetProgress()The amount of work already performed by the build operation.longgetTotal()The total amount of work that the build operation is in the progress of performing, or -1 if not known.java.lang.StringgetUnit()The measure used to express the amount of work.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gradle.tooling.events.ProgressEvent
getDescriptor, getDisplayName, getEventTime
-
-
-
-
Constructor Detail
-
DefaultStatusEvent
public DefaultStatusEvent(long eventTime, java.lang.String displayName, OperationDescriptor descriptor, long total, long progress, java.lang.String unit)
-
-
Method Detail
-
getProgress
public long getProgress()
Description copied from interface:StatusEventThe amount of work already performed by the build operation.- Specified by:
getProgressin interfaceStatusEvent- Returns:
- The amount of performed work
-
getTotal
public long getTotal()
Description copied from interface:StatusEventThe total amount of work that the build operation is in the progress of performing, or -1 if not known.- Specified by:
getTotalin interfaceStatusEvent- Returns:
- The total amount of work, or -1 if not known.
-
getUnit
public java.lang.String getUnit()
Description copied from interface:StatusEventThe measure used to express the amount of work.- Specified by:
getUnitin interfaceStatusEvent- Returns:
- The measure used to express the amount of work.
-
getEventTime
public long getEventTime()
Description copied from interface:ProgressEventReturns the time this event was triggered.- Specified by:
getEventTimein interfaceProgressEvent- Returns:
- The event time, in milliseconds since the epoch.
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:ProgressEventReturns a human consumable short description of the event.- Specified by:
getDisplayNamein interfaceProgressEvent- Returns:
- The short description of the event.
-
getDescriptor
public OperationDescriptor getDescriptor()
Description copied from interface:ProgressEventReturns the description of the operation for which progress is reported.- Specified by:
getDescriptorin interfaceProgressEvent- Returns:
- The description of the operation.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-