Oracle Fusion Middleware
Oracle WebLogic Server MBean Javadoc
11g Release 1 (10.3.4)

Part Number E13945-04

weblogic.management.configuration
Interface ServerFailureTriggerMBean

All Superinterfaces:
ConfigurationMBean

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
 int getMaxStuckThreadTime()
          The number of seconds that a thread must be continually working before this server diagnoses the thread as being stuck.
 int getStuckThreadCount()
          The number of stuck threads after which the server is transitioned into FAILED state.
 void setMaxStuckThreadTime(int time)
          Sets the value of the MaxStuckThreadTime attribute.
 void setStuckThreadCount(int count)
          Sets the value of the StuckThreadCount attribute.
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
 

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
Default Value:
600
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

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
Default Value:
0
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

setStuckThreadCount

void setStuckThreadCount(int count)

Sets the value of the StuckThreadCount attribute.

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

Copyright 1996, 2010, 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
Oracle WebLogic Server MBean Javadoc
11g Release 1 (10.3.4)

Part Number E13945-04