|
||||||||||
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 IObjectInfo s and IClassInfo s. |
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 IObjectInfo
s and IClassInfo
s.
delegate
- Method Detail |
---|
public IArrayInfo createArrayInfo(int objectID, IClassInfo classInfo, int length)
IMemleakValueFactory
IArrayInfo
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 IMemleakValueFactory
createArrayInfo
in class DelegatingValueFactory
IArrayInfo
IMemleakValueFactory.createObjectInfo(int, IClassInfo)
public IObjectSpecifier getObjectSpec(int objectID)
getObjectSpec
in interface IInfoCacheControl
IObjectSpecifier
corresponding to objectID, never
null, unless objectID is OBJECT_ID_NULL.public IObjectInfo getObjectInfo(IObjectSpecifier objectSpec)
getObjectInfo
in interface IInfoCacheControl
IObjectInfo
corresponding to objectSpec, or null.public IObjectInfo getObjectInfo(int objectID)
getObjectInfo
in interface IInfoCacheControl
IObjectInfo
corresponding to objectID, or null.public IObjectInfo createObjectInfo(int objectID, IClassInfo classInfo)
IMemleakValueFactory
IObjectInfo
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 IMemleakValueFactory
createObjectInfo
in class DelegatingValueFactory
IObjectInfo
public void clearObjects(int... objectIDs)
clearObjects
in interface IInfoCacheControl
public IClassRef getClassRef(int classID)
getClassRef
in interface IInfoCacheControl
IClassRef
corresponding to classID, never null, unless
classID is OBJECT_ID_NULL, maybe.public IClassInfo getClassInfo(int classID)
getClassInfo
in interface IInfoCacheControl
IClassInfo
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)
IMemleakValueFactory
IClassInfo
value object.
createClassInfo
in interface IMemleakValueFactory
createClassInfo
in class DelegatingValueFactory
classLoaderSpec
- or null if unknown
IClassInfo
public void clearClasses(int... classIDs)
clearClasses
in interface IInfoCacheControl
public void clearAll()
IInfoCacheControl
clearAll
in interface IInfoCacheControl
public ITypeHeapInfo<IClassInfo> createTypeHeapInfo(IClassInfo classInfo, int numInstances, long size, float growthRate, long creationMillis)
IMemleakValueFactory
ITypeHeapInfo
value object.
createTypeHeapInfo
in interface IMemleakValueFactory
createTypeHeapInfo
in class DelegatingValueFactory
ITypeHeapInfo
public ITypeHeapInfo<IClassInfo> getLastTypeHeapInfo(IClassInfo classInfo)
getLastTypeHeapInfo
in interface IInfoCacheControl
ITypeHeapInfo
for classInfo, or
null.public boolean markDiscarded(IObjectInfo objectInfo)
IMemleakValueFactory
IObjectInfo
in order to require access to the factory.
markDiscarded
in interface IMemleakValueFactory
markDiscarded
in class DelegatingValueFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |