public class InstallerActionEvent extends InstallerEvent
InstallerContext
.
This event object contains additional information about the duration of the action.
Constructor and Description |
---|
InstallerActionEvent(java.lang.Object source,
Context context,
EventType type,
boolean success,
java.lang.String actionId,
long duration)
The constructor is called by the framework.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActionId()
The ID of the action.
|
long |
getDuration()
Returns the duration of the action in milliseconds
|
java.lang.String |
getVerbose()
Return a verbose description of this event.
|
java.lang.String |
toString() |
getContext, getType, setContext, wasSuccessful
public InstallerActionEvent(java.lang.Object source, Context context, EventType type, boolean success, java.lang.String actionId, long duration)
source
- the event sourcecontext
- the contexttype
- the event type.success
- whether the operation associated with the event was successfulactionId
- the ID of the actionduration
- the duration in millisecondspublic java.lang.String getActionId()
public long getDuration()
public java.lang.String toString()
toString
in class InstallerEvent
public java.lang.String getVerbose()
InstallerEvent
getVerbose
in class InstallerEvent