|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.management.server.AbstractManagedObject
com.caucho.db.block.BlockManager
public final class BlockManager
Manages the block cache
Method Summary | |
---|---|
int |
allocateStoreId()
Allocates a store id. |
void |
clear()
|
static BlockManager |
create()
Returns the block manager, ensuring a minimum number of entries. |
void |
ensureCapacity(int minCapacity)
Ensures the cache has a minimum number of blocks. |
void |
flush()
Flushes all blocks. |
void |
flush(BlockStore store)
Frees blocks with the given store. |
void |
freeStore(BlockStore store)
Frees blocks with the given store. |
void |
freeStoreId(int storeId)
Frees a store id. |
long |
getBlockCacheMemoryCapacity()
|
long |
getBlockCapacity()
Returns the capacity. |
static BlockManager |
getBlockManager()
|
long |
getBlockReadCountTotal()
Returns the read count. |
long |
getBlockWriteCountTotal()
Returns the write count. |
long |
getHitCountTotal()
Returns the hit count. |
long |
getMemorySize()
Returns the capacity in bytes. |
long |
getMissCountTotal()
Returns the miss count. |
double |
getMissRate()
Returns the block cache miss rate. |
java.lang.String |
getName()
The managed name is null |
java.lang.String |
getType()
The managed type is BlockManager |
boolean |
isEnableMmap()
|
void |
setCapacity(int minCapacity)
Ensures the cache has a minimum number of blocks. |
void |
setEnableMmap(boolean isEnable)
|
Methods inherited from class com.caucho.management.server.AbstractManagedObject |
---|
addObjectNameProperties, getObjectName, registerSelf, toString, unregisterSelf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean |
---|
getObjectName |
Method Detail |
---|
public static BlockManager create()
public static BlockManager getBlockManager()
public void ensureCapacity(int minCapacity)
minCapacity
- the minimum capacity in blockspublic void setCapacity(int minCapacity)
minCapacity
- the minimum capacity in blockspublic long getBlockCacheMemoryCapacity()
public boolean isEnableMmap()
public void setEnableMmap(boolean isEnable)
public int allocateStoreId()
public void flush(BlockStore store)
public void flush()
public void freeStore(BlockStore store)
public void freeStoreId(int storeId)
public void clear()
public java.lang.String getName()
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public java.lang.String getType()
getType
in interface ManagedObjectMXBean
getType
in class AbstractManagedObject
public long getBlockCapacity()
getBlockCapacity
in interface BlockManagerMXBean
public long getMemorySize()
getMemorySize
in interface BlockManagerMXBean
public long getHitCountTotal()
getHitCountTotal
in interface BlockManagerMXBean
public long getMissCountTotal()
getMissCountTotal
in interface BlockManagerMXBean
public double getMissRate()
BlockManagerMXBean
getMissRate
in interface BlockManagerMXBean
public long getBlockReadCountTotal()
getBlockReadCountTotal
in interface BlockManagerMXBean
public long getBlockWriteCountTotal()
getBlockWriteCountTotal
in interface BlockManagerMXBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |