|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.util.ReflectionUtils
public class ReflectionUtils
General reflection utils
Constructor Summary | |
---|---|
ReflectionUtils()
|
Method Summary | |
---|---|
static void |
logThreadInfo(org.apache.commons.logging.Log log,
String title,
long minInterval)
Log the current thread stacks at INFO level. |
static Object |
newInstance(Class<?> theClass,
Configuration conf)
Create an object for the given class and initialize it from conf |
static void |
printThreadInfo(PrintWriter stream,
String title)
Print all of the thread's information and stack traces. |
static void |
setConf(Object theObject,
Configuration conf)
Check and set 'configuration' if necessary. |
static void |
setContentionTracing(boolean val)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReflectionUtils()
Method Detail |
---|
public static void setConf(Object theObject, Configuration conf)
theObject
- object for which to set configurationconf
- Configurationpublic static Object newInstance(Class<?> theClass, Configuration conf)
theClass
- class of which an object is createdconf
- Configuration
public static void setContentionTracing(boolean val)
public static void printThreadInfo(PrintWriter stream, String title)
stream
- the stream totitle
- a string title for the stack tracepublic static void logThreadInfo(org.apache.commons.logging.Log log, String title, long minInterval)
log
- the logger that logs the stack tracetitle
- a descriptive title for the call stacksminInterval
- the minimum time from the last
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |