|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.idm.util.progress.info.DurationInfo
public class DurationInfo
DurationInfo represents information about the duration of the operation. For example, it may report that curently 50,0000 ms of total 100,000 ms of operation has been executed.
Field Summary | |
---|---|
static long |
UNKNOWN UNKNOWN has a value of -1L and indicates unknown duration. |
Constructor Summary | |
---|---|
DurationInfo(long current) Creates DurationInfo. |
|
DurationInfo(long current, long total) Creates DurationInfo. |
Method Summary | |
---|---|
java.lang.Object |
clone() Clones DurationInfo. |
long |
getCurrent() Getter for the current property. |
long |
getTotal() Getter for the total property. |
void |
setCurrent(long current) Setter for the current property. |
void |
setTotal(long total) Setter for the total property. |
java.lang.String |
toString() Returns a string representation of DurationInfo. |
void |
xprint(XmlPrintWriter out) Prints durationInfo properties to the PrintWriter as an XML element. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long UNKNOWN
Constructor Detail |
---|
public DurationInfo(long current, long total)
current
- Current duration of operation executed so far, in milliseconds.total
- Total duration of operation expected to be executed, in milliseconds.public DurationInfo(long current)
current
- Current duration of operation executed so far, in milliseconds.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public long getCurrent()
public void setCurrent(long current)
current
- Current duration of operation executed so far, in milliseconds.public long getTotal()
public void setTotal(long total)
total
- Total duration of operation expected to be executed, in milliseconds.public void xprint(XmlPrintWriter out)
xprint
in interface XmlPrintable
out
- PrintWriter for printing durationInfo propeties.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |