Interface ExecutionManagerMXBean


  • public interface ExecutionManagerMXBean
    This interface provides access to node and instance counts based on type, node state and instance execution statuses to be monitored by JMX.
    • Method Detail

      • getCountNodeStateChange

        long[] getCountNodeStateChange​(long[] timespans,
                                       int nodeType,
                                       ExecutionHistory.StateChange... stateChanges)
        Gets the amount of nodes that have undergone one of the designated state changes within one of the designated time spans if the node is of the designated type. That is, all nodes of the designated type are considered. The designated timespans define the periods in seconds (!) that are considered backwards from now. For instance { 60, 300, 900 } considers the nodes, that have undergone the designated state changes within the last minute, the last 5 minutes and the last 15 minutes. A timespan of 0 considers only nodes that are currently in a node state corresponding to one of the designated state changes.
        Parameters:
        timespans - The timespans in seconds (!) that should be considered. The index in the array corresponds to the index in the returned array.
        nodeType - The node types to be considered. Logically OR the constants defined in ProcessConstants.NodeTypesForFilters.
        stateChanges - The state changes of nodes to be considered. If this is null, all state changes will be considered. Obviously only state changes referring to nodes will be considered.
        Returns:
        The amount of nodes that have the designated type and have undergone one of the designated state changes within the last seconds. The index in the array corresponds to the index in the amount of seconds. If a count cannot be determined for a timespan, the count will be -1 at this index.
      • getCountInstanceExecutionStatusChange

        long[] getCountInstanceExecutionStatusChange​(long[] timespans,
                                                     int instType,
                                                     ExecutionHistory.StateChange... stateChanges)
        Gets the amount of instances that have undergone one of the designated state changes within one of the designated time spans if the instance is of the designated type. That is, all instances of the designated type are considered. The designated timespans define the periods in seconds (!) that are considered backwards from now. For instance { 60, 300, 900 } considers the instances, that have undergone the designated state changes within the last minute, the last 5 minutes and the last 15 minutes. A timespan of 0 considers only instances that have currently an instance execution status corresponding to one of the designated state changes.
        Parameters:
        timespans - The timespans in seconds (!) that should be considered. The index in the array corresponds to the index in the returned array.
        instType - The instance types to be considered. Logically OR the constants defined in ProcessConstants.InstanceTypesForFilters.
        stateChanges - The state changes of instances to be considered. If this is null, all state changes will be considered. Obviously only state changes referring to instances will be considered.
        Returns:
        The amount of instances that have the designated type and entered one of the designated statuses within the last seconds. The index in the array corresponds to the index in the amount of seconds. If a count cannot be determined for a timespan, the count will be -1 at this index.