org.ehcache.impl.internal.sizeof
Class DefaultSizeOfEngineProvider

java.lang.Object
  extended by org.ehcache.impl.internal.sizeof.DefaultSizeOfEngineProvider
All Implemented Interfaces:
SizeOfEngineProvider, Service

public class DefaultSizeOfEngineProvider
extends java.lang.Object
implements SizeOfEngineProvider


Constructor Summary
DefaultSizeOfEngineProvider(long maxObjectGraphSize, long maxObjectSize)
           
 
Method Summary
 SizeOfEngine createSizeOfEngine(ResourceUnit resourceUnit, ServiceConfiguration<?>... serviceConfigs)
          Creates a SizeOfEngine which will size objects with maximum depth and maximum size
 void start(ServiceProvider serviceProvider)
          Start this service using the provided configuration and ServiceProvider.
 void stop()
          Stops this service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSizeOfEngineProvider

public DefaultSizeOfEngineProvider(long maxObjectGraphSize,
                                   long maxObjectSize)
Method Detail

start

public void start(ServiceProvider serviceProvider)
Description copied from interface: Service
Start this service using the provided configuration and ServiceProvider.

The goal of the service provider is to allow a service to use other services.

Specified by:
start in interface Service
Parameters:
serviceProvider - the service provider.

stop

public void stop()
Description copied from interface: Service
Stops this service.

Specified by:
stop in interface Service

createSizeOfEngine

public SizeOfEngine createSizeOfEngine(ResourceUnit resourceUnit,
                                       ServiceConfiguration<?>... serviceConfigs)
Description copied from interface: SizeOfEngineProvider
Creates a SizeOfEngine which will size objects with maximum depth and maximum size

Specified by:
createSizeOfEngine in interface SizeOfEngineProvider
Parameters:
resourceUnit - type of the unit used to size the store
serviceConfigs - Array of ServiceConfigurations
Returns:
SizeOfEngine instance