com.spss.psapi.task

Class ExecutionStateEvent

  • java.lang.Object
    • java.util.EventObject
      • com.spss.psapi.task.ExecutionStateEvent
  • All Implemented Interfaces:
    java.io.Serializable


    public class ExecutionStateEvent
    extends java.util.EventObject
    Indicates a state change in a task. An event is fired when a task moves into a new state, and the new state is obtained from the event by calling getExecutionState.
    Since:
    PSAPI 1.0
    Version:
    1.0
    Author:
    Rob Duncan
    See Also:
    Serialized Form
    Specification Status:
    Under Development
    • Constructor Detail

      • ExecutionStateEvent

        protected ExecutionStateEvent(ExecutionHandle handle,
                           ExecutionState state)
        Constructs an ExecutionStateEvent using the supplied parameters.
        Parameters:
        handle - the ExecutionHandle
        state - the new state that triggered the event
    • Method Detail

      • createExecutionStateEvent

        public static ExecutionStateEvent createExecutionStateEvent(ExecutionHandle handle,
                                                    ExecutionState state)
        Creates a new execution state event.
        Parameters:
        handle - the ExecutionHandle for the event
        state - the new execution state.
        Returns:
        an execution feedback event
      • getExecutionHandle

        public ExecutionHandle getExecutionHandle()
        Returns the ExecutionHandle that raised the event.
        Returns:
        the ExecutionHandle that raised the event
      • getExecutionState

        public ExecutionState getExecutionState()
        Returns the new execution state which caused this event to be raised. The return value is one of the constants defined by ExecutionState. Note that this may not correspond with the state that the task is now in since a subsequent state change may have occurred.
        Returns:
        the new execution state which caused the event to be raised

(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.