|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrockit.memleak.util.DelegatingValueFactory
public class DelegatingValueFactory
A value factory merely delegating to another implementation of
IMemleakValueFactory.
Intended to be sub classed, like an adapter. There is little point in using
it directly. (It isn't abstract, to make sure it implements all methods.)
| Field Summary | |
|---|---|
protected IMemleakValueFactory |
delegate
Value factory to delegate to. |
| Constructor Summary | |
|---|---|
DelegatingValueFactory(IMemleakValueFactory delegate)
Create a factory delegating everything to delegate. |
|
| Method Summary | |
|---|---|
IArrayInfo |
createArrayInfo(int objectID,
IClassInfo classInfo,
int length)
Create an IArrayInfo value object. |
IArraySizeInfo |
createArraySizeInfo(IArrayInfo arrayInfo,
long size)
Create IArraySizeInfo 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. |
IFieldInfo |
createFieldInfo(IClassInfo declaringClassInfo,
java.lang.String name,
int modifiers)
Create IFieldInfo value object. |
IHeapHistogram |
createHeapHistogram(int numInstances,
long size,
float growthRate,
long creationMillis,
java.util.List<ITypeHeapInfo<IClassInfo>> heapInfos,
java.util.Collection<ITypeHeapInfo<? extends INamedType>> groupedHeapInfos)
Create IHeapHistogram value object. |
IInstanceReferrers |
createInstanceReferrers(IObjectInfo targetInfo,
IObjectInfo[] ois,
IStaticField[] staticFields,
IThreadRoot[] threadRoots,
int globalHandles)
Create IInstanceReferrers value object. |
ILocation |
createLocation(IMethodInfo methodInfo,
int line)
Create a ILocation value object. |
IMethodInfo |
createMethodInfo(IClassInfo declaringClassInfo,
java.lang.String name,
java.lang.String descriptor,
int modifiers)
Create a IMethodInfo value object. |
IObjectInfo |
createObjectInfo(int objectID,
IClassInfo classInfo)
Create a IObjectInfo value object. |
IPointToTypeInfo |
createPointToTypeInfo(IClassInfo referredType,
int refInstances,
int[] instances,
IClassInfo[] referrers,
int totalRef)
Create IPointToTypeInfo value object. |
IFieldValue |
createPrimitiveFieldValue(IFieldInfo info,
java.lang.Object valueWrapper)
Create IFieldValue primitive value object. |
IValue |
createPrimitiveValue(java.lang.Object valueWrapper)
Create IValue primitive value object. |
IFieldValue |
createReferenceFieldValue(IFieldInfo info,
IObjectInfo value)
Create IFieldValue reference value object. |
IValue |
createReferenceValue(IObjectInfo value)
Create IValue reference value object. |
IRelationshipInfo |
createRelationshipInfo(IObjectInfo fromInfo,
long keepalive_size)
Create IRelationshipInfo value object. |
IStaticField |
createStaticField(IClassInfo declaringClassInfo,
java.lang.String fieldName,
int modifiers)
Create IStaticField value object. |
IThreadRoot |
createThreadRoot(java.lang.String name,
IMethodInfo methodInfo)
Create IThreadRoot value object. |
ITrace |
createTrace(int count,
ILocation[] stack)
Create ITrace value object. |
ITypeHeapInfo<IClassInfo> |
createTypeHeapInfo(IClassInfo classInfo,
int numInstances,
long size,
float growthRate,
long creationMillis)
Create ITypeHeapInfo value object. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IMemleakValueFactory delegate
| Constructor Detail |
|---|
public DelegatingValueFactory(IMemleakValueFactory delegate)
delegate.
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 IMemleakValueFactoryIArrayInfoIMemleakValueFactory.createObjectInfo(int, IClassInfo)
public IArraySizeInfo createArraySizeInfo(IArrayInfo arrayInfo,
long size)
IMemleakValueFactoryIArraySizeInfo value object.
createArraySizeInfo in interface IMemleakValueFactoryIArraySizeInfo
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 IMemleakValueFactoryclassLoaderSpec - or null if unknown
IClassInfo
public IFieldInfo createFieldInfo(IClassInfo declaringClassInfo,
java.lang.String name,
int modifiers)
IMemleakValueFactoryIFieldInfo value object.
createFieldInfo in interface IMemleakValueFactorydeclaringClassInfo - the class which defines this fieldmodifiers - access modifiers, per Modifier
IFieldInfo
public IHeapHistogram createHeapHistogram(int numInstances,
long size,
float growthRate,
long creationMillis,
java.util.List<ITypeHeapInfo<IClassInfo>> heapInfos,
java.util.Collection<ITypeHeapInfo<? extends INamedType>> groupedHeapInfos)
IMemleakValueFactoryIHeapHistogram value object.
createHeapHistogram in interface IMemleakValueFactoryIHeapHistogram
public IInstanceReferrers createInstanceReferrers(IObjectInfo targetInfo,
IObjectInfo[] ois,
IStaticField[] staticFields,
IThreadRoot[] threadRoots,
int globalHandles)
IMemleakValueFactoryIInstanceReferrers value object.
createInstanceReferrers in interface IMemleakValueFactoryIInstanceReferrers
public ILocation createLocation(IMethodInfo methodInfo,
int line)
IMemleakValueFactoryILocation value object.
createLocation in interface IMemleakValueFactoryILocation
public IMethodInfo createMethodInfo(IClassInfo declaringClassInfo,
java.lang.String name,
java.lang.String descriptor,
int modifiers)
IMemleakValueFactoryIMethodInfo value object.
createMethodInfo in interface IMemleakValueFactoryIMethodInfo
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 IMemleakValueFactoryIObjectInfo
public IPointToTypeInfo createPointToTypeInfo(IClassInfo referredType,
int refInstances,
int[] instances,
IClassInfo[] referrers,
int totalRef)
IMemleakValueFactoryIPointToTypeInfo value object.
createPointToTypeInfo in interface IMemleakValueFactoryIPointToTypeInfo
public IFieldValue createPrimitiveFieldValue(IFieldInfo info,
java.lang.Object valueWrapper)
IMemleakValueFactoryIFieldValue primitive value object.
createPrimitiveFieldValue in interface IMemleakValueFactoryIFieldValuepublic IValue createPrimitiveValue(java.lang.Object valueWrapper)
IMemleakValueFactoryIValue primitive value object.
createPrimitiveValue in interface IMemleakValueFactoryIValue
public IFieldValue createReferenceFieldValue(IFieldInfo info,
IObjectInfo value)
IMemleakValueFactoryIFieldValue reference value object.
createReferenceFieldValue in interface IMemleakValueFactoryIFieldValuepublic IValue createReferenceValue(IObjectInfo value)
IMemleakValueFactoryIValue reference value object.
createReferenceValue in interface IMemleakValueFactoryIValue
public IRelationshipInfo createRelationshipInfo(IObjectInfo fromInfo,
long keepalive_size)
IMemleakValueFactoryIRelationshipInfo value object.
createRelationshipInfo in interface IMemleakValueFactoryIRelationshipInfo
public IStaticField createStaticField(IClassInfo declaringClassInfo,
java.lang.String fieldName,
int modifiers)
IMemleakValueFactoryIStaticField value object.
createStaticField in interface IMemleakValueFactoryIStaticField
public IThreadRoot createThreadRoot(java.lang.String name,
IMethodInfo methodInfo)
IMemleakValueFactoryIThreadRoot value object.
createThreadRoot in interface IMemleakValueFactoryIThreadRoot
public ITrace createTrace(int count,
ILocation[] stack)
IMemleakValueFactoryITrace value object.
createTrace in interface IMemleakValueFactoryITrace
public ITypeHeapInfo<IClassInfo> createTypeHeapInfo(IClassInfo classInfo,
int numInstances,
long size,
float growthRate,
long creationMillis)
IMemleakValueFactoryITypeHeapInfo value object.
createTypeHeapInfo in interface IMemleakValueFactoryITypeHeapInfopublic boolean markDiscarded(IObjectInfo objectInfo)
IMemleakValueFactoryIObjectInfo in order to require access to the factory.
markDiscarded in interface IMemleakValueFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||