Class NioFileManagerBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.storemanager.AbstractStoreManagerBuilder<T>
-
- com.tangosol.coherence.config.builder.storemanager.AbstractNioManagerBuilder<MappedStoreManager>
-
- com.tangosol.coherence.config.builder.storemanager.NioFileManagerBuilder
-
- All Implemented Interfaces:
BuilderCustomization<MappedStoreManager>,BinaryStoreManagerBuilder
public class NioFileManagerBuilder extends AbstractNioManagerBuilder<MappedStoreManager>
The NioFileManagerBuilder class builds an instance of a MappedStoreManager.- Since:
- Coherence 12.1.2
- Author:
- pfm 2011.11.30
-
-
Constructor Summary
Constructors Constructor Description NioFileManagerBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDirectory(ParameterResolver resolver)Return the path name for the root directory that the manager uses to store files in.MappedStoreManagerrealize(ParameterResolver resolver, ClassLoader loader, boolean fPaged)Realize aBinaryStoreManagergiven the provided parameters.voidsetDirectory(Expression<String> expr)Set the root directory where the manager stores files.-
Methods inherited from class com.tangosol.coherence.config.builder.storemanager.AbstractNioManagerBuilder
getInitialSize, getMaximumSize, setInitialSize, setMaximumSize, validate
-
Methods inherited from class com.tangosol.coherence.config.builder.storemanager.AbstractStoreManagerBuilder
getCustomBuilder, setCustomBuilder
-
-
-
-
Method Detail
-
realize
public MappedStoreManager realize(ParameterResolver resolver, ClassLoader loader, boolean fPaged)
Realize aBinaryStoreManagergiven the provided parameters.- Parameters:
resolver- theParameterResolverfor resolving expressions and runtime parametersloader- theClassLoaderfor loading classes (if necessary)fPaged- the flag indicating whether the map is paged- Returns:
- a
BinaryStoreManager
-
getDirectory
public String getDirectory(ParameterResolver resolver)
Return the path name for the root directory that the manager uses to store files in. If not specified or specifies a non-existent directory, a temporary file in the default location is used.- Parameters:
resolver- the ParameterResolver- Returns:
- the root directory
-
setDirectory
@Injectable public void setDirectory(Expression<String> expr)
Set the root directory where the manager stores files.- Parameters:
expr- the directory name
-
-