|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.pool.sizeof.SizeOf
net.sf.ehcache.pool.sizeof.AgentSizeOf
public class AgentSizeOf
SizeOf implementation that relies on a Java agent to be loaded to do the measurement It will try to load the agent through the JDK6 Attach API if available All it's constructor do throw UnsupportedOperationException if the agent isn't present or couldn't be loaded dynamically
Constructor Summary | |
---|---|
AgentSizeOf()
Builds a new SizeOf that will not filter fields and will cache reflected fields |
|
AgentSizeOf(SizeOfFilter filter)
Builds a new SizeOf that will filter fields according to the provided filter and will cache reflected fields |
|
AgentSizeOf(SizeOfFilter filter,
boolean caching)
Builds a new SizeOf that will filter fields according to the provided filter |
Method Summary | |
---|---|
protected long |
measureSizeOf(Object obj)
Measure the size of an instance |
Methods inherited from class net.sf.ehcache.pool.sizeof.SizeOf |
---|
deepSizeOf, sizeOf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AgentSizeOf() throws UnsupportedOperationException
UnsupportedOperationException
- If agent couldn't be loaded or isn't presentAgentSizeOf(net.sf.ehcache.pool.sizeof.filter.SizeOfFilter, boolean)
public AgentSizeOf(SizeOfFilter filter) throws UnsupportedOperationException
filter
- The filter to apply
UnsupportedOperationException
- If agent couldn't be loaded or isn't presentAgentSizeOf(net.sf.ehcache.pool.sizeof.filter.SizeOfFilter, boolean)
,
SizeOfFilter
public AgentSizeOf(SizeOfFilter filter, boolean caching) throws UnsupportedOperationException
filter
- The filter to applycaching
- whether to cache reflected fields
UnsupportedOperationException
- If agent couldn't be loaded or isn't presentSizeOfFilter
Method Detail |
---|
protected long measureSizeOf(Object obj)
SizeOf
measureSizeOf
in class SizeOf
obj
- the reference to measure
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |