|
||||||||||
| 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.store.BlockManager
public final class BlockManager
Manages the block cache
| Method Summary | |
|---|---|
int |
allocateStoreId()
Allocates a store id. |
static BlockManager |
create(int minEntries)
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(Store store)
Frees blocks with the given store. |
void |
freeStore(Store store)
Frees blocks with the given store. |
void |
freeStoreId(int storeId)
Frees a store id. |
long |
getBlockCapacity()
Returns the capacity. |
static BlockManager |
getBlockManager()
|
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 |
| 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(int minEntries)
public static BlockManager getBlockManager()
public void ensureCapacity(int minCapacity)
minCapacity - the minimum capacity in blockspublic int allocateStoreId()
public void flush(Store store)
public void freeStore(Store store)
public void freeStoreId(int storeId)
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 BlockManagerMXBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||