public class ObjectStoreEnvironmentBean extends Object implements ObjectStoreEnvironmentBeanMBean
Constructor and Description |
---|
ObjectStoreEnvironmentBean() |
Modifier and Type | Method and Description |
---|---|
int |
getCacheStoreHash()
Returns the number of hash buckets used for the cache work queue.
|
int |
getCacheStoreRemovedItems()
Returns the maximum number of removed items that may be held in the cache before being purged.
|
int |
getCacheStoreScanPeriod()
Returns the interval on which the cache will wake and process outstanding work.
|
int |
getCacheStoreSize()
Returns the maximum allowed size, in bytes, of the cache store's in-memory cache.
|
int |
getCacheStoreWorkItems()
Returns the maximum number of outstanding writes that may be held in the cache.
|
boolean |
getCreateTable()
Should the store create the table
|
boolean |
getDropTable()
Should the store drop the table
|
boolean |
getExposeAllLogRecordsAsMBeans() |
int |
getHashedDirectories()
Returns the number of directories over which the ObjectStore contents will be distributed.
|
int |
getHierarchyRetry()
Returns the maximum number of attempts which may be made to create a file path in the store.
|
int |
getHierarchyTimeout()
Returns the time in milliseconds to wait between file creation retries.
|
String |
getJdbcAccess()
Returns an instance of a class implementing JDBCAccess.
|
String |
getLocalOSRoot()
Returns the local ObjectStore root directory name.
|
String |
getObjectStoreDir()
Returns the ObjectStore directory path.
|
String |
getObjectStoreType()
Returns the fully qualified class name for the ObjectStore implementation.
|
long |
getPurgeTime()
Returns the purge interval for the LogStore, in milliseconds.
|
int |
getShare()
Returns the share mode for the ObjectStore, i.e., is this being shared
between VMs?
This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore,
HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore, TwoPhaseVolatileStore, VolatileStore.
|
String |
getTablePrefix()
Get the table prefix
|
long |
getTxLogSize()
Returns the default size of the LogStore file, in bytes.
|
boolean |
isCacheStoreSync()
Returns true if writes to the objectstore should include a disk sync.
|
boolean |
isObjectStoreSync()
Returns true if ObjectStore operations should be synched to disk.
|
boolean |
isScanZeroLengthFiles()
Returns true if zero length files should be returned by a recovery scan.
|
boolean |
isSynchronousRemoval()
Returns true if the LogStore should write removal records synchronously.
|
boolean |
isTransactionSync()
Returns true if transaction log operations should be synched to disk.
|
void |
setCacheStoreHash(int cacheStoreHash)
Sets the number of hash buskets used to store the cache work queue.
|
void |
setCacheStoreRemovedItems(int cacheStoreRemovedItems)
Sets the maximum number of removed items that may be held in the cache before being purged.
|
void |
setCacheStoreScanPeriod(int cacheStoreScanPeriod)
Sets the interval on which the cache will process outstanding work, in milliseconds.
|
void |
setCacheStoreSize(int cacheStoreSize)
Sets the maximum size, in bytes, of the in-memory object state cache.
|
void |
setCacheStoreSync(boolean cacheStoreSync)
Sets if writes to the store should be synched to disk or not.
|
void |
setCacheStoreWorkItems(int cacheStoreWorkItems)
Sets the maximum number of outstanding writes that may be held in the cache.
|
void |
setCreateTable(boolean createTable)
Set whether to create the table.
|
void |
setDropTable(boolean dropTable)
Set whether to drop the table.
|
void |
setExposeAllLogRecordsAsMBeans(boolean exposeAllLogRecords)
Determine whether the ObjStoreBrowser should report basic information about all logs.
|
void |
setHashedDirectories(int hashedDirectories)
Sets the number of directories over which the ObjectStore will be split.
|
void |
setHierarchyRetry(int hierarchyRetry)
Sets the maximum number of attempts which may be made to create a direcory tree in the store.
|
void |
setHierarchyTimeout(int hierarchyTimeout)
Sets the time in milliseconds to wait between file creation retries.
|
void |
setJdbcAccess(String connectionDetails)
Sets the instance of JDBCAccess
|
void |
setLocalOSRoot(String localOSRoot)
Sets the local ObjectStore root directory name.
|
void |
setObjectStoreDir(String objectStoreDir)
Sets the ObjectStore directory path.
|
void |
setObjectStoreSync(boolean objectStoreSync)
Sets if ObjectStore operations should be synched to disk or not.
|
void |
setObjectStoreType(String objectStoreType)
Sets the symbolic name of the ObjectStore implementation.
|
void |
setPurgeTime(long purgeTime)
Sets the purge interval for the LogStore, in milliseconds.
|
void |
setScanZeroLengthFiles(boolean scanZeroLengthFiles)
Sets if zero length files should be returned by a recovery scan.
|
void |
setShare(int share)
Sets the share mode of the ObjectStore
This property is used by the following object store implementations: ActionStore, CacheStore, HashedActionStore,
HashedStore, LogStore, NullActionStore, ShadowingStore, ShadowNoFileLockStore, TwoPhaseVolatileStore, VolatileStore.
|
void |
setSynchronousRemoval(boolean synchronousRemoval)
Sets if the LogStore should write removal records synchronously or not.
|
void |
setTablePrefix(String tablePrefix)
Set the table prefix
|
void |
setTransactionSync(boolean transactionSync)
Sets if transaction log operations should be synched to disk or not.
|
void |
setTxLogSize(long txLogSize)
Sets the default size of the LogStore, in bytes.
|
public int getCacheStoreSize()
getCacheStoreSize
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreSize(int cacheStoreSize)
cacheStoreSize
- the maximum cache size in bytes.public boolean isCacheStoreSync()
isCacheStoreSync
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreSync(boolean cacheStoreSync)
cacheStoreSync
- true to enable syncing, false to disable.public int getCacheStoreRemovedItems()
getCacheStoreRemovedItems
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreRemovedItems(int cacheStoreRemovedItems)
cacheStoreRemovedItems
- teh maximun number of items.public int getCacheStoreScanPeriod()
getCacheStoreScanPeriod
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreScanPeriod(int cacheStoreScanPeriod)
cacheStoreScanPeriod
- the sleep duration, in milliseconds.public int getCacheStoreWorkItems()
getCacheStoreWorkItems
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreWorkItems(int cacheStoreWorkItems)
cacheStoreWorkItems
- the maximum number of outstnading writes.public int getCacheStoreHash()
getCacheStoreHash
in interface ObjectStoreEnvironmentBeanMBean
public void setCacheStoreHash(int cacheStoreHash)
cacheStoreHash
- the number of hash buckets.public String getLocalOSRoot()
getLocalOSRoot
in interface ObjectStoreEnvironmentBeanMBean
public void setLocalOSRoot(String localOSRoot)
localOSRoot
- the directory name.public String getObjectStoreDir()
getObjectStoreDir
in interface ObjectStoreEnvironmentBeanMBean
public void setObjectStoreDir(String objectStoreDir)
objectStoreDir
- the directory path.public boolean isObjectStoreSync()
isObjectStoreSync
in interface ObjectStoreEnvironmentBeanMBean
public void setObjectStoreSync(boolean objectStoreSync)
objectStoreSync
- true to sunc to disk, false to skip synching.public String getObjectStoreType()
getObjectStoreType
in interface ObjectStoreEnvironmentBeanMBean
public void setObjectStoreType(String objectStoreType)
objectStoreType
- the symbolic name of the implementation.public int getHashedDirectories()
getHashedDirectories
in interface ObjectStoreEnvironmentBeanMBean
public void setHashedDirectories(int hashedDirectories)
hashedDirectories
- the number of directories.public boolean isTransactionSync()
isTransactionSync
in interface ObjectStoreEnvironmentBeanMBean
public void setTransactionSync(boolean transactionSync)
transactionSync
- true to enable synching, false to disable.public boolean isScanZeroLengthFiles()
public void setScanZeroLengthFiles(boolean scanZeroLengthFiles)
scanZeroLengthFiles
- true to include zero length files in scan results, false to exclude them.public int getShare()
getShare
in interface ObjectStoreEnvironmentBeanMBean
public void setShare(int share)
share
- a valid share mode.public int getHierarchyRetry()
getHierarchyRetry
in interface ObjectStoreEnvironmentBeanMBean
public void setHierarchyRetry(int hierarchyRetry)
hierarchyRetry
- the maximum number of file creation attempts.public int getHierarchyTimeout()
getHierarchyTimeout
in interface ObjectStoreEnvironmentBeanMBean
public void setHierarchyTimeout(int hierarchyTimeout)
hierarchyTimeout
- the wait time in milliseconds.public boolean isSynchronousRemoval()
isSynchronousRemoval
in interface ObjectStoreEnvironmentBeanMBean
public void setSynchronousRemoval(boolean synchronousRemoval)
synchronousRemoval
- true for synchronous operation, false for asynchronous.public long getTxLogSize()
getTxLogSize
in interface ObjectStoreEnvironmentBeanMBean
public void setTxLogSize(long txLogSize)
txLogSize
- the default file size, in bytes.public long getPurgeTime()
getPurgeTime
in interface ObjectStoreEnvironmentBeanMBean
public void setPurgeTime(long purgeTime)
purgeTime
- the purge interval in milliseconds.public String getJdbcAccess()
getJdbcAccess
in interface ObjectStoreEnvironmentBeanMBean
public void setJdbcAccess(String connectionDetails)
setJdbcAccess
in interface ObjectStoreEnvironmentBeanMBean
instance
- an Object that implements JDBCAccess, or null.public String getTablePrefix()
getTablePrefix
in interface ObjectStoreEnvironmentBeanMBean
public void setTablePrefix(String tablePrefix)
setTablePrefix
in interface ObjectStoreEnvironmentBeanMBean
tablePrefix
- A prefix to use on the tablespublic boolean getDropTable()
getDropTable
in interface ObjectStoreEnvironmentBeanMBean
public void setDropTable(boolean dropTable)
setDropTable
in interface ObjectStoreEnvironmentBeanMBean
dropTable
- Drop the tablepublic boolean getCreateTable()
public void setCreateTable(boolean createTable)
createTable
- Create the tablepublic boolean getExposeAllLogRecordsAsMBeans()
public void setExposeAllLogRecordsAsMBeans(boolean exposeAllLogRecords)
ObjectStoreBrowser
Use this method to explicitly set the desired behaviour.
You can also set this behaviour via JMX using
JMX
exposeAllLogRecords
- Set to true to expose basic information about all log recordsCopyright © 2013 JBoss by Red Hat. All Rights Reserved.