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.runtime
Interface ExecuteThread

All Superinterfaces:
Serializable

public interface ExecuteThread
extends Serializable

Exposes the runtime state of an execute thread.


Method Summary
abstract  String getApplicationName()
          Returns the application name only, without the version number, using the context class loader of the thread.
abstract  String getApplicationVersion()
          Returns the application version using the context class loader of the thread.
abstract  String getCurrentRequest()
          Returns a String representation of the request this thread is currently processing.
abstract  Thread getExecuteThread()
          Returns the thread
abstract  String getLastRequest()
          Deprecated. 7.0, 2002-Feb-20 -- current request is what counts most
abstract  String getModuleName()
          Returns the module name using the context class loader of the thread.
abstract  String getName()
          Returns the name of the ExecuteThread.
abstract  int getServicedRequestTotalCount()
          Returns the number of requests which have been processed by this queue.
abstract  long getStuckThreadActionMaxStuckThreadTime()
          If the thread is stuck, returns the configured max stuck thread time (in milliseconds) of the StuckThreadAction returned in getStuckThreadActionName().
abstract  String getStuckThreadActionName()
          If the thread is stuck, returns the name of the StuckThreadAction whose stuck thread max time has been exceeded.
abstract  JTATransaction getTransaction()
          Returns the transaction that the execute thread is currently working on behalf of.
abstract  String getUser()
          Returns the user the execute thread is currently working on behalf of.
abstract  String getWorkManagerName()
          Returns the current WorkManager name.
abstract  boolean isHogger()
          Returns true if the execute thread is being hogged by a request for much more than the normal execution time as observed by the scheduler automatically.
abstract  boolean isIdle()
          Returns true if the execute thread has no work assigned to it.
abstract  boolean isStandby()
          Returns true if the execute thread is not a part of the active thread pool
abstract  boolean isStuck()
          Returns true if the execute thread is stuck working on a request for more than the configured stuck thread max time.

 

Method Detail

getCurrentRequest

String getCurrentRequest()
Returns a String representation of the request this thread is currently processing.
Returns:
The currentRequest value

getLastRequest

String getLastRequest()
Deprecated. 7.0, 2002-Feb-20 -- current request is what counts most
Returns a String representation of the last request this thread processed.
Returns:
The lastRequest value

getServicedRequestTotalCount

int getServicedRequestTotalCount()
Returns the number of requests which have been processed by this queue.
Returns:
The servicedRequestTotalCount value

isIdle

boolean isIdle()
Returns true if the execute thread has no work assigned to it.
Returns:
The idle value

isStuck

boolean isStuck()
Returns true if the execute thread is stuck working on a request for more than the configured stuck thread max time.

isHogger

boolean isHogger()
Returns true if the execute thread is being hogged by a request for much more than the normal execution time as observed by the scheduler automatically. If this thread is still busy after the stuck thread max time, then it is declared as stuck.

isStandby

boolean isStandby()
Returns true if the execute thread is not a part of the active thread pool
Returns:
The standby value

getTransaction

JTATransaction getTransaction()
Returns the transaction that the execute thread is currently working on behalf of.
Returns:
The transaction value

getUser

String getUser()
Returns the user the execute thread is currently working on behalf of.
Returns:
The user value

getName

String getName()
Returns the name of the ExecuteThread.
Returns:
The name value

getWorkManagerName

String getWorkManagerName()
Returns the current WorkManager name. Returns NULL for execute queues.

getApplicationName

String getApplicationName()
Returns the application name only, without the version number, using the context class loader of the thread. The appropriate class loader is automatically set for each thread by the server. This method returns NULL for execute queues.

getModuleName

String getModuleName()
Returns the module name using the context class loader of the thread. The appropriate class loader is automatically set for each thread by the server. In certain scenarios where modules do not have their own class loaders, this method would return NULL. This method also returns NULL for execute queues.

getApplicationVersion

String getApplicationVersion()
Returns the application version using the context class loader of the thread. The appropriate class loader is automatically set for each thread by the server.

getExecuteThread

Thread getExecuteThread()
Returns the thread

getStuckThreadActionName

String getStuckThreadActionName()
If the thread is stuck, returns the name of the StuckThreadAction whose stuck thread max time has been exceeded. If the stuck thread max time of more than one StuckThreadAction has been exceeded, name of only one of these StuckThreadAction will be returned. Returns null if the thread is not stuck.

getStuckThreadActionMaxStuckThreadTime

long getStuckThreadActionMaxStuckThreadTime()
If the thread is stuck, returns the configured max stuck thread time (in milliseconds) of the StuckThreadAction returned in getStuckThreadActionName(). Returns 0 if the thread is not stuck.

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