|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.EventObject
oracle.idm.util.progress.ProgressEvent
public class ProgressEvent
ProgressEvent is the object used to communicate progress events to ProgressListeners. During a lengthy operation execution, an API sends ProgressEvents to the ProgressListener as defined by the ProgressListener interface.
ProgressListener
, Serialized FormField Summary | |
---|---|
protected java.lang.String |
tag Tag used to print the progress event as an XML element. |
static long |
UNKNOWN UNKNOWN has a value of -1L and indicates unknown time stamp. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ProgressEvent(java.lang.Object source, java.lang.String name) Creates a ProgressEvent. |
|
ProgressEvent(ProgressEvent event) Creates a ProgressEvent by shallow copying all properties from the existing event, except for time stamp. |
Method Summary | |
---|---|
void |
clear() Clears all mutable properties from the event. |
java.lang.Object |
clone() Clones ProgressEvent. |
java.lang.Throwable |
getCause() Getter for the cause property. |
DurationInfo |
getDurationInfo() Getter for the durationInfo property. |
java.lang.String |
getLocalizedMessage() Getter for the localizedMessage property. |
java.util.Collection |
getLocalizedMessages() Returns localized messages associated with this progress event. |
java.lang.String |
getMessage() Getter for the message property. |
java.util.Collection |
getMessages() Returns messages associated with this progress event. |
java.lang.String |
getName() Getter for the name property. |
PercentInfo |
getPercentInfo() Getter for the percentInfo property. |
java.lang.Object |
getProgressInfo() Getter for the progressInfo property. |
StateInfo |
getStateInfo() Getter for the stateInfo property. |
StatusInfo |
getStatusInfo() Getter for the statusInfo property. |
StepInfo |
getStepInfo() Getter for the stepInfo property. |
long |
getTimeStamp() Getter for the timeStamp property. |
void |
setCause(java.lang.Throwable cause) Setter for the cause property. |
void |
setDurationInfo(DurationInfo durationInfo) Setter for the durationInfo property. |
void |
setLocalizedMessage(java.lang.String localizedMessage) Setter for the localizedMessage property. |
void |
setMessage(java.lang.String message) Setter for the message property. |
void |
setPercentInfo(PercentInfo percentInfo) Setter for the percentInfo property. |
void |
setProgressInfo(java.lang.Object progressInfo) Setter for the progressInfo property. |
void |
setStateInfo(StateInfo stateInfo) Setter for the stateInfo property. |
void |
setStatusInfo(StatusInfo statusInfo) Setter for the statusInfo property. |
void |
setStepInfo(StepInfo stepInfo) Setter for the stepInfo property. |
void |
setTimeStamp() Setter for the timeStamp property. |
void |
setTimeStamp(long timeStamp) Setter for the timeStamp property. |
static java.lang.String |
suggestName() This is a convenience method for suggesting progress event names. |
static java.lang.String |
suggestName(java.lang.Class clazz) This is a convenience method for suggesting progress event names. |
static java.lang.String |
suggestName(java.lang.Class clazz, java.lang.reflect.Method method) This is a convenience method for suggesting progress event names. |
static java.lang.String |
suggestName(java.lang.Object object) This is a convenience method for suggesting progress event names. |
static java.lang.String |
suggestName(java.lang.Object object, java.lang.reflect.Method method) This is a convenience method for suggesting progress event names. |
static java.lang.String |
suggestName(java.lang.String className) This is a convenience method for suggesting progress event names. |
static java.lang.String |
suggestName(java.lang.String className, java.lang.String methodName) This is a convenience method for suggesting progress event names. |
java.lang.String |
toString() Returns a string representation of PageEvent. |
void |
xprint(XmlPrintWriter out) Prints event's properties to the PrintWriter as an XML element. |
protected void |
xprintBody(XmlPrintWriter out) |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long UNKNOWN
protected java.lang.String tag
Constructor Detail |
---|
public ProgressEvent(java.lang.Object source, java.lang.String name)
source
- The source property of the progress event can be used to pass meaningful information about where the event occurred. Typically, this will be the context or the connection object of the API in which the event took place.name
- Name must be specified at event creation time, and cannot be changed later. It is used to distinguish between events coming from different operations. Thus, the event source should set the name property to a unique value that describes the operation whose events are being reported. The reccomendation is to set the progress event name to package.Class.method
of the event generating API.ProgressManager.getProgressEvent(String)
public ProgressEvent(ProgressEvent event)
Method Detail |
---|
public static java.lang.String suggestName()
package_Class_method
if called from a method, or package_Class
if called from an initialized. Use this method with caution, as it will do the right thing only if you are calling it directly from the method or initializer you want to set as the event name.public static java.lang.String suggestName(java.lang.Object object, java.lang.reflect.Method method)
public static java.lang.String suggestName(java.lang.Object object)
public static java.lang.String suggestName(java.lang.Class clazz, java.lang.reflect.Method method)
public static java.lang.String suggestName(java.lang.Class clazz)
public static java.lang.String suggestName(java.lang.String className, java.lang.String methodName)
public static java.lang.String suggestName(java.lang.String className)
public java.lang.Object clone()
clone
in class java.lang.Object
public void clear()
public long getTimeStamp()
public void setTimeStamp(long timeStamp)
timeStamp
- long representing the event time stamp.public java.lang.String getName()
ProgressEvent(oracle.idm.util.progress.ProgressEvent)
public void setTimeStamp()
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- String representing the event message.getMessage()
public java.lang.String getLocalizedMessage()
public void setLocalizedMessage(java.lang.String localizedMessage)
localizedMessage
- String representing the event localized message.getLocalizedMessage()
public java.lang.Throwable getCause()
public void setCause(java.lang.Throwable cause)
cause
- Throwable raised during operation execution.getCause()
public StateInfo getStateInfo()
public void setStateInfo(StateInfo stateInfo)
stateInfo
- State representing the event state information.getStateInfo()
public StatusInfo getStatusInfo()
public void setStatusInfo(StatusInfo statusInfo)
statusInfo
- StatusInfo representing the event status information.getStatusInfo()
public StepInfo getStepInfo()
public void setStepInfo(StepInfo stepInfo)
stesInfo
- StepInfo about the operation being executed.getStepInfo()
public PercentInfo getPercentInfo()
public void setPercentInfo(PercentInfo percentInfo)
percentInfo
- PercentInfo about the operation being executed.getPercentInfo()
public DurationInfo getDurationInfo()
public void setDurationInfo(DurationInfo durationInfo)
durationInfo
- DurationInfo about the operation being executed.getDurationInfo()
public java.lang.Object getProgressInfo()
public void setProgressInfo(java.lang.Object progressInfo)
progressInfo
- Object representing progress information.getProgressInfo()
public java.util.Collection getMessages()
public java.util.Collection getLocalizedMessages()
public void xprint(XmlPrintWriter out)
xprint
in interface XmlPrintable
out
- PrintWriter for printing event propeties.protected void xprintBody(XmlPrintWriter out)
public java.lang.String toString()
toString
in class java.util.EventObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |