Skip navigation links

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

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.management.configuration
Interface ServerFailureTriggerMBean

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

public interface ServerFailureTriggerMBean
extends ConfigurationMBean

Configuration to mark the server as failed when threads are stuck. A failed server in turn can be configured to shutdown or go into admin state.


Field Summary

 

Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY

 

Method Summary
abstract  int getMaxStuckThreadTime()
          The number of seconds that a thread must be continually working before this server diagnoses the thread as being stuck.
abstract  int getStuckThreadCount()
          The number of stuck threads after which the server is transitioned into FAILED state.
abstract  void setMaxStuckThreadTime(int time)
          Sets the value of the MaxStuckThreadTime attribute.
abstract  void setStuckThreadCount(int count)
          Sets the value of the StuckThreadCount attribute.

 

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

getMaxStuckThreadTime

int getMaxStuckThreadTime()

The number of seconds that a thread must be continually working before this server diagnoses the thread as being stuck.

For example, if you set this to 600 seconds, WebLogic Server considers a thread to be "stuck" after 600 seconds of continuous use.

Returns:
The MaxStuckThreadTime value

setMaxStuckThreadTime

void setMaxStuckThreadTime(int time)

Sets the value of the MaxStuckThreadTime attribute.

Parameters:
time - The new stuckThreadMaxTime value in seconds
See Also:
ServerFailureTriggerMBean.getMaxStuckThreadTime()

getStuckThreadCount

int getStuckThreadCount()

The number of stuck threads after which the server is transitioned into FAILED state. There are options in OverloadProtectionMBean to suspend and shutdown a FAILED server. By default, the server continues to run in FAILED state.

If the StuckThreadCount value is set to zero then the server never transitions into FAILED server irrespective of the number of stuck threads.

Returns:
The StuckThreadCount value

setStuckThreadCount

void setStuckThreadCount(int count)

Sets the value of the StuckThreadCount attribute.

Parameters:
count - The new StuckThreadCount value
See Also:
ServerFailureTriggerMBean.getStuckThreadCount()

Skip navigation links

Copyright 1996, 2015, 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.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09