Class InstallerActionEvent

    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      InstallerActionEvent​(java.lang.Object source, Context context, EventType type, boolean success, java.lang.String actionId, long duration, java.lang.Exception exception, java.util.List<java.lang.String> log)
      The constructor is called by the framework.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getActionId()
      Returns the ID of the action.
      long getDuration()
      Returns the duration of the action in milliseconds
      java.lang.Exception getException()
      The exception if the action terminated abnormally or null.
      java.util.List<java.lang.String> getLog()
      Returns the log output produced by the action
      java.lang.String getVerbose()
      Return a verbose description of this event.
      java.lang.String toString()  
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InstallerActionEvent

        public InstallerActionEvent​(java.lang.Object source,
                                    Context context,
                                    EventType type,
                                    boolean success,
                                    java.lang.String actionId,
                                    long duration,
                                    java.lang.Exception exception,
                                    java.util.List<java.lang.String> log)
        The constructor is called by the framework.
        Parameters:
        source - the event source
        context - the context
        type - the event type.
        success - whether the operation associated with the event was successful
        actionId - the ID of the action
        duration - the duration in milliseconds
        exception - the exception if the action terminated abnormally or null
        log - the log output produced by the action
    • Method Detail

      • getActionId

        public java.lang.String getActionId()
        Returns the ID of the action.
        Returns:
        the ID
      • getException

        public java.lang.Exception getException()
        The exception if the action terminated abnormally or null.
        Returns:
        the ID
      • getLog

        public java.util.List<java.lang.String> getLog()
        Returns the log output produced by the action
        Returns:
        a list of single log outputs
      • getDuration

        public long getDuration()
        Returns the duration of the action in milliseconds
        Returns:
        the duration in milliseconds
      • getVerbose

        public java.lang.String getVerbose()
        Description copied from class: InstallerEvent
        Return a verbose description of this event.
        Overrides:
        getVerbose in class InstallerEvent
        Returns:
        the description