Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.management.configuration
Interface WorkManagerMBean

All Superinterfaces:
ConfigurationMBean, DeploymentMBean, DescriptorBean, DynamicMBean, MBeanRegistration, NotificationBroadcaster, SettableBean, WebLogicMBean

public interface WorkManagerMBean
extends DeploymentMBean

Configuration MBean representing WorkManager parameters. A WorkManager configuration can have a RequestClass(FairShare, ResponseTime, ContextBased), MinThreadsConstraint, MaxThreadsConstraint, Capacity and ShutdownTrigger. All these are optional and need to be configured as needed. An empty WorkManager without configuration gets its own default fair share. The default fair share value is 50.


Field Summary
 
Fields inherited from interface weblogic.management.configuration.DeploymentMBean
DEFAULT_ORDER, MAX_ORDER, MIN_ORDER
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 WorkManagerShutdownTriggerMBean createWorkManagerShutdownTrigger()
          Configure the shutdown trigger for the WorkManager.
 void destroyWorkManagerShutdownTrigger()
          Remove the configured shutdown trigger for the WorkManager.
 CapacityMBean getCapacity()
          The total number of requests that can be queued or executing before WebLogic Server begins rejecting requests.
 ContextRequestClassMBean getContextRequestClass()
          The mapping of Request Classes to security names and groups.
 FairShareRequestClassMBean getFairShareRequestClass()
          Get the FairShareRequestClass for this WorkManager
 boolean getIgnoreStuckThreads()
          Specifies whether this Work Manager ignores "stuck" threads.
 MaxThreadsConstraintMBean getMaxThreadsConstraint()
          The maximum number of concurrent threads that can be allocated to execute requests.
 MinThreadsConstraintMBean getMinThreadsConstraint()
          The minimum number of threads allocated to resolve deadlocks.
 ResponseTimeRequestClassMBean getResponseTimeRequestClass()
          The response time goal (in milliseconds).
 WorkManagerShutdownTriggerMBean getWorkManagerShutdownTrigger()
          Configure a shutdown trigger for this WorkManager.
 void setCapacity(CapacityMBean cap)
          Sets the total number of requests that can be queued or executing before WebLogic Server begins rejecting requests.
 void setContextRequestClass(ContextRequestClassMBean crc)
          The mapping of Request Classes to security names and groups.
 void setFairShareRequestClass(FairShareRequestClassMBean fsrc)
          Set the FairShareRequestClass for this WorkManager
 void setIgnoreStuckThreads(boolean value)
          Specifies whether this Work Manager ignores "stuck" threads.
 void setMaxThreadsConstraint(MaxThreadsConstraintMBean mtc)
          The maximum number of concurrent threads that can be allocated to execute requests.
 void setMinThreadsConstraint(MinThreadsConstraintMBean mtc)
          The minimum number of threads allocated to resolve deadlocks.
 void setResponseTimeRequestClass(ResponseTimeRequestClassMBean rtrc)
          The response time goal (in milliseconds).
 
Methods inherited from interface weblogic.management.configuration.DeploymentMBean
addTarget, getDeploymentOrder, getTargets, removeTarget, setDeploymentOrder, setTargets
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods inherited from interface weblogic.descriptor.DescriptorBean
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener
 

Method Detail

getFairShareRequestClass

FairShareRequestClassMBean getFairShareRequestClass()

Get the FairShareRequestClass for this WorkManager

See Also:
FairShareRequestClassMBean

setFairShareRequestClass

void setFairShareRequestClass(FairShareRequestClassMBean fsrc)

Set the FairShareRequestClass for this WorkManager

See Also:
FairShareRequestClassMBean

getResponseTimeRequestClass

ResponseTimeRequestClassMBean getResponseTimeRequestClass()

The response time goal (in milliseconds).

Returns:
The response time value
See Also:
ResponseTimeRequestClassMBean

setResponseTimeRequestClass

void setResponseTimeRequestClass(ResponseTimeRequestClassMBean rtrc)

The response time goal (in milliseconds).

See Also:
ResponseTimeRequestClassMBean

getContextRequestClass

ContextRequestClassMBean getContextRequestClass()

The mapping of Request Classes to security names and groups.

See Also:
ContextRequestClassMBean

setContextRequestClass

void setContextRequestClass(ContextRequestClassMBean crc)

The mapping of Request Classes to security names and groups.

See Also:
ContextRequestClassMBean

getMinThreadsConstraint

MinThreadsConstraintMBean getMinThreadsConstraint()

The minimum number of threads allocated to resolve deadlocks.

Returns:
The min threads value
See Also:
MinThreadsConstraintMBean

setMinThreadsConstraint

void setMinThreadsConstraint(MinThreadsConstraintMBean mtc)

The minimum number of threads allocated to resolve deadlocks.

See Also:
MinThreadsConstraintMBean

getMaxThreadsConstraint

MaxThreadsConstraintMBean getMaxThreadsConstraint()

The maximum number of concurrent threads that can be allocated to execute requests.

Returns:
The max threads value
See Also:
MaxThreadsConstraintMBean

setMaxThreadsConstraint

void setMaxThreadsConstraint(MaxThreadsConstraintMBean mtc)

The maximum number of concurrent threads that can be allocated to execute requests.

See Also:
MaxThreadsConstraintMBean

getCapacity

CapacityMBean getCapacity()

The total number of requests that can be queued or executing before WebLogic Server begins rejecting requests.

Returns:
The capacity value
See Also:
CapacityMBean

setCapacity

void setCapacity(CapacityMBean cap)

Sets the total number of requests that can be queued or executing before WebLogic Server begins rejecting requests.

See Also:
CapacityMBean

getIgnoreStuckThreads

boolean getIgnoreStuckThreads()

Specifies whether this Work Manager ignores "stuck" threads. Typically, stuck threads will cause the associated Work Manager to take some action: either switching the application to Admin mode, shutting down the server, or shutting down the Work Manager. If this flag is set, then no thread in this Work Manager is ever considered stuck.

If you do not explicitly specify IGNORE_STUCK_THREADS=TRUE, the default behavior is that upon encountering stuck threads, the server will take one of the aforementioned actions.

See Also:
WorkManagerShutdownTriggerMBean

setIgnoreStuckThreads

void setIgnoreStuckThreads(boolean value)

Specifies whether this Work Manager ignores "stuck" threads.

See Also:
WorkManagerMBean.getIgnoreStuckThreads()

getWorkManagerShutdownTrigger

WorkManagerShutdownTriggerMBean getWorkManagerShutdownTrigger()

Configure a shutdown trigger for this WorkManager. Specifies the condition to be used to shutdown the WorkManager. The Server health monitoring periodically checks to see if the conidtion is met and shuts down the work manager if needed.


createWorkManagerShutdownTrigger

WorkManagerShutdownTriggerMBean createWorkManagerShutdownTrigger()

Configure the shutdown trigger for the WorkManager.


destroyWorkManagerShutdownTrigger

void destroyWorkManagerShutdownTrigger()

Remove the configured shutdown trigger for the WorkManager.


Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02