public class FlashlightUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
compareIntegral(Class c1,
Class c2)
return true if they are the same -- ignoring boxing/unboxing
AND if they are "integrals"
|
static boolean |
compareIntegralOrFloat(Class c1,
Class c2) |
static DTraceContract |
getDtraceEngine() |
static String[] |
getParamNames(Method method)
bnevins -- I see 2 exact copies of this big chunk of code -- so I moved it here!
bnevins Oct 18, 2009 -- I can't see any reason why we FORCE users to annotate every single
parameter! We should just make a name up if they don't provide one.
|
static List<Method> |
getProbeMethods(Class<?> clazz)
return the Methods in the clazz that are annotated as Probe.
|
static String |
getUniqueInvokerId(String suffix) |
static void |
initialize(org.glassfish.hk2.api.ServiceLocator h,
MonitoringService mc) |
static boolean |
isDtraceAvailable() |
static boolean |
isDtraceEnabled()
This only reveals whether it is enabled in domain.xml
isDtraceAvailable() checks this AND a few other things
|
static boolean |
isIntegral(Class clazz) |
static boolean |
isIntegralOrFloat(Class clazz) |
static boolean |
isLegalDtraceParam(Class clazz) |
static boolean |
isMonitoringEnabled() |
static String |
makeName(FlashlightProbeProvider provider) |
static String |
makeName(String a,
String b,
String c) |
static void |
setDTraceEnabled(boolean b) |
static void |
setMonitoringEnabled(boolean b) |
public static void initialize(org.glassfish.hk2.api.ServiceLocator h, MonitoringService mc)
public static void setDTraceEnabled(boolean b)
public static void setMonitoringEnabled(boolean b)
public static boolean isMonitoringEnabled()
public static boolean isDtraceAvailable()
public static boolean isDtraceEnabled()
public static DTraceContract getDtraceEngine()
public static String[] getParamNames(Method method)
method
- public static List<Method> getProbeMethods(Class<?> clazz)
clazz
- public static boolean isLegalDtraceParam(Class clazz)
public static boolean isIntegral(Class clazz)
public static boolean isIntegralOrFloat(Class clazz)
public static boolean compareIntegral(Class c1, Class c2)
c1
- c2
- public static String makeName(FlashlightProbeProvider provider)
Copyright © 2019. All rights reserved.