Interface ResourceThresholdsBean
- All Superinterfaces:
weblogic.descriptor.DescriptorBean,weblogic.descriptor.SettableBean
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 Summary
Modifier and TypeMethodDescriptioncreateResourceThreshold(String resourceName) Creates and adds a newResourceThresholdBeaninstance for the specified resource name to this MediaOverLoadProtectionBean.voiddestroyResourceThreshold(ResourceThresholdBean resourceThreshold) Removes and destroys the specifiedResourceThresholdBeaninstance from thisMediaOverLoadProtectionBean.Returns the ResourceThreshold parameters that control overload protection for this engine.lookupResourceThreshold(String resourceName) Looks up and returns theResourceThresholdBeanthat corresponds to the specified resource name.Methods inherited from interface weblogic.descriptor.DescriptorBean
addBeanUpdateListener, addPropertyChangeListener, createChildCopy, createChildCopyIncludingObsolete, getDescriptor, getParentBean, isEditable, removeBeanUpdateListener, removePropertyChangeListenerMethods inherited from interface weblogic.descriptor.SettableBean
isSet, unSet
-
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
Creates and adds a newResourceThresholdBeaninstance for the specified resource name to this MediaOverLoadProtectionBean. The createdResourceThresholdBeanwill 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
Looks up and returns theResourceThresholdBeanthat 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
Removes and destroys the specifiedResourceThresholdBeaninstance from thisMediaOverLoadProtectionBean.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
ResourceThresholdBeanwill no longer be managed by this bean, and associated resource limits will no longer apply.- Parameters:
resourceThreshold- ResourceThresholdBean
-