Package com.perforce.p4java.client
Class BaseProgressReport
java.lang.Object
com.perforce.p4java.client.BaseProgressReport
- All Implemented Interfaces:
IProgressReport
- Direct Known Subclasses:
ClientProgressReport
Base implementation of IProgressReport with state tracking.
Uses boolean flags instead of bitwise operations.
Corresponds to ProgressReport class in C++.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected booleanprotected longprotected booleanprotected longprotected booleanprotected longprotected booleanprotected ProgressUnitprotected booleanFields inherited from interface com.perforce.p4java.client.IProgressReport
CPP_DONE, CPP_FAILDONE, CPP_FLUSH, CPP_NORMAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidconsiderReport(int flag) voiddescription(String description) protected abstract voiddoReport(int flag) protected voidfinalize()longlonggetTotal()getUnits()voidvoidincrement(long amount) voidincrement(long amount, int flag) voidposition(long position) voidposition(long position, int flag) voidtotal(long total) voidunits(ProgressUnit units) Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.perforce.p4java.client.IProgressReport
isComplete
-
Field Details
-
descriptionChanged
protected boolean descriptionChanged -
unitsChanged
protected boolean unitsChanged -
totalChanged
protected boolean totalChanged -
positionChanged
protected boolean positionChanged -
isNewProgress
protected boolean isNewProgress -
description
-
units
-
total
protected long total -
position
protected long position -
needFinal
protected boolean needFinal -
lastUpdateTime
protected long lastUpdateTime
-
-
Constructor Details
-
BaseProgressReport
public BaseProgressReport()
-
-
Method Details
-
description
- Specified by:
descriptionin interfaceIProgressReport
-
units
- Specified by:
unitsin interfaceIProgressReport
-
total
public void total(long total) - Specified by:
totalin interfaceIProgressReport
-
position
public void position(long position) - Specified by:
positionin interfaceIProgressReport
-
position
public void position(long position, int flag) - Specified by:
positionin interfaceIProgressReport
-
increment
public void increment()- Specified by:
incrementin interfaceIProgressReport
-
increment
public void increment(long amount) - Specified by:
incrementin interfaceIProgressReport
-
increment
public void increment(long amount, int flag) - Specified by:
incrementin interfaceIProgressReport
-
getPosition
public long getPosition()- Specified by:
getPositionin interfaceIProgressReport
-
getTotal
public long getTotal()- Specified by:
getTotalin interfaceIProgressReport
-
getDescription
- Specified by:
getDescriptionin interfaceIProgressReport
-
getUnits
- Specified by:
getUnitsin interfaceIProgressReport
-
considerReport
protected void considerReport(int flag) -
clearChangeFlags
protected void clearChangeFlags() -
doReport
protected abstract void doReport(int flag) -
finalize
-