Interface ProcessManagerMXBean


  • public interface ProcessManagerMXBean
    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

      • getCountNodeState

        long getCountNodeState​(int nodeType,
                               ProcessConstants.NodeState... states)
        Gets the amount of nodes that is in one of the designated states if the node is of the designated type. That is, all nodes of the designated type are considered.
        Parameters:
        nodeType - The node types to be considered. Logically OR the constants defined in ProcessConstants.NodeTypesForFilters.
        states - The node states to be considered. If this is null, all node states will be considered.
        Returns:
        The amount of nodes that have the designated type and are in one of the designated states. If there are problems, they will be logged and -1 will be returned.
        See Also:
        ProcessConstants.NodeTypesForFilters
      • getCountInstanceExecutionStatus

        long getCountInstanceExecutionStatus​(int instType,
                                             ProcessConstants.InstanceExecutionStatus... statuses)
        Gets the amount of instances that entered one of the designated instance execution statuses 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.
        Parameters:
        instType - The instance types to be considered. Logically OR the constants defined in ProcessConstants.InstanceTypesForFilters.
        statuses - The instance execution statuses to be considered. If this is null, all instance execution statuses will be considered.
        Returns:
        The amount of instances that have the designated type and are in one of the designated statuses. If there are problems, they will be logged and -1 will be returned.
        See Also:
        ProcessConstants.InstanceTypesForFilters