|
||||||||||
| 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(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 |
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 |
getMissCountTotal()
Returns the miss count. |
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 boolean isEnableMmap()
public void setEnableMmap(boolean isEnable)
public int allocateStoreId()
public void flush(BlockStore store)
public void freeStore(BlockStore store)
public void freeStoreId(int storeId)
public void clear()
public java.lang.String getName()
getName in interface ManagedObjectMXBeangetName in class AbstractManagedObjectpublic java.lang.String getType()
getType in interface ManagedObjectMXBeangetType in class AbstractManagedObjectpublic long getBlockCapacity()
getBlockCapacity in interface BlockManagerMXBeanpublic long getHitCountTotal()
getHitCountTotal in interface BlockManagerMXBeanpublic long getMissCountTotal()
getMissCountTotal in interface BlockManagerMXBeanpublic long getBlockReadCountTotal()
getBlockReadCountTotal in interface BlockManagerMXBeanpublic long getBlockWriteCountTotal()
getBlockWriteCountTotal in interface BlockManagerMXBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||