|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean
public class ObjectStoreEnvironmentBean
A JavaBean containing configuration properties for the objectstore and various implementations thereof.
| Constructor Summary | |
|---|---|
ObjectStoreEnvironmentBean()
|
|
| Method Summary | |
|---|---|
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. |
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 |
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? Default: ObjectStore.OS_UNKNOWN Equivalent deprecated property: com.arjuna.ats.arjuna.objectstore.share |
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 |
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 |
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 |
void |
setSynchronousRemoval(boolean synchronousRemoval)
Sets if the LogStore should write removal records synchronously or not. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectStoreEnvironmentBean()
| Method Detail |
|---|
public int getCacheStoreSize()
getCacheStoreSize in interface ObjectStoreEnvironmentBeanMBeanpublic void setCacheStoreSize(int cacheStoreSize)
cacheStoreSize - the maximum cache size in bytes.public boolean isCacheStoreSync()
isCacheStoreSync in interface ObjectStoreEnvironmentBeanMBeanpublic void setCacheStoreSync(boolean cacheStoreSync)
cacheStoreSync - true to enable syncing, false to disable.public int getCacheStoreRemovedItems()
getCacheStoreRemovedItems in interface ObjectStoreEnvironmentBeanMBeanpublic void setCacheStoreRemovedItems(int cacheStoreRemovedItems)
cacheStoreRemovedItems - teh maximun number of items.public int getCacheStoreScanPeriod()
getCacheStoreScanPeriod in interface ObjectStoreEnvironmentBeanMBeanpublic void setCacheStoreScanPeriod(int cacheStoreScanPeriod)
cacheStoreScanPeriod - the sleep duration, in milliseconds.public int getCacheStoreWorkItems()
getCacheStoreWorkItems in interface ObjectStoreEnvironmentBeanMBeanpublic void setCacheStoreWorkItems(int cacheStoreWorkItems)
cacheStoreWorkItems - the maximum number of outstnading writes.public int getCacheStoreHash()
getCacheStoreHash in interface ObjectStoreEnvironmentBeanMBeanpublic void setCacheStoreHash(int cacheStoreHash)
cacheStoreHash - the number of hash buckets.public String getLocalOSRoot()
getLocalOSRoot in interface ObjectStoreEnvironmentBeanMBeanpublic void setLocalOSRoot(String localOSRoot)
localOSRoot - the directory name.public String getObjectStoreDir()
getObjectStoreDir in interface ObjectStoreEnvironmentBeanMBeanpublic void setObjectStoreDir(String objectStoreDir)
objectStoreDir - the directory path.public boolean isObjectStoreSync()
isObjectStoreSync in interface ObjectStoreEnvironmentBeanMBeanpublic void setObjectStoreSync(boolean objectStoreSync)
objectStoreSync - true to sunc to disk, false to skip synching.public String getObjectStoreType()
getObjectStoreType in interface ObjectStoreEnvironmentBeanMBeanpublic void setObjectStoreType(String objectStoreType)
objectStoreType - the symbolic name of the implementation.public int getHashedDirectories()
getHashedDirectories in interface ObjectStoreEnvironmentBeanMBeanpublic void setHashedDirectories(int hashedDirectories)
hashedDirectories - the number of directories.public boolean isTransactionSync()
isTransactionSync in interface ObjectStoreEnvironmentBeanMBeanpublic 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 ObjectStoreEnvironmentBeanMBeanpublic void setShare(int share)
share - a valid share mode.public int getHierarchyRetry()
getHierarchyRetry in interface ObjectStoreEnvironmentBeanMBeanpublic void setHierarchyRetry(int hierarchyRetry)
hierarchyRetry - the maximum number of file creation attempts.public int getHierarchyTimeout()
getHierarchyTimeout in interface ObjectStoreEnvironmentBeanMBeanpublic void setHierarchyTimeout(int hierarchyTimeout)
hierarchyTimeout - the wait time in milliseconds.public boolean isSynchronousRemoval()
isSynchronousRemoval in interface ObjectStoreEnvironmentBeanMBeanpublic void setSynchronousRemoval(boolean synchronousRemoval)
synchronousRemoval - true for synchronous operation, false for asynchronous.public long getTxLogSize()
getTxLogSize in interface ObjectStoreEnvironmentBeanMBeanpublic void setTxLogSize(long txLogSize)
txLogSize - the default file size, in bytes.public long getPurgeTime()
getPurgeTime in interface ObjectStoreEnvironmentBeanMBeanpublic void setPurgeTime(long purgeTime)
purgeTime - the purge interval in milliseconds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||