|
||||||||||
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)
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
IArrayInfo
IMemleakValueFactory.createObjectInfo(int, IClassInfo)
public IArraySizeInfo createArraySizeInfo(IArrayInfo arrayInfo, long size)
IMemleakValueFactory
IArraySizeInfo
value object.
createArraySizeInfo
in interface IMemleakValueFactory
IArraySizeInfo
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
classLoaderSpec
- or null if unknown
IClassInfo
public IFieldInfo createFieldInfo(IClassInfo declaringClassInfo, java.lang.String name, int modifiers)
IMemleakValueFactory
IFieldInfo
value object.
createFieldInfo
in interface IMemleakValueFactory
declaringClassInfo
- 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)
IMemleakValueFactory
IHeapHistogram
value object.
createHeapHistogram
in interface IMemleakValueFactory
IHeapHistogram
public IInstanceReferrers createInstanceReferrers(IObjectInfo targetInfo, IObjectInfo[] ois, IStaticField[] staticFields, IThreadRoot[] threadRoots, int globalHandles)
IMemleakValueFactory
IInstanceReferrers
value object.
createInstanceReferrers
in interface IMemleakValueFactory
IInstanceReferrers
public ILocation createLocation(IMethodInfo methodInfo, int line)
IMemleakValueFactory
ILocation
value object.
createLocation
in interface IMemleakValueFactory
ILocation
public IMethodInfo createMethodInfo(IClassInfo declaringClassInfo, java.lang.String name, java.lang.String descriptor, int modifiers)
IMemleakValueFactory
IMethodInfo
value object.
createMethodInfo
in interface IMemleakValueFactory
IMethodInfo
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
IObjectInfo
public IPointToTypeInfo createPointToTypeInfo(IClassInfo referredType, int refInstances, int[] instances, IClassInfo[] referrers, int totalRef)
IMemleakValueFactory
IPointToTypeInfo
value object.
createPointToTypeInfo
in interface IMemleakValueFactory
IPointToTypeInfo
public IFieldValue createPrimitiveFieldValue(IFieldInfo info, java.lang.Object valueWrapper)
IMemleakValueFactory
IFieldValue
primitive value object.
createPrimitiveFieldValue
in interface IMemleakValueFactory
IFieldValue
public IValue createPrimitiveValue(java.lang.Object valueWrapper)
IMemleakValueFactory
IValue
primitive value object.
createPrimitiveValue
in interface IMemleakValueFactory
IValue
public IFieldValue createReferenceFieldValue(IFieldInfo info, IObjectInfo value)
IMemleakValueFactory
IFieldValue
reference value object.
createReferenceFieldValue
in interface IMemleakValueFactory
IFieldValue
public IValue createReferenceValue(IObjectInfo value)
IMemleakValueFactory
IValue
reference value object.
createReferenceValue
in interface IMemleakValueFactory
IValue
public IRelationshipInfo createRelationshipInfo(IObjectInfo fromInfo, long keepalive_size)
IMemleakValueFactory
IRelationshipInfo
value object.
createRelationshipInfo
in interface IMemleakValueFactory
IRelationshipInfo
public IStaticField createStaticField(IClassInfo declaringClassInfo, java.lang.String fieldName, int modifiers)
IMemleakValueFactory
IStaticField
value object.
createStaticField
in interface IMemleakValueFactory
IStaticField
public IThreadRoot createThreadRoot(java.lang.String name, IMethodInfo methodInfo)
IMemleakValueFactory
IThreadRoot
value object.
createThreadRoot
in interface IMemleakValueFactory
IThreadRoot
public ITrace createTrace(int count, ILocation[] stack)
IMemleakValueFactory
ITrace
value object.
createTrace
in interface IMemleakValueFactory
ITrace
public ITypeHeapInfo<IClassInfo> createTypeHeapInfo(IClassInfo classInfo, int numInstances, long size, float growthRate, long creationMillis)
IMemleakValueFactory
ITypeHeapInfo
value object.
createTypeHeapInfo
in interface IMemleakValueFactory
ITypeHeapInfo
public boolean markDiscarded(IObjectInfo objectInfo)
IMemleakValueFactory
IObjectInfo
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 |