git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@54028 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c0a6e9b62b
commit
55fd4224dd
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
If no class is specified, no listener is created. There is no default.
|
If no class is specified, no listener is created. There is no default.
|
||||||
-->
|
-->
|
||||||
<cacheManagerEventListenerFactory class="" properties=""/>
|
<!-- <cacheManagerEventListenerFactory class="" properties=""/>-->
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -109,13 +109,13 @@
|
||||||
port of the RMICacheManagerPeerListener of the remote CacheManager peer.
|
port of the RMICacheManagerPeerListener of the remote CacheManager peer.
|
||||||
|
|
||||||
-->
|
-->
|
||||||
<cacheManagerPeerProviderFactory
|
<!-- <cacheManagerPeerProviderFactory
|
||||||
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
|
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
|
||||||
properties="peerDiscovery=automatic,
|
properties="peerDiscovery=automatic,
|
||||||
multicastGroupAddress=230.0.0.1,
|
multicastGroupAddress=230.0.0.1,
|
||||||
multicastGroupPort=4446, timeToLive=1"
|
multicastGroupPort=4446, timeToLive=1"
|
||||||
propertySeparator=","
|
propertySeparator=","
|
||||||
/>
|
/>-->
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -153,8 +153,8 @@
|
||||||
If not specified it defaults 120000ms.
|
If not specified it defaults 120000ms.
|
||||||
|
|
||||||
-->
|
-->
|
||||||
<cacheManagerPeerListenerFactory
|
<!-- <cacheManagerPeerListenerFactory
|
||||||
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"/>
|
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"/>-->
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -493,86 +493,4 @@
|
||||||
memoryStoreEvictionPolicy="LRU"
|
memoryStoreEvictionPolicy="LRU"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!--
|
|
||||||
Sample cache named sampleCache2
|
|
||||||
This cache has a maximum of 1000 elements in memory. There is no overflow to disk, so 1000
|
|
||||||
is also the maximum cache size. Note that when a cache is eternal, timeToLive and
|
|
||||||
timeToIdle are not used and do not need to be specified.
|
|
||||||
-->
|
|
||||||
<cache name="sampleCache2"
|
|
||||||
maxElementsInMemory="1000"
|
|
||||||
eternal="true"
|
|
||||||
overflowToDisk="false"
|
|
||||||
memoryStoreEvictionPolicy="FIFO"
|
|
||||||
/>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Sample cache named sampleCache3. This cache overflows to disk. The disk store is
|
|
||||||
persistent between cache and VM restarts. The disk expiry thread interval is set to 10
|
|
||||||
minutes, overriding the default of 2 minutes.
|
|
||||||
-->
|
|
||||||
<cache name="sampleCache3"
|
|
||||||
maxElementsInMemory="500"
|
|
||||||
eternal="false"
|
|
||||||
overflowToDisk="true"
|
|
||||||
timeToIdleSeconds="300"
|
|
||||||
timeToLiveSeconds="600"
|
|
||||||
diskPersistent="true"
|
|
||||||
diskExpiryThreadIntervalSeconds="1"
|
|
||||||
memoryStoreEvictionPolicy="LFU"
|
|
||||||
/>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Sample distributed cache named sampleDistributedCache1.
|
|
||||||
This cache replicates using defaults.
|
|
||||||
It also bootstraps from the cluster, using default properties.
|
|
||||||
-->
|
|
||||||
<cache name="sampleDistributedCache1"
|
|
||||||
maxElementsInMemory="10"
|
|
||||||
eternal="false"
|
|
||||||
timeToIdleSeconds="100"
|
|
||||||
timeToLiveSeconds="100"
|
|
||||||
overflowToDisk="false">
|
|
||||||
<cacheEventListenerFactory
|
|
||||||
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/>
|
|
||||||
<bootstrapCacheLoaderFactory
|
|
||||||
class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"/>
|
|
||||||
</cache>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Sample distributed cache named sampleDistributedCache2.
|
|
||||||
This cache replicates using specific properties.
|
|
||||||
It only replicates updates and does so synchronously via copy
|
|
||||||
-->
|
|
||||||
<cache name="sampleDistributedCache2"
|
|
||||||
maxElementsInMemory="10"
|
|
||||||
eternal="false"
|
|
||||||
timeToIdleSeconds="100"
|
|
||||||
timeToLiveSeconds="100"
|
|
||||||
overflowToDisk="false">
|
|
||||||
<cacheEventListenerFactory
|
|
||||||
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
|
|
||||||
properties="replicateAsynchronously=false, replicatePuts=false,
|
|
||||||
replicateUpdates=true, replicateUpdatesViaCopy=true,
|
|
||||||
replicateRemovals=false"/>
|
|
||||||
</cache>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Sample distributed cache named sampleDistributedCache3.
|
|
||||||
This cache replicates using defaults except that the asynchronous replication
|
|
||||||
interval is set to 200ms.
|
|
||||||
-->
|
|
||||||
<cache name="sampleDistributedCache3"
|
|
||||||
maxElementsInMemory="10"
|
|
||||||
eternal="false"
|
|
||||||
timeToIdleSeconds="100"
|
|
||||||
timeToLiveSeconds="100"
|
|
||||||
overflowToDisk="false">
|
|
||||||
<cacheEventListenerFactory
|
|
||||||
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
|
|
||||||
properties="asynchronousReplicationIntervalMillis=200"/>
|
|
||||||
</cache>
|
|
||||||
</ehcache>
|
</ehcache>
|
||||||
|
|
Loading…
Reference in New Issue