|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.internal.stats.StatsManager
public class StatsManager
| Field Summary | |
|---|---|
static java.lang.String |
FRAMEWORK_SYMBOLICNAME
|
static boolean |
MONITOR_ACTIVATION
|
static boolean |
MONITOR_CLASSES
|
static boolean |
MONITOR_RESOURCES
|
static boolean |
TRACE_BUNDLES
|
static boolean |
TRACE_CLASSES
|
static java.lang.String |
TRACE_FILENAME
|
static java.lang.String |
TRACE_FILTERS
|
| Fields inherited from interface org.eclipse.osgi.framework.adaptor.BundleWatcher |
|---|
END_ACTIVATION, END_DEACTIVATION, END_INSTALLING, END_UNINSTALLING, START_ACTIVATION, START_DEACTIVATION, START_INSTALLING, START_UNINSTALLING |
| Constructor Summary | |
|---|---|
StatsManager()
|
|
| Method Summary | |
|---|---|
void |
addHooks(HookRegistry hookRegistry)
Adds hooks to the specified hook registry. |
static void |
doneBooting()
|
void |
endActivation(Bundle symbolicName)
|
BundleStats |
findBundle(java.lang.String symbolicName,
long id)
|
static java.lang.String[] |
getArrayFromList(java.lang.String prop)
Returns the result of converting a list of comma-separated tokens into an array |
BundleStats |
getBundle(long id)
|
BundleStats[] |
getBundles()
|
static StatsManager |
getDefault()
|
static boolean |
isBooting()
|
void |
postFindLocalClass(java.lang.String name,
java.lang.Class clazz,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalClass(String) after
searching the local classloader for a class. |
void |
postFindLocalResource(java.lang.String name,
java.net.URL resource,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalResource(String) after
searching the local classloader for a resource. |
void |
preFindLocalClass(java.lang.String name,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalClass(String) before
searching the local classloader for a class. |
void |
preFindLocalResource(java.lang.String name,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalResource(String) before
searching the local classloader for a resource. |
void |
recordClassDefine(java.lang.String name,
java.lang.Class clazz,
byte[] classbytes,
ClasspathEntry classpathEntry,
BundleEntry entry,
ClasspathManager manager)
Gets called by a classpath manager after a successfully defining a class. |
static void |
setDebugOptions()
|
void |
startActivation(Bundle bundle)
|
void |
watchBundle(Bundle bundle,
int type)
Receives notification that a lifecycle change is going to start or has ended. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean MONITOR_ACTIVATION
public static boolean MONITOR_CLASSES
public static boolean MONITOR_RESOURCES
public static java.lang.String TRACE_FILENAME
public static java.lang.String TRACE_FILTERS
public static boolean TRACE_CLASSES
public static boolean TRACE_BUNDLES
public static final java.lang.String FRAMEWORK_SYMBOLICNAME
| Constructor Detail |
|---|
public StatsManager()
| Method Detail |
|---|
public static StatsManager getDefault()
public static void setDebugOptions()
public static void doneBooting()
public static boolean isBooting()
public static java.lang.String[] getArrayFromList(java.lang.String prop)
prop - the initial comma-separated string
public void watchBundle(Bundle bundle,
int type)
BundleWatcher
watchBundle in interface BundleWatcherbundle - the bundle for which the lifecycle change is occurring on.type - the type of lifecycle change which is occurring.BundleWatcher.START_INSTALLING,
BundleWatcher.END_INSTALLING,
BundleWatcher.START_ACTIVATION,
BundleWatcher.END_ACTIVATION,
BundleWatcher.START_DEACTIVATION,
BundleWatcher.END_DEACTIVATION,
BundleWatcher.START_UNINSTALLING,
BundleWatcher.END_UNINSTALLINGpublic void startActivation(Bundle bundle)
public void endActivation(Bundle symbolicName)
public BundleStats findBundle(java.lang.String symbolicName,
long id)
public BundleStats[] getBundles()
public BundleStats getBundle(long id)
public void preFindLocalClass(java.lang.String name,
ClasspathManager manager)
throws java.lang.ClassNotFoundException
ClassLoadingStatsHookClasspathManager.findLocalClass(String) before
searching the local classloader for a class. A classpath manager will call this method for
each configured class loading stat hook.
preFindLocalClass in interface ClassLoadingStatsHookname - the name of the requested classmanager - the classpath manager used to find and load the requested class
java.lang.ClassNotFoundException - to prevent the requested class from loading
public void postFindLocalClass(java.lang.String name,
java.lang.Class clazz,
ClasspathManager manager)
ClassLoadingStatsHookClasspathManager.findLocalClass(String) after
searching the local classloader for a class. A classpath manager will call this method for
each configured class loading stat hook.
postFindLocalClass in interface ClassLoadingStatsHookname - the name of the requested classclazz - the loaded class or null if not foundmanager - the classpath manager used to find and load the requested class
public void preFindLocalResource(java.lang.String name,
ClasspathManager manager)
ClassLoadingStatsHookClasspathManager.findLocalResource(String) before
searching the local classloader for a resource. A classpath manager will call this method for
each configured class loading stat hook.
preFindLocalResource in interface ClassLoadingStatsHookname - the name of the requested resourcemanager - the classpath manager used to find the requested resource
public void postFindLocalResource(java.lang.String name,
java.net.URL resource,
ClasspathManager manager)
ClassLoadingStatsHookClasspathManager.findLocalResource(String) after
searching the local classloader for a resource. A classpath manager will call this method for
each configured class loading stat hook.
postFindLocalResource in interface ClassLoadingStatsHookname - the name of the requested resourceresource - the URL to the requested resource or null if not foundmanager - the classpath manager used to find the requested resource
public void recordClassDefine(java.lang.String name,
java.lang.Class clazz,
byte[] classbytes,
ClasspathEntry classpathEntry,
BundleEntry entry,
ClasspathManager manager)
ClassLoadingStatsHook
recordClassDefine in interface ClassLoadingStatsHookname - the name of the class that got definedclazz - the class object that got definedclassbytes - the class bytes used to define the classclasspathEntry - the ClasspathEntry where the class bytes got read fromentry - the BundleEntyr source of the class bytesmanager - the classpath manager used to define the classpublic void addHooks(HookRegistry hookRegistry)
HookConfigurator
addHooks in interface HookConfiguratorhookRegistry - the hook registry used to add hooks
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||