Interface ResourceThresholdsBean

All Superinterfaces:
weblogic.descriptor.DescriptorBean, weblogic.descriptor.SettableBean

public interface ResourceThresholdsBean extends weblogic.descriptor.DescriptorBean
ResourceThresholdBean Represents a resource threshold policy for CPU, memory, etc.

Represents a resource threshold policy for system resources such as CPU or memory. The bean provides the configuration parameters for specifying resource type, and its allowed minimum and maximum thresholds.

Author:
Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
  • Method Details

    • getResourceThreshold

      ResourceThresholdBean[] getResourceThreshold()

      Returns the ResourceThreshold parameters that control overload protection for this engine.

      Contains all limits and thresholds used to manage media resource utilization and avoid server exhaustion.

      Returns:
      ResourceThresholdBean
    • createResourceThreshold

      ResourceThresholdBean createResourceThreshold(String resourceName)
      Creates and adds a new ResourceThresholdBean instance for the specified resource name to this MediaOverLoadProtectionBean. The created ResourceThresholdBean will represent threshold limits for managing the specified resource (e.g., CPU, memory) in overload protection scenarios.

      If a resource threshold with the given name already exists, behavior is implementation-specific (may return an existing instance or create a new one). the name of the resource (such as "CPU" or "Memory") for which the threshold will be created

      Parameters:
      resourceName - ResourceThresholdBean resourceName
      Returns:
      ResourceThresholdBean
    • lookupResourceThreshold

      ResourceThresholdBean lookupResourceThreshold(String resourceName)
      Looks up and returns the ResourceThresholdBean that corresponds to the specified resource name.

      This method is used to retrieve the threshold policy associated with the given resource (such as "CPU" or "Memory") for overload protection. If no threshold is defined for the specified resource, this method returns null.

      Parameters:
      resourceName - ResourceThresholdBean resourceName the name of the resource for which to look up the threshold (e.g., "CPU", "Memory")
      Returns:
      ResourceThresholdBean
    • destroyResourceThreshold

      void destroyResourceThreshold(ResourceThresholdBean resourceThreshold)
      Removes and destroys the specified ResourceThresholdBean instance from this MediaOverLoadProtectionBean.

      This method is used to delete an existing resource threshold policy associated with a particular resource (such as "CPU" or "Memory") in the overload protection configuration. After invocation, the specified ResourceThresholdBean will no longer be managed by this bean, and associated resource limits will no longer apply.

      Parameters:
      resourceThreshold - ResourceThresholdBean