|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrockit.memleak.util.DelegatingValueFactory
com.jrockit.memleak.mlp.InfoCachingFactory
public class InfoCachingFactory
| Field Summary |
|---|
| Fields inherited from class com.jrockit.memleak.util.DelegatingValueFactory |
|---|
delegate |
| Constructor Summary | |
|---|---|
InfoCachingFactory(IMemleakValueFactory delegate)
Create a factory delegating everything to delegate, but
caching created IObjectInfos and IClassInfos. |
|
| Method Summary | |
|---|---|
void |
clearAll()
Clear everything |
void |
clearClasses(int... classIDs)
|
void |
clearObjects(int... objectIDs)
|
IArrayInfo |
createArrayInfo(int objectID,
IClassInfo classInfo,
int length)
Create an IArrayInfo value object. |
IClassInfo |
createClassInfo(int classID,
java.lang.String name,
int modifiers,
int numDeclaredStaticFields,
int numInstanceFields,
java.lang.String srcFileName,
IObjectSpecifier classLoaderSpec)
Create IClassInfo value object. |
IObjectInfo |
createObjectInfo(int objectID,
IClassInfo classInfo)
Create a IObjectInfo value object. |
ITypeHeapInfo<IClassInfo> |
createTypeHeapInfo(IClassInfo classInfo,
int numInstances,
long size,
float growthRate,
long creationMillis)
Create ITypeHeapInfo value object. |
IClassInfo |
getClassInfo(int classID)
|
IClassRef |
getClassRef(int classID)
|
ITypeHeapInfo<IClassInfo> |
getLastTypeHeapInfo(IClassInfo classInfo)
|
IObjectInfo |
getObjectInfo(int objectID)
|
IObjectInfo |
getObjectInfo(IObjectSpecifier objectSpec)
|
IObjectSpecifier |
getObjectSpec(int objectID)
|
boolean |
markDiscarded(IObjectInfo objectInfo)
Mark the given objectInfo as discarded, if possible and if (it is likely that) the objectInfo was created by this factory. |
| Methods inherited from class com.jrockit.memleak.util.DelegatingValueFactory |
|---|
createArraySizeInfo, createFieldInfo, createHeapHistogram, createInstanceReferrers, createLocation, createMethodInfo, createPointToTypeInfo, createPrimitiveFieldValue, createPrimitiveValue, createReferenceFieldValue, createReferenceValue, createRelationshipInfo, createStaticField, createThreadRoot, createTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InfoCachingFactory(IMemleakValueFactory delegate)
delegate, but
caching created IObjectInfos and IClassInfos.
delegate - | Method Detail |
|---|
public IArrayInfo createArrayInfo(int objectID,
IClassInfo classInfo,
int length)
IMemleakValueFactoryIArrayInfo value object.
IClassInfo.isArrayClass() for classInfo must be
true, or IllegalArgumentException will be thrown.
Note that if length is unknown (-1),
IMemleakValueFactory.createObjectInfo(int, IClassInfo) may be called instead.
createArrayInfo in interface IMemleakValueFactorycreateArrayInfo in class DelegatingValueFactoryIArrayInfoIMemleakValueFactory.createObjectInfo(int, IClassInfo)public IObjectSpecifier getObjectSpec(int objectID)
getObjectSpec in interface IInfoCacheControlIObjectSpecifier corresponding to objectID, never
null, unless objectID is OBJECT_ID_NULL.public IObjectInfo getObjectInfo(IObjectSpecifier objectSpec)
getObjectInfo in interface IInfoCacheControlIObjectInfo corresponding to objectSpec, or null.public IObjectInfo getObjectInfo(int objectID)
getObjectInfo in interface IInfoCacheControlIObjectInfo corresponding to objectID, or null.
public IObjectInfo createObjectInfo(int objectID,
IClassInfo classInfo)
IMemleakValueFactoryIObjectInfo value object.
If IClassInfo.isArrayClass() for classInfo is true,
an IArrayInfo must be returned, with the length set to the uninitialized
value -1. The instance should preferably also implement
IModifyOnce.
createObjectInfo in interface IMemleakValueFactorycreateObjectInfo in class DelegatingValueFactoryIObjectInfopublic void clearObjects(int... objectIDs)
clearObjects in interface IInfoCacheControlpublic IClassRef getClassRef(int classID)
getClassRef in interface IInfoCacheControlIClassRef corresponding to classID, never null, unless
classID is OBJECT_ID_NULL, maybe.public IClassInfo getClassInfo(int classID)
getClassInfo in interface IInfoCacheControlIClassInfo corresponding to classID, or null.
public IClassInfo createClassInfo(int classID,
java.lang.String name,
int modifiers,
int numDeclaredStaticFields,
int numInstanceFields,
java.lang.String srcFileName,
IObjectSpecifier classLoaderSpec)
IMemleakValueFactoryIClassInfo value object.
createClassInfo in interface IMemleakValueFactorycreateClassInfo in class DelegatingValueFactoryclassLoaderSpec - or null if unknown
IClassInfopublic void clearClasses(int... classIDs)
clearClasses in interface IInfoCacheControlpublic void clearAll()
IInfoCacheControl
clearAll in interface IInfoCacheControl
public ITypeHeapInfo<IClassInfo> createTypeHeapInfo(IClassInfo classInfo,
int numInstances,
long size,
float growthRate,
long creationMillis)
IMemleakValueFactoryITypeHeapInfo value object.
createTypeHeapInfo in interface IMemleakValueFactorycreateTypeHeapInfo in class DelegatingValueFactoryITypeHeapInfopublic ITypeHeapInfo<IClassInfo> getLastTypeHeapInfo(IClassInfo classInfo)
getLastTypeHeapInfo in interface IInfoCacheControlITypeHeapInfo for classInfo, or
null.public boolean markDiscarded(IObjectInfo objectInfo)
IMemleakValueFactoryIObjectInfo in order to require access to the factory.
markDiscarded in interface IMemleakValueFactorymarkDiscarded in class DelegatingValueFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||