Oracle® Coherence Java API Reference
v3.5.3

E15583-01

com.tangosol.io.nio
Class AbstractStoreManager

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.io.nio.AbstractStoreManager
All Implemented Interfaces:
BinaryStoreManager
Direct Known Subclasses:
DirectStoreManager, MappedStoreManager

public abstract class AbstractStoreManager
extends Base
implements BinaryStoreManager

A base implementation of BinaryStoreManager interface that uses BinaryMap objects built on a ByteBufferManager to provide BinaryStore objects.

Since:
Coherence 2.4
Author:
gg 2004.06.09

Constructor Summary
AbstractStoreManager(int cbInitial, int cbMaximum)
          Construct a AbstractStoreManager that uses BinaryMap objests built on the ByteBufferManager(s) with certain initial and maximum size.
 
Method Summary
 BinaryStore createBinaryStore()
          Factory method: Returns a new BinaryStore.
protected abstract  ByteBufferManager createBufferManager()
          Create a ByteBufferManager to be used by a BinaryStore.
 void destroyBinaryStore(BinaryStore store)
          Lifecycle method: Destroy a BinaryStore previously created by this manager.
 int getMaxCapacity()
          Determine the maximum size that the managed buffers can reach.
 int getMinCapacity()
          Determine the minimum size that the managed buffers can reach.
 void setMaxCapacity(int cb)
          Specify the maximum size that the managed buffers can reach.
 void setMinCapacity(int cb)
          Specify the minimum size that the managed buffers can reach.
 

Constructor Detail

AbstractStoreManager

public AbstractStoreManager(int cbInitial,
                            int cbMaximum)
Construct a AbstractStoreManager that uses BinaryMap objests built on the ByteBufferManager(s) with certain initial and maximum size.

Parameters:
cbInitial - the initial size of the managed buffers
cbMaximum - the maximum size of the managed buffers
Method Detail

getMinCapacity

public int getMinCapacity()
Determine the minimum size that the managed buffers can reach.

Returns:
minimum size for the managed buffers

setMinCapacity

public void setMinCapacity(int cb)
Specify the minimum size that the managed buffers can reach.

Parameters:
cb - minimum size for the managed buffers

getMaxCapacity

public int getMaxCapacity()
Determine the maximum size that the managed buffers can reach.

Returns:
maximum size for the managed buffers

setMaxCapacity

public void setMaxCapacity(int cb)
Specify the maximum size that the managed buffers can reach.

Parameters:
cb - maximum size for the managed buffers

createBinaryStore

public BinaryStore createBinaryStore()
Factory method: Returns a new BinaryStore.

Specified by:
createBinaryStore in interface BinaryStoreManager
Returns:
a new BinaryStore object

destroyBinaryStore

public void destroyBinaryStore(BinaryStore store)
Lifecycle method: Destroy a BinaryStore previously created by this manager.

Specified by:
destroyBinaryStore in interface BinaryStoreManager
Parameters:
store - a BinaryStore object previously created by this manager

createBufferManager

protected abstract ByteBufferManager createBufferManager()
Create a ByteBufferManager to be used by a BinaryStore.


Oracle® Coherence Java API Reference
v3.5.3

E15583-01

Copyright © 2000, 2010, Oracle. All rights reserved.