The {@link #CachingDataStore constructor} supports the followingconfiguration properties:
{@value #CALLBACK_PORT_PROPERTY}
{@value #DEFAULT_CALLBACK_PORT}
65536
. If the value specified is 0
, then an anonymous port will be chosen.
{@value #EVICTION_BATCH_SIZE_PROPERTY}
{@value #DEFAULT_EVICTION_BATCH_SIZE}
0
and no larger than the cache size.
{@value #EVICTION_RESERVE_SIZE_PROPERTY}
{@value #DEFAULT_EVICTION_RESERVE_SIZE}
0
and no larger than the cache size.
{@value #LOCK_TIMEOUT_PROPERTY}
{@value #DEFAULT_LOCK_TIMEOUT_PROPORTION}
times the transaction timeout. 0
, and should be less than the transaction timeout.
{@value #MAX_RETRY_PROPERTY}
{@value #DEFAULT_MAX_RETRY}
{@value #NUM_LOCKS_PROPERTY}
{@value #DEFAULT_NUM_LOCKS}
0
. The number of cache locks controls the amount of concurrency.
{@value #RETRY_WAIT_PROPERTY}
{@value #DEFAULT_RETRY_WAIT}
{@value #SERVER_HOST_PROPERTY}
{@value com.sun.sgs.impl.kernel.StandardProperties#SERVER_HOST}
property, if present, or localhost
if this node is starting the server
{@value com.sun.sgs.impl.service.data.store.cache.server.CachingDataStoreServerImpl#SERVER_PORT_PROPERTY}
{@value com.sun.sgs.impl.service.data.store.cache.server.CachingDataStoreServerImpl#DEFAULT_SERVER_PORT}
65536
. The value 0
can only be specified if the {@link StandardProperties#NODE_TYPE}
property is not appNode
and means that an anonymous port will be chosen for running the server.
{@value #CACHE_SIZE_PROPERTY}
{@value #DEFAULT_CACHE_SIZE}
{@value #MIN_CACHE_SIZE}
.
{@value #UPDATE_QUEUE_SIZE_PROPERTY}
{@value #DEFAULT_UPDATE_QUEUE_SIZE}
0
and no more than 5000
This class uses the {@link Logger} named {@code com.sun.sgs.impl.service.data.store.cache.CachingDataStore} to loginformation at the following logging levels:
Operations that throw {@link TransactionAbortedException} will instead logthe failure to the {@code Logger} named {@code com.sun.sgs.impl.service.data.store.cache.CachingDataStore.abort}, to make it easier to debug concurrency conflicts.
|
|
|
|
|
|