Index: rctags/ehcache-2.10.8.2.20/terracotta/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/terracotta/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/terracotta/pom.xml (revision 0) @@ -1,74 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - ehcache-root - 2.10.8.2.20 - - - net.sf.ehcache.internal - ehcache-terracotta-root - ehcache-terracotta-root - pom - - - bootstrap - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - false - - - true - - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - true - - - false - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - false - - - true - - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - true - - - false - - - - - - - deploy-sonatype - - true - - - - Index: rctags/ehcache-2.10.8.2.20/TestCategories.properties =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/TestCategories.properties (revision 11355) +++ rctags/ehcache-2.10.8.2.20/TestCategories.properties (revision 0) @@ -1,328 +0,0 @@ -net.sf.ehcache.AutoVersioningElementTest=production -net.sf.ehcache.CacheClassicLruMemoryStoreTest=production -net.sf.ehcache.CacheCopyOnRwPoolTest=production -net.sf.ehcache.CacheCopyOnRwReplaceRemoveTest=production -net.sf.ehcache.CacheExceptionTest=production -net.sf.ehcache.CacheManagerTest=production -net.sf.ehcache.CachePinningTest=production -net.sf.ehcache.CachePoolPinningTest=production -net.sf.ehcache.CacheTest=production -net.sf.ehcache.ChrisCachePerformanceTest=production -net.sf.ehcache.ClockMemoryStoreTest=production -net.sf.ehcache.DiskStoreTest=production -net.sf.ehcache.DynamicCacheConfigurationTest=production -net.sf.ehcache.ElementTest=production -net.sf.ehcache.ExplicitMaxInMemoryTest=production -net.sf.ehcache.InfiniteCapacityCacheTest=production -net.sf.ehcache.MemoryStoreTester=production -net.sf.ehcache.OverflowCacheTest=production -net.sf.ehcache.PoolCacheManagerTest=production -net.sf.ehcache.RecalculateSizeTest=production -net.sf.ehcache.SameCacheManagerNameTest=production -net.sf.ehcache.StatisticsTest=production -net.sf.ehcache.TerracottaIntegrationTest=production -net.sf.ehcache.XACacheTest=production -net.sf.ehcache.concurrent.ConcurrencyUtilTest=production -net.sf.ehcache.concurrent.ConcurrentCacheMethodsTest=production -net.sf.ehcache.config.CacheConfigConflictTest=production -net.sf.ehcache.config.CacheConfigurationListenerTest=production -net.sf.ehcache.config.CacheConfigurationTest=production -net.sf.ehcache.config.CacheWriterConfigurationTest=production -net.sf.ehcache.config.CoherenceModeConfigTest=production -net.sf.ehcache.config.ConfigurationFactoryTest=production -net.sf.ehcache.config.ConfigurationHelperTest=production -net.sf.ehcache.config.DefaultCacheOptionalTest=production -net.sf.ehcache.config.DynamicCacheConfigurationValidityTest=production -net.sf.ehcache.config.InvalidConfigTest=production -net.sf.ehcache.config.MemoryUnitTest=production -net.sf.ehcache.config.SchemaValidationTest=production -net.sf.ehcache.config.StorageStrategyConfigTest=production -net.sf.ehcache.config.generator.AllConfigurationGeneratedTest=production -net.sf.ehcache.config.generator.ConfigurationGeneratedParsesTest=production -net.sf.ehcache.config.generator.DecoratedCacheConfigTest=production -net.sf.ehcache.config.nonstop.NonStopConfigTest=production -net.sf.ehcache.config.nonstop.NonstopInheritsDefaultConfigTest=production -net.sf.ehcache.constructs.CacheDecoratorFactoryTest=production -net.sf.ehcache.constructs.DecoratorNoNameTest=production -net.sf.ehcache.constructs.DefaultCacheDecoratorFactoryTest=production -net.sf.ehcache.constructs.blocking.BlockingCacheTest=production -net.sf.ehcache.constructs.blocking.SelfPopulatingCacheTest=production -net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCacheTest=production -net.sf.ehcache.constructs.locking.ExplicitLockApiTest=production -net.sf.ehcache.constructs.nonstop.BasicNonstopTest=production -net.sf.ehcache.constructs.nonstop.ExecutorServiceTest=production -net.sf.ehcache.constructs.nonstop.NonStopThreadDestroyedTest=production -net.sf.ehcache.constructs.nonstop.NonstopTestUtil=production -net.sf.ehcache.constructs.nonstop.TimeoutOnRejoinTest=production -net.sf.ehcache.distribution.EventMessageTest=production -net.sf.ehcache.distribution.ManualRMIPeerProviderTest=production -net.sf.ehcache.distribution.MulticastRMIPeerProviderTest=production -net.sf.ehcache.distribution.PayloadUtilTest=production -net.sf.ehcache.distribution.RMIBootstrapCacheLoaderTest=production -net.sf.ehcache.distribution.RMICacheManagerPeerListenerTest=production -net.sf.ehcache.distribution.RMICacheManagerPeerTest=production -net.sf.ehcache.distribution.RMICacheReplicatorTest=production -net.sf.ehcache.distribution.RMICacheReplicatorWithLargePayloadTest=production -net.sf.ehcache.distribution.RMIDistributedCacheTest=production -net.sf.ehcache.distribution.ShutdownRMICacheManagerPeerListenerTestImpl=production -net.sf.ehcache.event.BulkOpsEventListenerTest=production -net.sf.ehcache.event.CacheEventListenerTest=production -net.sf.ehcache.event.CacheManagerEventListenerTest=production -net.sf.ehcache.event.EvictionListenerTest=production -net.sf.ehcache.event.ProgrammaticallyCreatedCacheEventListenerTest=production -net.sf.ehcache.event.TestCacheManagerEventListenerFactory=production -net.sf.ehcache.exceptionhandler.CacheExceptionHandlerTest=production -net.sf.ehcache.extension.CacheExtensionTest=production -net.sf.ehcache.extension.TestCacheExtension=production -net.sf.ehcache.extension.TestCacheExtensionFactory=production -net.sf.ehcache.hibernate.EhCacheRegionFactoryTest=production -net.sf.ehcache.hibernate.HibernateAPIUsageTest=production -net.sf.ehcache.hibernate.HibernateCacheTest=production -net.sf.ehcache.hibernate.management.impl.EhcacheStatsImplTest=production -net.sf.ehcache.loader.CacheLoaderTest=production -net.sf.ehcache.loader.CompositeLoaderTest=production -net.sf.ehcache.management.ManagementServiceTest=production -net.sf.ehcache.management.ResourceClassLoaderTest=production -net.sf.ehcache.management.sampled.MBeanRegistrationProviderTest=production -net.sf.ehcache.pool.PoolableStoresTest=production -net.sf.ehcache.pool.TwinCachesTest=production -net.sf.ehcache.pool.sizeof.AgentLoaderRaceTest=production -net.sf.ehcache.pool.sizeof.AgentLoaderSystemPropTest=production -net.sf.ehcache.pool.sizeof.AgentLoaderTest=production -net.sf.ehcache.pool.sizeof.FilteredSizeOfTest=production -net.sf.ehcache.pool.sizeof.ObjectGraphWalkerTest=production -net.sf.ehcache.pool.sizeof.SizeOfTest=production -net.sf.ehcache.pool.sizeof.filter.AnnotationProxyFactoryTest=production -net.sf.ehcache.search.BasicSearchTest=production -net.sf.ehcache.search.QueryExamplesTest=production -net.sf.ehcache.search.SearchTestUtil=production -net.sf.ehcache.search.TestAttributeExtractor=production -net.sf.ehcache.search.TransactionalSearchTest=production -net.sf.ehcache.search.attribute.JavaBeanAttributeExtractorTest=production -net.sf.ehcache.search.attribute.ReflectionAttributeExtractorTest=production -net.sf.ehcache.servermaplocalcache.ServerMapLocalCacheTest=production -net.sf.ehcache.statistics.CacheUsageListenerTest=production -net.sf.ehcache.statistics.DisabledCacheStatisticsTest=production -net.sf.ehcache.statistics.LiveCacheStatisticsTest=production -net.sf.ehcache.store.CacheKeySetTest=production -net.sf.ehcache.store.DiskBackedMemoryStoreTest=production -net.sf.ehcache.store.DiskStoreBootstrapCacheLoaderFactoryTest=production -net.sf.ehcache.store.ElementIdAssigningStoreTest=production -net.sf.ehcache.store.FifoMemoryStoreTest=production -net.sf.ehcache.store.InitialCapacityTest=production -net.sf.ehcache.store.LruClassicMemoryStoreTest=production -net.sf.ehcache.store.LruMemoryStoreTest=production -net.sf.ehcache.store.MemoryOnlyStoreTest=production -net.sf.ehcache.store.MemoryStorePinningTest=production -net.sf.ehcache.store.MemoryStorePoolingTest=production -net.sf.ehcache.store.OffheapStoreInOssTest=production -net.sf.ehcache.store.PoolableMemoryStoreTest=production -net.sf.ehcache.store.XATransactionalStoreTest=production -net.sf.ehcache.store.chm.SelectableConcurrentHashMapTest=production -net.sf.ehcache.store.compound.PartialSerializationCopyStrategyTest=production -net.sf.ehcache.store.compound.TCCLReadWriteSerializationCopyStrategyTest=production -net.sf.ehcache.store.disk.DiskBackMemoryStoreTest=production -net.sf.ehcache.store.disk.DiskStorePoolingTest=production -net.sf.ehcache.store.disk.DiskStoreTest=production -net.sf.ehcache.store.disk.ods.FileAllocationTreeTest=production -net.sf.ehcache.terracotta.BasicRejoinTest=production -net.sf.ehcache.terracotta.BootstrapCacheTest=quarantined -net.sf.ehcache.terracotta.EventReplicationTest=production -net.sf.ehcache.terracotta.KeySnapshotterTest=production -net.sf.ehcache.terracotta.RejoinEventSequenceTest=production -net.sf.ehcache.terracotta.RotatingSnapshotFileTest=production -net.sf.ehcache.terracotta.StorageStrategyInvalidConfigurationTest=production -net.sf.ehcache.terracotta.TerracottaBootstrapCacheLoaderTest=production -net.sf.ehcache.terracotta.TerracottaUnitTesting=production -net.sf.ehcache.terracotta.TerracottaWithLocalOffHeapTest=production -net.sf.ehcache.terracotta.TestRejoinStore=production -net.sf.ehcache.transaction.SoftLockPinningTest=production -net.sf.ehcache.transaction.local.LocalTransactionSizeOfTest=production -net.sf.ehcache.transaction.local.LocalTransactionTest=production -net.sf.ehcache.transaction.xa.TwoPCTest=production -net.sf.ehcache.transaction.xa.XAThreadPoolTest=production -net.sf.ehcache.transaction.xa.XATransactionSizeOfTest=production -net.sf.ehcache.transaction.xa.XATransactionTest=production -net.sf.ehcache.util.LargeCollectionTest=production -net.sf.ehcache.util.MemoryEfficientByteArrayOutputStreamTest=production -net.sf.ehcache.util.MemorySizeParserTest=production -net.sf.ehcache.util.ProductInfoTest=production -net.sf.ehcache.util.SlewClockTest=production -net.sf.ehcache.util.SmokeTests=production -net.sf.ehcache.util.TimestamperTest=production -net.sf.ehcache.util.UpdateCheckerTest=production -net.sf.ehcache.util.WeakIdentityConcurrentMapTest=production -net.sf.ehcache.writer.CacheWriterTest=production -net.sf.ehcache.writer.CoalesceKeysFilterTest=production -net.sf.ehcache.writer.TestCacheWriter=production -net.sf.ehcache.writer.TestCacheWriterException=production -net.sf.ehcache.writer.TestCacheWriterFactory=production -net.sf.ehcache.writer.TestCacheWriterRetries=production -net.sf.ehcache.writer.TestCacheWriterSlow=production -org.terracotta.ehcache.tests.BasicAtomikosXATest=quarantined -org.terracotta.ehcache.tests.BasicBTMXATest=quarantined -org.terracotta.ehcache.tests.BasicStandaloneCacheAndServerTopologyTest=production -org.terracotta.ehcache.tests.BasicStandaloneCacheTest=production -org.terracotta.ehcache.tests.BasicWriteBehindTest=quarantined -org.terracotta.ehcache.tests.CacheBlockingQueueTest=quarantined -org.terracotta.ehcache.tests.CacheConsistencyTest=production -org.terracotta.ehcache.tests.CacheLocksTest=quarantined -org.terracotta.ehcache.tests.CacheWriterBTMXATest=quarantined -org.terracotta.ehcache.tests.ClusterCacheEventsRejoinEnabledTest=quarantined -org.terracotta.ehcache.tests.ClusterEventsRejoinEnabledTest=quarantined -org.terracotta.ehcache.tests.ClusterEventsTest=production -org.terracotta.ehcache.tests.ClusteredCacheRemovalTest=quarantined -org.terracotta.ehcache.tests.CoalescingWriteBehindTest=quarantined -org.terracotta.ehcache.tests.CompressedCacheTest=production -org.terracotta.ehcache.tests.ConcurrencyValueTest=quarantined -org.terracotta.ehcache.tests.CopyOnWriteTest=production -org.terracotta.ehcache.tests.DoubleConfigStandaloneCacheTest=production -org.terracotta.ehcache.tests.EmbeddedConfigNamespaceStandaloneCacheTest=production -org.terracotta.ehcache.tests.EmbeddedConfigStandaloneCacheTest=production -org.terracotta.ehcache.tests.EmbeddedEhcacheJarTest=production -org.terracotta.ehcache.tests.EmbeddedEhcacheJarTestClient=production -org.terracotta.ehcache.tests.ExpiryListenerTest=production -org.terracotta.ehcache.tests.ExplicitlyUnclusteredStandaloneCacheTest=production -org.terracotta.ehcache.tests.ExpressShutdownTest=production -org.terracotta.ehcache.tests.GetKeysSerializedCacheTest=production -org.terracotta.ehcache.tests.HibernateExpressShutdownTest=production -org.terracotta.ehcache.tests.LocalTxTest=production -org.terracotta.ehcache.tests.MemoryStoreEvictionPolicyTest=production -org.terracotta.ehcache.tests.MixedCacheTest=production -org.terracotta.ehcache.tests.NamelessCacheManagerStandaloneCacheTest=production -org.terracotta.ehcache.tests.NoTcConfigStandaloneCacheTest=production -org.terracotta.ehcache.tests.OtherClassLoaderEventTest=production -org.terracotta.ehcache.tests.OtherClassloaderCacheTest=production -org.terracotta.ehcache.tests.OverflowToDiskStandaloneCacheTest=production -org.terracotta.ehcache.tests.SerializationWriteBehindTest=production -org.terracotta.ehcache.tests.SerializedArrayCacheTest=production -org.terracotta.ehcache.tests.SuspendResumeAtomikosXATest=production -org.terracotta.ehcache.tests.SuspendResumeBTMXATest=production -org.terracotta.ehcache.tests.SynchronousWriteBehindTest=production -org.terracotta.ehcache.tests.SystemPropTcConfigTest=production -org.terracotta.ehcache.tests.ThreadLocalTest=production -org.terracotta.ehcache.tests.TwoResourceAtomikosXATest=production -org.terracotta.ehcache.tests.TwoResourceBTMXATest=production -org.terracotta.ehcache.tests.TwoResourceSuspendResumeAtomikosXATest=production -org.terracotta.ehcache.tests.TwoResourceSuspendResumeBTMXATest=production -org.terracotta.ehcache.tests.UrlConfigStandaloneCacheTest=production -org.terracotta.ehcache.tests.XAResourceTest=production -org.terracotta.ehcache.tests.coherence.CacheCoherenceExpressTest=quarantined -org.terracotta.ehcache.tests.coherence.IncoherentNodesTest=quarantined -org.terracotta.ehcache.tests.coherence.RestartingL1ExpressTest=quarantined -org.terracotta.ehcache.tests.container.BasicContainerJTATest=production -org.terracotta.ehcache.tests.container.BasicContainerTest=production -org.terracotta.ehcache.tests.container.BasicJTATestServlet=production -org.terracotta.ehcache.tests.container.BasicTestServlet=production -org.terracotta.ehcache.tests.container.EARContainerTest=production -org.terracotta.ehcache.tests.container.TwoResourceContainerJTATest=production -org.terracotta.ehcache.tests.container.TwoResourceJTATestServlet=production -org.terracotta.ehcache.tests.container.hibernate.BaseClusteredRegionFactoryTest=production -org.terracotta.ehcache.tests.container.hibernate.BaseClusteredRegionFactoryTestServlet=production -org.terracotta.ehcache.tests.container.hibernate.nontransactional.EhCacheClusteredHibernateCacheTest=production -org.terracotta.ehcache.tests.container.hibernate.nontransactional.EmptySecondLevelCacheEntryTest=production -org.terracotta.ehcache.tests.container.hibernate.nontransactional.KeyDeserializationSecondLevelCacheEntryTest=production -org.terracotta.ehcache.tests.container.hibernate.nontransactional.KeyDeserializationSecondLevelCacheEntryTestServlet=production -org.terracotta.ehcache.tests.container.hibernate.nontransactional.NonEternalSecondLevelCacheTest=production -org.terracotta.ehcache.tests.container.hibernate.nontransactional.NonEternalSecondLevelCacheTestServlet=production -org.terracotta.ehcache.tests.container.hibernate.nontransactional.NonTransactionalCacheTest=production -org.terracotta.ehcache.tests.container.hibernate.nontransactional.QueryCacheInvalidationTest=production -org.terracotta.ehcache.tests.loader.LoaderTest=production -org.terracotta.ehcache.tests.servermap.BasicServerMapExpressCacheTest=production -org.terracotta.ehcache.tests.servermap.BasicServerMapExpressTestHelper=production -org.terracotta.ehcache.tests.servermap.CacheSizeTest=production -org.terracotta.ehcache.tests.servermap.LockGCNotFlushingEntriesTest=production -org.terracotta.ehcache.tests.servermap.LockGCNotFlushingEntriesTestClient=production -org.terracotta.ehcache.tests.servermap.ServerMapCapacityEvictionExpressTest=production -org.terracotta.ehcache.tests.servermap.ServerMapCapacityEvictionExpressTestClient=production -org.terracotta.ehcache.tests.servermap.ServerMapClearExpressTest=production -org.terracotta.ehcache.tests.servermap.ServerMapClearExpressTestClient1=production -org.terracotta.ehcache.tests.servermap.ServerMapClearExpressTestClient2=production -org.terracotta.ehcache.tests.servermap.ServerMapClearTestHelper=production -org.terracotta.ehcache.tests.servermap.ServerMapElementTTIExpressTest=production -org.terracotta.ehcache.tests.servermap.ServerMapElementTTIExpressTestClient=production -org.terracotta.ehcache.tests.servermap.ServerMapElementTTLExpressTest=production -org.terracotta.ehcache.tests.servermap.ServerMapElementTTLExpressTestClient=production -org.terracotta.ehcache.tests.servermap.ServerMapL1CapacityEvictionExpressTest=production -org.terracotta.ehcache.tests.servermap.ServerMapL1CapacityEvictionExpressTestClient=production -org.terracotta.ehcache.tests.servermap.ServerMapL1CapacityExpirationExpressTest=production -org.terracotta.ehcache.tests.servermap.ServerMapL1CapacityExpirationExpressTestClient=production -org.terracotta.ehcache.tests.servermap.ServerMapL1EvictionOffHeapDestroyExpressTest=production -org.terracotta.ehcache.tests.servermap.ServerMapL1EvictionOffHeapDestroyExpressTestClient=production -org.terracotta.ehcache.tests.servermap.ServerMapL2EvictionReachesL1Test=production -org.terracotta.ehcache.tests.servermap.ServerMapL2EvictionReachesL1TestClient=production -org.terracotta.ehcache.tests.servermap.ServerMapL2EvictionReachesOneL1Test=production -org.terracotta.ehcache.tests.servermap.ServerMapL2EvictionReachesOneL1TestClient=production -org.terracotta.ehcache.tests.servermap.ServerMapLocalSizeTest=production -org.terracotta.ehcache.tests.servermap.ServerMapTTIExpressTest=production -org.terracotta.ehcache.tests.servermap.ServerMapTTIExpressTestClient=production -org.terracotta.ehcache.tests.servermap.ServerMapTTLExpressTest=production -org.terracotta.ehcache.tests.servermap.ServerMapTTLExpressTestClient=production -org.terracotta.modules.ehcache.LocalVMResourcesTestUtil=production -org.terracotta.modules.ehcache.bulkops.BulkOpsBasicSerializationSanityTest=production -org.terracotta.modules.ehcache.bulkops.BulkOpsExplictLockingTest=production -org.terracotta.modules.ehcache.bulkops.BulkOpsGenericSanityTest=production -org.terracotta.modules.ehcache.bulkops.GetAllCustomMapTest=production -org.terracotta.modules.ehcache.bulkops.GetAllNonLiteralTest=production -org.terracotta.modules.ehcache.bulkops.GetAllTest=production -org.terracotta.modules.ehcache.cluster.CacheClusterTest=production -org.terracotta.modules.ehcache.cluster.ClusterTopologyListenerTest=production -org.terracotta.modules.ehcache.cluster.FailoverDuringPassiveSyncTest=production -org.terracotta.modules.ehcache.cluster.FailoverToOutOfSyncPassivesTest=production -org.terracotta.modules.ehcache.coherence.CacheCoherenceTest=production -org.terracotta.modules.ehcache.coherence.CacheCoherenceTestL1Client=production -org.terracotta.modules.ehcache.coherence.GetSizeTest=production -org.terracotta.modules.ehcache.coherence.NoLocksCreatedEventualTest=production -org.terracotta.modules.ehcache.coherence.NoLocksCreatedTest=production -org.terracotta.modules.ehcache.event.ClusterTopologyTest=production -org.terracotta.modules.ehcache.event.ClusteredEventsAllTest=production -org.terracotta.modules.ehcache.event.ClusteredEventsEvictionExpiryTest=production -org.terracotta.modules.ehcache.event.ClusteredEventsLocalTest=production -org.terracotta.modules.ehcache.event.ClusteredEventsRemoteTest=production -org.terracotta.modules.ehcache.event.ClusteredEventsSerializationTest=production -org.terracotta.modules.ehcache.l1bm.L1BMCacheManagerRecreateTest=production -org.terracotta.modules.ehcache.l1bm.L1BMCacheStatisticsTest=production -org.terracotta.modules.ehcache.l1bm.L1BMDynamicConfigurationTest=production -org.terracotta.modules.ehcache.l1bm.L1BMOnHeapActivePassiveSanityTest=production -org.terracotta.modules.ehcache.l1bm.L1BMOnHeapBasicSanityTestApp=production -org.terracotta.modules.ehcache.l1bm.L1BMOnHeapReadWriteTest=production -org.terracotta.modules.ehcache.l1bm.L1BMOnHeapSanityTest=production -org.terracotta.modules.ehcache.l1bm.L1BMOnHeapWithTTISanityTest=production -org.terracotta.modules.ehcache.l1bm.L1BMOnHeapWithTTLSanityTest=production -org.terracotta.modules.ehcache.l1bm.L1BMUpdateInvalidatedEntryTest=production -org.terracotta.modules.ehcache.store.BasicCacheSyncWriteTest=production -org.terracotta.modules.ehcache.store.BasicCacheTest=production -org.terracotta.modules.ehcache.store.BlockingCacheTest=production -org.terracotta.modules.ehcache.store.CachePinningTest=production -org.terracotta.modules.ehcache.store.ClassicIsInvalidTest=production -org.terracotta.modules.ehcache.store.ConcurrentCacheMethodsTest=production -org.terracotta.modules.ehcache.store.CopyOnReadTest=production -org.terracotta.modules.ehcache.store.DCV2ConfigurationChangePropagationTest=production -org.terracotta.modules.ehcache.store.DynamicCacheConfigurationTest=production -org.terracotta.modules.ehcache.store.EvictionListenerTest=production -org.terracotta.modules.ehcache.store.ExpirationListenerTest=production -org.terracotta.modules.ehcache.store.GetKeysSerializedCacheTest=production -org.terracotta.modules.ehcache.store.InlineExpirationTest=production -org.terracotta.modules.ehcache.store.LocalBufferedMapTest=production -org.terracotta.modules.ehcache.store.LocalReadsGetKeysTest=production -org.terracotta.modules.ehcache.store.NoCacheWithMaxBytesLocalDiskTest=production -org.terracotta.modules.ehcache.store.PinnedCacheTest=production -org.terracotta.modules.ehcache.store.PrimitiveClassTest=production -org.terracotta.modules.ehcache.store.ProgrammaticCacheTest=production -org.terracotta.modules.ehcache.store.ProgrammaticConfigTest=production -org.terracotta.modules.ehcache.store.SampledStatisticTimerTest=production -org.terracotta.modules.ehcache.store.SerializedCacheCopyOnReadTest=production -org.terracotta.modules.ehcache.store.SerializedCacheTest=production -org.terracotta.modules.ehcache.store.ServerMapBasicCacheTest=production -org.terracotta.modules.ehcache.store.SimpleVersionTest=production -org.terracotta.modules.ehcache.store.StorageStrategyNotSupportedTest=production -org.terracotta.modules.ehcache.store.TTICacheTest=production -org.terracotta.modules.ehcache.store.TTLCacheTest=production -org.terracotta.modules.ehcache.store.TotalCapacityTest=production -org.terracotta.modules.ehcache.store.backend.BulkLoadInternalKeyRepresentationExposedTest=production -org.terracotta.modules.ehcache.writebehind.AsyncWriteBehindTest=production -org.terracotta.modules.ehcache.writebehind.BasicWriteBehindTest=production -org.terracotta.modules.ehcache.writebehind.CacheSeparationWriteBehindTest=production -org.terracotta.modules.ehcache.writebehind.CoalescingWriteBehindTest=production -org.terracotta.modules.ehcache.writebehind.RemovingCacheWriteBehindTest=production -org.terracotta.modules.ehcache.writebehind.SerializationWriteBehindTest=production Index: rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-common/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-common/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-common/pom.xml (revision 0) @@ -1,97 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - management-ehcache-impl-parent - 2.10.8.2.20 - .. - - - management-ehcache-common - management-ehcache-common - A common library shared between different management-ehcache implementation versions - - - - org.terracotta - management-core-resources - - - net.sf.ehcache.internal - ehcache-core - ${project.version} - provided - - - gf-40 - gf.javax.servlet-api - - - org.eclipse.jetty - jetty-servlet - - - junit - junit - test - - - commons-io - commons-io - 2.6 - test - - - org.easymock - easymock - test - - - org.mockito - mockito-core - test - - - org.powermock - powermock-api-easymock - test - - - org.powermock - powermock-module-junit4 - test - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - Index: rctags/ehcache-2.10.8.2.20/ehcache/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache/pom.xml (revision 0) @@ -1,414 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - ehcache-root - 2.10.8.2.20 - .. - - - ehcache - jar - ehcache - Ehcache is an open source, standards-based cache used to boost performance, - offload the database and simplify scalability. Ehcache is robust, proven and full-featured and - this has made it the most widely-used Java-based cache. - - - - The Apache Software License, Version 2.0 - src/assemble/EHCACHE-CORE-LICENSE.txt - - - http://ehcache.org - - - - ${project.artifactId}-${project.version}-distribution - ${project.build.directory}/${kit.name} - ${project.build.directory}/tmp/terracotta - 2.1.1 - false - true - - - - - - net.sf.ehcache.internal - ehcache-terracotta-bootstrap - ${project.version} - - - net.sf.ehcache.internal - ehcache-rest-agent - ${project.version} - - - net.sf.ehcache.internal - ehcache-core - ${project.version} - - - net.sf.ehcache.internal - ehcache-scheduled-refresh - ${project.version} - - - net.sf.ehcache.internal - ehcache-search-parser - ${project.version} - - - junit - junit - test - - - org.terracotta - product-upgradability-testing-utils - 0.9.2 - test - - - org.codehaus.btm - btm - 2.1.3 - test - - - org.quartz-scheduler - quartz - 2.2.1 - test - - - org.slf4j - slf4j-jdk14 - ${slf4j.version} - test - - - - - - - ${basedir}/src/main/resources - true - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy-TIMs - - org.terracotta.modules - ${project.build.outputDirectory}/META-INF/terracotta/TIMs - **/META-INF/maven/**,**/license.txt,**/thirdpartylicenses.txt - - process-resources - - copy-dependencies - - - - - - org.terracotta - maven-forge-plugin - - - create-manifest - package - - manifest - - - ${basedir}/.. - ${project.build.directory}/MANIFEST.MF - - Apache Software License, Version 2.0 - Supported - ${project.artifactId} - ${project.description} - - - - - enforce-dependencies - - enforceDependencies - - verify - - net.sf.ehcache.internal - ehcache-core - ${project.version} - - - - - - - - - - devmode - - - devmode - true - - true - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - list-dependencies - - ${project.build.outputDirectory}/META-INF/devmode/${project.groupId}/${project.artifactId}/dependencies.txt - - - list - - compile - - - - - - - - - fullmode - - - devmode - false - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9 - - - create-javadoc - prepare-package - - jar - - - - - org.hibernate - hibernate-core - ${hibernate-core.version} - - - ${skipJavadoc} - true - 128m - 512 - true -
ehcache]]>
- ${project.name} ${project.version} API - ${project.name} ${project.version} API - Copyright 2001-{currentYear}, Terracotta, Inc. - ${basedir}/src/main/java/net/sf/ehcache/overview.html - true - - net.sf.ehcache.internal:ehcache-core - -
-
-
-
- - - org.apache.maven.plugins - maven-shade-plugin - - record-shader - true - true - - - net.sf.ehcache.internal:* - org.terracotta.internal:statistics - com.terracotta:clustered-entity-management - - - - - *:* - - META-INF/maven/com.terracotta/** - META-INF/maven/net.sf.ehcache.internal/** - META-INF/maven/org.terracotta.internal/** - **/license.txt - **/thirdpartylicenses.txt - META-INF/*.SF - META-INF/*.DSA - META-INF/*.RSA - **/LICENSE - **/LICENSE.txt - **/NOTICE - **/NOTICE.txt - **/ASL2.0 - **/DEPENDENCIES - - - - true - ${project.build.directory}/dependency-reduced-pom.xml - - - MANIFEST.MF - - - META-INF/MANIFEST.MF - ${project.build.directory}/MANIFEST.MF - - - - - - shade-jar - package - - shade - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.7 - - - unpack-jar-for-bundling - package - - run - - - - - - - - - - - org.apache.felix - maven-bundle-plugin - 2.3.7 - - ${project.build.directory} - - bitronix.tm;resolution:=optional, - bitronix.tm.resource.ehcache;resolution:=optional, - com.atomikos.*;resolution:=optional, - com.atomikos.icatch.jta;resolution:=optional, - weblogic.transaction;resolution:=optional, - javax.transaction;resolution:=optional, - javax.servlet;resolution:=optional, - javax.net.ssl;resolution:=optional, - javax.activation;resolution:=optional, - javax.xml.stream;resolution:=optional, - javax.xml.transform.sax;resolution:=optional, - javax.xml.transform.dom;resolution:=optional, - javax.xml.transform.stream;resolution:=optional, - org.hibernate.*;resolution:=optional, - org.terracotta.toolkit.*;resolution:=optional, - org.quartz.*;resolution:=optional, - org.terracotta.quartz.*;resolution:=optional, - !sun.misc,* - - net.sf.ehcache.* - org.terracotta.* - JavaSE-1.6 - - *;scope=provided|runtime - - - - generate-osgi-headers - package - - manifest - - - - - - org.codehaus.gmaven - groovy-maven-plugin - ${groovy-maven-plugin.version} - - - repackage-jar - package - - execute - - - - def jarFile = new File(project.build.directory, "${project.artifactId}-${project.version}.jar") - ant.copy(file: new File(project.build.directory, "dependency-reduced-pom.xml"), - tofile: new File(project.build.outputDirectory, "META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml")) - ant.jar(destfile: jarFile, basedir: new File(project.build.outputDirectory).getAbsolutePath(), manifest: new File(project.build.directory, "MANIFEST.MF")) - - - - - -
-
-
-
- - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - JIRA - https://jira.terracotta.org/jira/browse/EHC - - -
Index: rctags/ehcache-2.10.8.2.20/terracotta/bootstrap/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/terracotta/bootstrap/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/terracotta/bootstrap/pom.xml (revision 0) @@ -1,82 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache.internal - ehcache-terracotta-root - 2.10.8.2.20 - - - ehcache-terracotta-bootstrap - ehcache-terracotta-bootstrap - jar - - - false - - - - - net.sf.ehcache.internal - ehcache-core - ${project.version} - provided - - - org.terracotta.toolkit - terracotta-toolkit-api-internal - - - com.terracotta - clustered-entity-management - - - org.mockito - mockito-core - test - - - junit - junit - test - - - net.sf.ehcache.internal - ehcache-core - test-jar - ${project.version} - test - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - - deploy-sonatype - - true - - - - Index: rctags/ehcache-2.10.8.2.20/management-ehcache-impl/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/management-ehcache-impl/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/management-ehcache-impl/pom.xml (revision 0) @@ -1,43 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - ehcache-root - 2.10.8.2.20 - .. - - - management-ehcache-impl-parent - management-ehcache-impl-parent - pom - - - management-ehcache-impl-v1 - management-ehcache-impl-v2 - management-ehcache-common - ehcache-rest-agent - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - Index: rctags/ehcache-2.10.8.2.20/management-ehcache-v2/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/management-ehcache-v2/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/management-ehcache-v2/pom.xml (revision 0) @@ -1,72 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - ehcache-root - 2.10.8.2.20 - .. - - - management-ehcache-v2 - management-ehcache-v2 - A library defining the ehcache management resource services and resource entities, version 2 - - - - org.terracotta - management-common-resources-v2 - ${management-core.version} - - - - - junit - junit - test - - - org.easymock - easymock - test - - - net.sf.ehcache.internal - ehcache-core - test-jar - ${project.version} - test - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - Index: rctags/ehcache-2.10.8.2.20/ehcache-scheduled-refresh/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-scheduled-refresh/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-scheduled-refresh/pom.xml (revision 0) @@ -1,46 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - ehcache-root - 2.10.8.2.20 - .. - - - ehcache-scheduled-refresh - net.sf.ehcache.internal - ehcache-scheduled-refresh - Ehcache functionality for Scheduled Refresh; uses the Quartz Job Scheduler - - - - net.sf.ehcache.internal - ehcache-core - ${project.version} - - - org.quartz-scheduler - quartz - provided - - - org.slf4j - slf4j-jdk14 - provided - - - junit - junit - test - - - net.sf.ehcache.internal - ehcache-core - test-jar - ${project.version} - test - - - Index: rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v2/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v2/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v2/pom.xml (revision 0) @@ -1,136 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - management-ehcache-impl-parent - 2.10.8.2.20 - .. - - - management-ehcache-impl-v2 - management-ehcache-impl-v2 - A product library integrating with ehcache to construct the relevant management resource entities V1 - - - - net.sf.ehcache - management-ehcache-v2 - ${project.version} - - - net.sf.ehcache - management-ehcache-common - ${project.version} - - - org.terracotta - management-core-resources - ${management-core.version} - test-jar - test - - - net.sf.ehcache.internal - ehcache-core - ${project.version} - provided - - - net.sf.ehcache.internal - ehcache-terracotta-bootstrap - ${project.version} - provided - - - org.terracotta.toolkit - terracotta-toolkit-api - 2.5 - provided - - - org.terracotta.toolkit - terracotta-toolkit-api-internal - provided - - - gf-40 - gf.javax.servlet-api - - - org.easymock - easymock - test - - - org.eclipse.jetty - jetty-servlet - test - - - org.mockito - mockito-core - test - - - org.powermock - powermock-api-easymock - test - - - org.powermock - powermock-module-junit4 - test - - - org.hamcrest - hamcrest-all - 1.3 - test - - - commons-io - commons-io - 2.6 - test - - - net.sf.ehcache.internal - ehcache-core - test-jar - ${project.version} - test - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - Index: rctags/ehcache-2.10.8.2.20/distribution/colorcache/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/distribution/colorcache/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/distribution/colorcache/pom.xml (revision 0) @@ -1,154 +0,0 @@ - - 4.0.0 - - org.terracotta.forge - forge-parent - 4.16 - - - net.sf.ehcache.examples - colorcache - 2.10.8.2.20 - colorcache - war - Clustered Ehcache sample with Terracotta - - 2.1.0 - 4.3.8.2.8 - true - 9.4.28.v20200408 - - - ${project.name} - - - maven-assembly-plugin - 2.3 - - ${project.name} - - src/assemble/distribution.xml - - gnu - - - - package - - single - - - - - - jetty-maven-plugin - ${jetty.version} - org.eclipse.jetty - - - ${project.name} - - STOP - - - - org.terracotta.maven.plugins - tc-maven-plugin - ${tc-maven-plugin.version} - - - org.terracotta - terracotta - ${terracotta.version} - - - - - - - - net.sf.ehcache - ehcache - ${project.version} - - - org.terracotta - terracotta-toolkit-runtime - ${terracotta.version} - - - gf-40 - gf.javax.servlet-api - 3.1.0 - - - org.slf4j - slf4j-jdk14 - 1.7.25 - - - - - 9081 - - - - jetty-maven-plugin - ${jetty.version} - org.eclipse.jetty - - - - jetty.port - 9081 - - - 9981 - - - - - - - 9082 - - - - jetty-maven-plugin - ${jetty.version} - org.eclipse.jetty - - - - jetty.port - 9082 - - - 9982 - - - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - Index: rctags/ehcache-2.10.8.2.20/README.txt =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/README.txt (revision 11355) +++ rctags/ehcache-2.10.8.2.20/README.txt (revision 0) @@ -1,18 +0,0 @@ -1. To compile: - %> mvn install -DskipTests - -Note: the final Ehcache jar is found under ehcache/target - - -2. To build Ehcache distribution kit: - - %> cd distribution - - %> mvn package (build without an embedded Terracotta kit, lean and mean Ehcache kit) - - %> mvn package -Dtc-kit-url=http://url/to/teracotta.tar.gz (built with Terracotta kit, offical distribution kit) - -3. To deploy Maven central repo (via Sonatype) - - %> mvn clean deploy -P sign-artifacts,deploy-sonatype -DskipTests - \ No newline at end of file Index: rctags/ehcache-2.10.8.2.20/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/pom.xml (revision 0) @@ -1,484 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - ehcache-parent - 2.25 - - - - ehcache-root - net.sf.ehcache - ehcache-root - pom - 2.10.8.2.20 - - - scm:svn:https://svn.terracotta.org/repo/ehcache/trunk/ehcache - - - - 1.7.25 - 1.0.1 - 2.1.1 - 2.15 - 1.17 - 2.1.13.7 - 0.10.0 - 1.0.2 - 2.2.3 - 9.4.28.v20200408 - 3.5.1-Final - - - - ehcache-core - terracotta - ehcache - management-ehcache-v1 - management-ehcache-v2 - management-ehcache-impl - ehcache-scheduled-refresh - ehcache-search-parser - - - - - - - org.slf4j - slf4j-api - ${slf4j.version} - - - org.terracotta.internal - statistics - ${statistics.version} - - - org.terracotta - management-core-resources - ${management-core.version} - - - com.terracotta - clustered-entity-management - ${clustered-entity-management.version} - - - org.eclipse.jetty - jetty-servlet - ${jetty.version} - - - javax.servlet - javax.servlet-api - - - - - - gf-40 - gf.javax.servlet-api - 3.1.0 - - - - - org.terracotta.toolkit - terracotta-toolkit-api-internal - ${terracotta-toolkit-api-internal.version} - provided - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - org.hibernate - hibernate-core - ${hibernate-core.version} - provided - - - javax.transaction - jta - 1.1 - provided - - - net.sf.ehcache - sizeof-agent - 1.0.1 - provided - - - - - org.slf4j - slf4j-jdk14 - ${slf4j.version} - test - - - org.codehaus.btm - btm - 2.1.3 - test - - - net.sf.hibernate - hibernate - 2.1.8 - test - - - org.hamcrest - hamcrest-core - 1.3 - test - - - org.hamcrest - hamcrest-library - 1.3 - test - - - junit - junit - 4.11 - test - - - dom4j - dom4j - 1.6.1 - test - - - javassist - javassist - 3.4.GA - test - - - org.hibernate - hibernate-ehcache - 3.3.2.GA - test - - - ehcache - net.sf.ehcache - - - - - commons-logging - commons-logging - 1.1.1 - test - - - org.apache.derby - derby - 10.5.3.0_1 - test - - - org.mockito - mockito-core - 1.9.0 - test - - - com.sun.xsom - xsom - 20100725 - test - - - org.beanshell - bsh - 1.3.0 - test - - - org.quartz-scheduler - quartz - ${quartz.version} - - - org.easymock - easymock - 3.0 - test - - - org.powermock - powermock-api-easymock - 1.4.10 - test - - - org.powermock - powermock-module-junit4 - 1.4.10 - test - - - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.3.2 - - - - true - - - - - - org.apache.maven.plugins - maven-surefire-plugin - ${surefire.version} - - true - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8.1 - - - org.apache.maven.plugins - maven-checkstyle-plugin - 3.1.0 - - - org.apache.maven.plugins - maven-dependency-plugin - 2.8 - - - org.codehaus.mojo - build-helper-maven-plugin - 1.7 - - - org.apache.maven.plugins - maven-antrun-plugin - 1.3 - - - org.terracotta - maven-forge-plugin - ${maven-forge-plugin.version} - - -Djava.net.preferIPv4Stack=true - - - - org.apache.maven.plugins - maven-shade-plugin - 2.3 - - - org.terracotta.maven.plugins - terracotta-shader - 1.2 - - - - - org.codehaus.gmaven - groovy-maven-plugin - ${groovy-maven-plugin.version} - - - org.codehaus.mojo - rmic-maven-plugin - 1.1 - - - - - - org.terracotta - maven-forge-plugin - - - generateBuildInfoFile - generate-resources - - buildinfo - - - true - ${project.build.outputDirectory} - - - - default-test - test - - test - - - - - - - - - - system-tests - - system-tests - - - - dist - - distribution - - - - - - check-short - - true - true - - - - - org.reflections - reflections-maven - 0.9.9-RC1 - - org.reflections.scanners.TypeAnnotationsScanner - ${project.build.directory}/reflections.xml - true - true - - - - - reflections - - process-test-classes - - - - - org.terracotta - maven-forge-plugin - - true - org.terracotta.test.categories.CheckShorts - - - java.awt.headless - true - - - - - - - - - - deploy-terracotta - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.1 - true - - - http://nexus.terracotta.eur.ad.sag - - terracotta-nexus-staging - ${skipDeploy} - - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - - - - - - - deploy-sonatype - - - sonatype-nexus-staging - http://oss.sonatype.org/service/local/staging/deploy/maven2 - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - - - - - - terracotta-nexus-staging - Terracotta Nexus Staging Repository - ${terracotta-nexus-staging-url} - - - terracotta-os-snapshots - false - Terracotta OS Snapshots Repository - ${terracotta-os-snapshots-url} - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - Index: rctags/ehcache-2.10.8.2.20/third-party.txt =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/third-party.txt (revision 11355) +++ rctags/ehcache-2.10.8.2.20/third-party.txt (revision 0) @@ -1,5 +0,0 @@ -This project depends on repackaged GlassFish libraries. -They can be identified by their groupId starting with gf-*. - -The source code for these libraries can be found at https://svn.java.net/svn/glassfish~svn/. -Otherwise contact to get the source code for these libraries. \ No newline at end of file Index: rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v1/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v1/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v1/pom.xml (revision 0) @@ -1,113 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - management-ehcache-impl-parent - 2.10.8.2.20 - .. - - - management-ehcache-impl-v1 - management-ehcache-impl-v1 - A product library integrating with ehcache to construct the relevant management resource entities V1 - - - - net.sf.ehcache - management-ehcache-v1 - ${project.version} - - - net.sf.ehcache - management-ehcache-common - ${project.version} - - - org.terracotta - management-core-resources - ${management-core.version} - test-jar - test - - - net.sf.ehcache.internal - ehcache-core - ${project.version} - provided - - - gf-40 - gf.javax.servlet-api - - - org.easymock - easymock - test - - - org.eclipse.jetty - jetty-servlet - test - - - org.mockito - mockito-core - test - - - org.powermock - powermock-api-easymock - test - - - org.powermock - powermock-module-junit4 - test - - - org.hamcrest - hamcrest-all - 1.3 - test - - - net.sf.ehcache.internal - ehcache-core - test-jar - ${project.version} - test - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - Index: rctags/ehcache-2.10.8.2.20/ehcache-search-parser/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-search-parser/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-search-parser/pom.xml (revision 0) @@ -1,53 +0,0 @@ - - - 4.0.0 - - net.sf.ehcache - ehcache-root - 2.10.8.2.20 - .. - - - net.sf.ehcache.internal - ehcache-search-parser - ehcache-search-parser - A parser for Big Memory Structured Query Language. - - - - - org.codehaus.mojo - javacc-maven-plugin - 2.6 - - - javacc - - javacc - - - - - - - - - - net.sf.ehcache.internal - ehcache-core - ${project.version} - - - junit - junit - test - - - net.sf.ehcache.internal - ehcache-core - test-jar - ${project.version} - test - - - Index: rctags/ehcache-2.10.8.2.20/distribution/events/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/distribution/events/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/distribution/events/pom.xml (revision 0) @@ -1,270 +0,0 @@ - - 4.0.0 - - org.terracotta.forge - forge-parent - 4.16 - - - net.sf.ehcache.examples - events - 2.10.8.2.20 - events - war - Clustered Ehcache Terracotta as second level cache for Hibernate - - 2.1.0 - 4.3.8.2.8 - 1.1.116 - 9.4.28.v20200408 - 1.1 - true - - - - org.slf4j - slf4j-api - 1.7.25 - - - ch.qos.logback - logback-classic - 1.2.3 - - - javassist - javassist - 3.8.0.GA - - - h2 - ${h2.version} - com.h2database - - - net.sf.ehcache - ehcache - ${project.version} - - - org.terracotta - terracotta-toolkit-runtime - ${terracotta.version} - - - commons-logging - commons-logging - 1.1 - compile - - - logkit - logkit - - - avalon-framework - avalon-framework - - - javax.servlet - servlet-api - - - - - gf-40 - gf.javax.servlet-api - 3.1.0 - - - org.hibernate - hibernate-core - 3.3.1.GA - - - org.slf4j - slf4j-api - - - javax.transaction - jta - - - - - gf-3122 - gf.javax.transaction - 1.1 - - - - ${project.name} - - - maven-assembly-plugin - 2.3 - - ${project.name} - - src/assemble/distribution.xml - - gnu - - - - package - - single - - - - - - jetty-maven-plugin - ${jetty.version} - org.eclipse.jetty - - - ${project.name} - - STOP - - - - hibernate3-maven-plugin - 2.1 - org.codehaus.mojo - - - target/classes/hibernate3hbm2ddl.properties - target/classes/hibernate.cfg.xml - true - true - schema.sql - - - - - com.h2database - h2 - ${h2.version} - - - - - org.terracotta.maven.plugins - tc-maven-plugin - ${tc-maven-plugin.version} - - - org.terracotta - terracotta - ${terracotta.version} - - - - - - - - start-h2 - - - - org.codehaus.mojo - exec-maven-plugin - ${exec-maven-plugin.version} - - org.h2.tools.Server - - -tcp - -tcpAllowOthers - - - - - - - - stop-h2 - - - - org.codehaus.mojo - exec-maven-plugin - ${exec-maven-plugin.version} - - org.h2.tools.Server - - -tcpShutdown - tcp://localhost:9092 - - - - - - - - 9081 - - - - jetty-maven-plugin - ${jetty.version} - org.eclipse.jetty - - - - jetty.port - 9081 - - - 9981 - - - - - - - 9082 - - - - jetty-maven-plugin - ${jetty.version} - org.eclipse.jetty - - - - jetty.port - 9082 - - - 9982 - - - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - Index: rctags/ehcache-2.10.8.2.20/management-ehcache-v1/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/management-ehcache-v1/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/management-ehcache-v1/pom.xml (revision 0) @@ -1,72 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - ehcache-root - 2.10.8.2.20 - .. - - - management-ehcache-v1 - management-ehcache-v1 - A library defining the ehcache management resource services and resource entities, version 1 - - - - org.terracotta - management-common-resources-v1 - ${management-core.version} - - - - - junit - junit - test - - - org.easymock - easymock - test - - - net.sf.ehcache.internal - ehcache-core - test-jar - ${project.version} - test - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - Index: rctags/ehcache-2.10.8.2.20/management-ehcache-impl/ehcache-rest-agent/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/management-ehcache-impl/ehcache-rest-agent/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/management-ehcache-impl/ehcache-rest-agent/pom.xml (revision 0) @@ -1,219 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - management-ehcache-impl-parent - 2.10.8.2.20 - .. - - - net.sf.ehcache.internal - ehcache-rest-agent - ehcache-rest-agent - - Ehcache REST implementation - - - rest-management-private-classpath - .class_terracotta - true - - - - - net.sf.ehcache - management-ehcache-impl-v1 - ${project.version} - - - net.sf.ehcache - management-ehcache-impl-v2 - ${project.version} - - - gf-40 - gf.javax.servlet-api - 3.1.0 - - - org.eclipse.jetty - jetty-servlet - - - javax.xml.bind - jaxb-api - 2.3.0 - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - - - - devmode - - - devmode - true - - true - - - - .class - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - list-dependencies - - ${project.build.outputDirectory}/META-INF/devmode/${project.groupId}/${project.artifactId}/dependencies.txt - - - list - - compile - - - - - - org.apache.maven.plugins - maven-shade-plugin - - reduced-pom-only-shader - ${project.build.directory}/dependency-reduced-pom.xml - true - true - false - false - - - - org.slf4j:* - - - - - - package - - shade - - - - - - - - - - fullmode - - - devmode - false - - - - - - org.apache.maven.plugins - maven-shade-plugin - - record-shader - ${project.build.directory}/dependency-reduced-pom.xml - true - true - false - true - - - - org.slf4j:* - - - - - *:* - - META-INF/*.SF - META-INF/*.DSA - META-INF/*.RSA - - - - - - - - - - package - - shade - - - - - - org.codehaus.gmaven - groovy-maven-plugin - - - fix-content - package - - execute - - - - ${basedir}/src/scripts - - - import Util - Util.packageAgentJar(project) - - - - - - - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - Index: rctags/ehcache-2.10.8.2.20/distribution/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/distribution/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/distribution/pom.xml (revision 0) @@ -1,298 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - ehcache-root - 2.10.8.2.20 - - - ehcache-kit - pom - ehcache-kit - - project to build distribution kit - - - colorcache - events - - - - ehcache - ${productName}-${project.version} - ${kitFolder}-distribution - ${project.build.directory}/${kitFolder} - ${project.build.directory}/tmp/terracotta - - - - - net.sf.ehcache - ehcache - ${project.version} - provided - - - org.slf4j - slf4j-api - provided - - - org.slf4j - slf4j-jdk14 - provided - - - - - - includeJavadoc - - - !skipJavadoc - - - - - net.sf.ehcache - ehcache - ${project.version} - javadoc - provided - - - - - - - - - com.github.goldin - copy-maven-plugin - 0.2.3.8 - - false - - - - {{ new File( project.build.directory, "${kitFolder}" ).isDirectory() }} - ${root.dir} - - **/** - - true - true - - - - ${root.dir} - ${basedir}/src/main/assembly/root - true - true - - - - ${root.dir} - ${basedir}/../ehcache-core/src/main/config - true - - - - ${root.dir}/src - - - net.sf.ehcache - ehcache - sources - - - true - - - - false - ${root.dir}/javadoc - - - net.sf.ehcache - ehcache - javadoc - - - true - - - - {{ new File(project.properties['terracotta.kit.path']).isDirectory() }} - ${root.dir}/samples - - - net.sf.ehcache.examples - events - ${project.version} - distribution - tar.gz - - - net.sf.ehcache.examples - colorcache - ${project.version} - distribution - tar.gz - - - true - - - - {{ new File(project.properties['terracotta.kit.path']).isDirectory() }} - ${root.dir}/terracotta - ${terracotta.kit.path} - - **/ehcache/** - **/quartz/** - **/sessions/** - - true - - - {{ new File(project.properties['terracotta.kit.path']).isDirectory() }} - ${root.dir}/samples - ${terracotta.kit.path}/ehcache/samples - true - - - {{ new File(project.properties['terracotta.kit.path']).isDirectory() }} - ${root.dir}/samples/colorcache/bin - ${basedir}/src/main/assembly - - relative-paths.* - - - - {{ new File(project.properties['terracotta.kit.path']).isDirectory() }} - ${root.dir}/samples/events/bin - ${basedir}/src/main/assembly - - relative-paths.* - - - - - - - package-with-no-tc - package - - copy - - - - - - - org.terracotta - maven-forge-plugin - - - package-lib - package - - copy-dependencies - - - ${root.dir}/lib - false - - net.sf.ehcache:ehcache:${project.version} - org.slf4j:slf4j-api:${slf4j.version} - org.slf4j:slf4j-jdk14:${slf4j.version} - - - - - - - org.codehaus.gmaven - groovy-maven-plugin - - - create-tarball - package - - execute - - - - def srcdir = new File(project.basedir, "target/${kitFolder}") - def destFile = new File(project.basedir, "target/${tarballName}.tar.gz") - ant.tar(destfile: "${destFile}", longfile: "gnu", compression: "gzip") { - tarfileset(dir: "${srcdir}", prefix: "${kitFolder}", excludes: "**/bin/**,**/lib/**,**/*.sh,**/*.bat") - tarfileset(dir: "${srcdir}", prefix: "${kitFolder}", includes: "**/bin/**,**/lib/**,**/*.sh,**/*.bat", filemode: "755") - } - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.5 - - - attach-distribution - package - - attach-artifact - - - - - ${project.build.directory}/${tarballName}.tar.gz - tar.gz - distribution - - - - - - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - evgenyg.artifactoryonline.com - http://evgenyg.artifactoryonline.com/evgenyg/repo/ - - true - - - false - - - - - Index: rctags/ehcache-2.10.8.2.20/system-tests/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/system-tests/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/system-tests/pom.xml (revision 0) @@ -1,290 +0,0 @@ - - 4.0.0 - - org.terracotta - system-tests-parent - 4.3.8.2.8 - - - net.sf.ehcache.internal - ehcache-terracotta-system-tests - 2.10.8.2.20 - ehcache-terracotta-system-tests - System tests for ehcache-terracotta - - 512m - 1024m - -XX:MaxPermSize=512m - true - 10.10.1.1 - 2.2.3 - 1.7.7 - 1.5 - - - - org.terracotta - terracotta - ${terracotta.core.version} - - - gf-40 - gf.javax.servlet-api - - - - - net.sf.ehcache - ehcache - ${project.version} - test - - - net.sf.ehcache - management-ehcache-v1 - ${project.version} - test - - - net.sf.ehcache - management-ehcache-v2 - ${project.version} - test - - - org.slf4j - slf4j-simple - ${slf4j.version} - - - org.terracotta - terracotta-toolkit-runtime - ${terracotta.core.version} - test - - - asm - asm - 3.2 - test - - - org.hibernate - hibernate-core - 3.3.2.GA - test - - - javassist - javassist - 3.8.0.GA - test - - - org.apache.derby - derby - ${derby.version} - test - - - org.apache.derby - derbynet - ${derby.version} - test - - - org.apache.derby - derbyclient - ${derby.version} - test - - - javax.transaction - jta - 1.1 - test - - - org.codehaus.btm - btm - 2.1.3 - test - - - org.apache.geronimo.specs - geronimo-jta_1.0.1B_spec - 1.0.1 - test - - - com.atomikos - transactions-jta - 3.8.0 - test - - - org.mockito - mockito-all - - - - - org.ow2.jotm - jotm-core - 2.1.9 - test - - - org.terracotta.test - container-test-framework - - - org.quartz-scheduler - quartz - ${quartz.version} - - - io.rest-assured - rest-assured - - - io.rest-assured - json-path - - - org.codehaus.groovy - groovy - - - org.codehaus.groovy - groovy-json - - - org.codehaus.groovy - groovy-xml - - - net.sf.ehcache.test - hibernate-ehcache-bundle - ${osgi-test-tool.version} - - - org.terracotta.test - osgi-test-utils - ${osgi-test-tool.version} - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - test-jar - - test-jar - - - - - - org.apache.servicemix.tooling - depends-maven-plugin - 1.2 - - - generate-depends-file - - generate-depends-file - - - - - - - - - include-container-tests - - - appserver - - - - - - org.terracotta - maven-forge-plugin - - - **/container/**/*Test.java - - - - - - - - no-appserver-tests - - - appserver - no-appserver - - - - - - org.terracotta - maven-forge-plugin - - -Xmx768m - -XX:MaxPermSize=128m - - **/*Test.java - - - - - - - - deploy-sonatype - - true - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - jboss - JBoss Repository - https://repository.jboss.org/nexus/content/repositories/public/ - - true - - - false - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - - Index: rctags/ehcache-2.10.8.2.20/ehcache-core/pom.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/pom.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/pom.xml (revision 0) @@ -1,528 +0,0 @@ - - - 4.0.0 - - - net.sf.ehcache - ehcache-root - 2.10.8.2.20 - - - net.sf.ehcache.internal - ehcache-core - jar - - ehcache-core - Internal ehcache-core module. This artifact is not meant to be used directly - - - Ehcache - UTF-8 - UTF-8 - 5 - src/test/java - src/test/resources - ehcache - false - - -Xmx64m - - - - - - org.slf4j - slf4j-api - - - org.terracotta.internal - statistics - - - - - javax.servlet - javax.servlet-api - - - org.hibernate - hibernate-core - - - javax.transaction - jta - - - net.sf.ehcache - sizeof-agent - - - - - org.slf4j - slf4j-jdk14 - - - org.codehaus.btm - btm - - - net.sf.hibernate - hibernate - - - org.hamcrest - hamcrest-core - - - org.hamcrest - hamcrest-library - - - junit - junit - - - dom4j - dom4j - - - javassist - javassist - - - org.hibernate - hibernate-ehcache - - - - commons-logging - commons-logging - - - org.apache.derby - derby - - - org.mockito - mockito-core - - - com.sun.xsom - xsom - - - org.beanshell - bsh - - - - - - - src/main/resources - true - - - ${project.build.directory}/generated-resources - false - - - ${basedir}/${testDir} - - - ${basedir}/src/main/config/jcache - - - ${basedir}/${testResources} - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - test-jar - - test-jar - - - - - - - org.terracotta - maven-forge-plugin - - pertest - ${tests.supplemental.args} ${tests.max.heap.size} - false - false - true - plain - false - - true - ${net.sf.ehcache.speedAdjustmentFactor} - ${project.build.directory} - true - - - net.sf.ehcache:sizeof-agent - - - - - - default-test - - - **/*$* - **/*PerfTest.java - **/*PerfTest*.java - **/Abstract*Test.java - - - - - integration-test-execution - integration-test - - test - - - ${checkshort} - false - - **/*$* - - - **/IT*.java - **/*IT.java - **/*ITCase.java - - ${tests.supplemental.args} -Xms512m -Xmx512m - - - - build-info - generate-resources - - buildinfo - - - ${basedir}/.. - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - - verify - - checkstyle - - - - - ${basedir}/checkstyle/checkstyle.xml - ${basedir}/checkstyle/suppressions.xml - ${basedir}/checkstyle/ClassHeader.txt - ${skipCheckstyle} - false - false - false - false - false - false - true - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - generate-resources - copy-agent-jar-to-resources - - copy-dependencies - - - * - sizeof-agent - ${project.build.directory}/generated-resources/net/sf/ehcache/pool/sizeof/ - true - true - - - - - - org.codehaus.mojo - rmic-maven-plugin - - - rmi-compilation - compile - - rmic - - - - **/RMICachePeer.class - - ${project.build.outputDirectory} - - - - - - - - - - skip-ehcache-core-deploy - - true - - - - staging - - - - org.apache.maven.plugins - maven-gpg-plugin - - - sign-artifacts - deploy - - sign - - - - - - - - - perfTests - - - - org.terracotta - maven-forge-plugin - - - - default-test - - ${tests.supplemental.args} -Xmx512m - - **/*PerfTest.java - **/*PerfTest*.java - - - **/*$* - **/Abstract*Test.java - - - - - - - - - - - buildnumber-git - - - - org.codehaus.mojo - buildnumber-maven-plugin - 1.0-beta-3 - - - generate-resources - - create - - - - - false - false - {0,date,yyyy-MM-dd_HH-mm}_{1} - - timestamp - ${user.name} - - - - - - - - - - no-interruptible-io-solaris - - - java.vendor - Sun Microsystems Inc. - - - - -XX:-UseVMInterruptibleIO - - - - enable-system-gc-jrockit - - - java.vm.name - Oracle JRockit(R) - - - - -XXfullSystemGC -Xverbose:systemgc - - - - ibmj9 - - - java.vm.name - IBM J9 VM - - - - -Xenableexplicitgc - -Xmx256m - - - - - - test-nonstopcache - - - - org.terracotta - maven-forge-plugin - - - **/nonstop/*Test.java - - - **/*$* - - - - java.awt.headless - true - - - - - - - - - - - fast - - true - - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - false - - - true - - - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - true - - - false - - - - - - jboss-releases - http://repository.jboss.org/nexus/content/groups/public-jboss - - true - - - false - - - - - - Java.net Maven 2 - http://download.java.net/maven/2 - - true - - - false - - - - - - - terracotta-snapshots - http://www.terracotta.org/download/reflector/snapshots - - false - - - true - - - - terracotta-releases - http://www.terracotta.org/download/reflector/releases - - true - - - false - - - - - - Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/hibernate/domain/UuidItem.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/hibernate/domain/UuidItem.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/hibernate/domain/UuidItem.java (revision 0) @@ -1,46 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package net.sf.ehcache.hibernate.domain; - -public class UuidItem { - private String id; - private String name; - private String description; - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } -} \ No newline at end of file Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/search/expression/NotEqualTo.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/search/expression/NotEqualTo.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/search/expression/NotEqualTo.java (revision 0) @@ -1,49 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package net.sf.ehcache.search.expression; - -import java.util.Map; - -import net.sf.ehcache.Element; -import net.sf.ehcache.search.attribute.AttributeExtractor; - -/** - * Criteria for plain "not equals to" condition - * - * @author teck - */ -public class NotEqualTo extends EqualTo { - - /** - * Constructor - * - * @param attributeName attribute name - * @param value - */ - public NotEqualTo(String attributeName, Object value) { - super(attributeName, value); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean execute(Element e, Map attributeExtractors) { - return !super.execute(e, attributeExtractors); - } - -} Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/hibernate/strategy/package.html =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/hibernate/strategy/package.html (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/hibernate/strategy/package.html (revision 0) @@ -1,5 +0,0 @@ - - - This package contains EhCache specific AccessStrategy implementations. - - Index: rctags/ehcache-2.10.8.2.20/system-tests/src/test/resources/basic-writebehind-test.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/system-tests/src/test/resources/basic-writebehind-test.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/system-tests/src/test/resources/basic-writebehind-test.xml (revision 0) @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/OverflowCacheTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/OverflowCacheTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/OverflowCacheTest.java (revision 0) @@ -1,73 +0,0 @@ -package net.sf.ehcache; - -import net.sf.ehcache.config.CacheConfiguration; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; - -/** - * @author Alex Snaps - */ -public class OverflowCacheTest { - - private static final Logger LOG = LoggerFactory.getLogger(CacheTest.class.getName()); - - private CacheManager manager; - - @Before - public void setUp() throws Exception { - manager = CacheManager.create(); - } - - /** - * teardown - */ - @After - public void tearDown() throws Exception { - if (manager != null) { - manager.shutdown(); - } - } - - - /** - * Shows the effect of jamming large amounts of puts into a cache that overflows to disk. - * The DiskStore should cause puts to back off and avoid an out of memory error. - */ - @Test - public void testBehaviourOnDiskStoreBackUp() throws Exception { - Cache cache = new Cache(new CacheConfiguration().name("testBehaviourOnDiskStoreBackUp") - .maxElementsInMemory(1000) - .overflowToDisk(true) - .eternal(false) - .timeToLiveSeconds(100) - .timeToIdleSeconds(200) - .diskPersistent(false) - .diskExpiryThreadIntervalSeconds(0) - .diskSpoolBufferSizeMB(10)); - manager.addCache(cache); - - assertEquals(0, cache.getStatistics().getLocalHeapSize()); - - Element a; - int i = 0; - try { - for (; i < 150000; i++) { - String key = i + ""; - String value = key; - a = new Element(key, value + "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"); - cache.put(a); - } - } catch (OutOfMemoryError e) { - LOG.info("OutOfMemoryError: " + e.getMessage() + " " + i); - fail(); - } - } - - -} Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/util/concurrent/ConcurrentHashMapTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/util/concurrent/ConcurrentHashMapTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/util/concurrent/ConcurrentHashMapTest.java (revision 0) @@ -1,218 +0,0 @@ -package net.sf.ehcache.util.concurrent; - -import net.sf.ehcache.Element; -import org.junit.Test; - -import java.util.HashSet; -import java.util.Random; -import java.util.UUID; - -import static org.hamcrest.CoreMatchers.instanceOf; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.notNullValue; -import static org.junit.Assert.assertThat; - -/** - * @author Alex Snaps - */ -public class ConcurrentHashMapTest { - - private static final int ENTRIES = 10000; - - @Test - public void testRandomValuesWithObjects() { - - ConcurrentHashMap> map = new ConcurrentHashMap>(); - - for(int i = 0; i < ENTRIES; i++) { - final Object o = new Object(); - map.put(o, new KeyHolder(o)); - } - - assertThings(map); - } - - @Test - public void testRandomValuesWithComparable() { - ConcurrentHashMap> map = new ConcurrentHashMap>(); - - for(int i = 0; i < ENTRIES; i++) { - final EvilComparableKey o = new EvilComparableKey(UUID.randomUUID().toString()); - map.put(o, new KeyHolder(o)); - } - - assertThings(map); - } - - @Test - public void testReplaceWithWeirdBehavior() { - ConcurrentHashMap elementMap = new ConcurrentHashMap(); - final Element initialElement = new Element("key", "foo"); - elementMap.put("key", initialElement); - assertThat(elementMap.replace("key", initialElement, new Element("key", "foo")), is(true)); - assertThat(elementMap.replace("key", initialElement, new Element("key", "foo")), is(false)); - - ConcurrentHashMap stringMap = new ConcurrentHashMap(); - final String initialString = "foo"; - stringMap.put("key", initialString); - assertThat(stringMap.replace("key", initialString, new String(initialString)), is(true)); - assertThat(stringMap.replace("key", initialString, new String(initialString)), is(true)); - } - - @Test - public void testRandomValues() { - ConcurrentHashMap> map = new ConcurrentHashMap>(); - final long seed = System.nanoTime(); - System.out.println("SEED: " + seed); - final Random random = new Random(seed); - - for(int i = 0; i < ENTRIES; i++) { - final Object o; - switch(i % 4) { - case 0: - final int hashCode = random.nextInt(); - o = new Object() { - @Override - public int hashCode() { - return hashCode; - } - }; - break; - case 1: - o = new EvilKey(Integer.toString(i)); - break; - default: - o = new EvilComparableKey(Integer.toString(i)); - - } - assertThat(map.put(o, new KeyHolder(o)) == null, is(true)); - } - - for (Object o : map.keySet()) { - assertThat(o.toString(), map.containsKey(o), is(true)); - assertThat(o.toString(), map.get(o), notNullValue()); - } - - assertThings(map); - } - - @Test - public void testRandomValuesWithCollisions() { - ConcurrentHashMap> map = new ConcurrentHashMap>(); - - for(int i = 0; i < ENTRIES; i++) { - final EvilKey o = new EvilKey(UUID.randomUUID().toString()); - map.put(o, new KeyHolder(o)); - } - - assertThings(map); - } - - @Test - public void testUsesObjectIdentityForElementsOnly() { - - final String key = "ourKey"; - - ConcurrentHashMap map = new ConcurrentHashMap(); - - String value = new String("key"); - String valueAgain = new String("key"); - map.put(key, value); - assertThat(map.replace(key, valueAgain, valueAgain), is(true)); - assertThat(map.replace(key, value, valueAgain), is(true)); - - Element elementValue = new Element(key, value); - Element elementValueAgain = new Element(key, value); - map.put(key, elementValue); - assertThat(map.replace(key, elementValueAgain, elementValue), is(false)); - assertThat(map.replace(key, elementValue, elementValueAgain), is(true)); - assertThat(map.replace(key, elementValue, elementValueAgain), is(false)); - assertThat(map.replace(key, elementValueAgain, elementValue), is(true)); - } - - @Test - public void testActuallyWorks() throws InterruptedException { - final long top = 100000000; - final String key = "counter"; - final ConcurrentHashMap map = new ConcurrentHashMap(); - map.put(key, 0L); - - final Runnable runnable = new Runnable() { - @Override - public void run() { - for(Long val = map.get(key); val < top && map.replace(key, val, val + 1); val = map.get(key)); - } - }; - - Thread[] threads = new Thread[Runtime.getRuntime().availableProcessors() * 2]; - for (int i = 0, threadsLength = threads.length; i < threadsLength; ) { - threads[i] = new Thread(runnable); - threads[i].setName("Mutation thread #" + ++i); - threads[i - 1].start(); - } - - for (Thread thread : threads) { - thread.join(); - } - - assertThat(map.get(key), is(top)); - - } - - private void assertThings(final ConcurrentHashMap map) { - assertThat(map.size(), is(ENTRIES)); - - for(int i = 0; i < 100; i ++) { - final HashSet randomValues = new HashSet(map.getRandomValues(ENTRIES)); - assertThat(randomValues.size(), is(ENTRIES)); - for (Object randomValue : randomValues) { - assertThat(randomValue, instanceOf(KeyHolder.class)); - final Object key = ((KeyHolder)randomValue).key; - assertThat("Missing " + key, map.containsKey(key), is(true)); - } - } - } -} - -class KeyHolder { - final K key; - - KeyHolder(final K key) { - this.key = key; - } -} - -class EvilKey { - final String value; - - EvilKey(final String value) { - this.value = value; - } - - @Override - public int hashCode() { - return this.value.hashCode() & 1; - } - - @Override - public boolean equals(final Object obj) { - return obj != null && obj.getClass() == this.getClass() && ((EvilKey)obj).value.equals(value); - } - - @Override - public String toString() { - return this.getClass().getSimpleName() + " { " + value + " }"; - } -} - -class EvilComparableKey extends EvilKey implements Comparable { - - EvilComparableKey(final String value) { - super(value); - } - - @Override - public int compareTo(final EvilComparableKey o) { - return value.compareTo(o != null ? o.value : null); - } -} Index: rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/ehcache/tests/ExplicitlyUnclusteredStandaloneCacheTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/ehcache/tests/ExplicitlyUnclusteredStandaloneCacheTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/ehcache/tests/ExplicitlyUnclusteredStandaloneCacheTest.java (revision 0) @@ -1,18 +0,0 @@ -/* - * All content copyright (c) 2003-2008 Terracotta, Inc., except as may otherwise be noted in a separate copyright - * notice. All rights reserved. - */ -package org.terracotta.ehcache.tests; - -import com.tc.test.config.model.TestConfig; - -/** - * @author cdennis - */ -public class ExplicitlyUnclusteredStandaloneCacheTest extends AbstractCacheTestBase { - - public ExplicitlyUnclusteredStandaloneCacheTest(TestConfig testConfig) { - super("explicitly-unclustered-cache-test.xml", testConfig, UnclusteredClient.class, UnclusteredClient.class); - } - -} Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/resources/ehcache-nodisk.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/resources/ehcache-nodisk.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/resources/ehcache-nodisk.xml (revision 0) @@ -1,29 +0,0 @@ - - - - - - - - - - - Index: rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v1/.settings/org.eclipse.core.resources.prefs =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v1/.settings/org.eclipse.core.resources.prefs (revision 11355) +++ rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v1/.settings/org.eclipse.core.resources.prefs (revision 0) @@ -1,6 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/main/java=UTF-8 -encoding//src/main/resources=UTF-8 -encoding//src/test/java=UTF-8 -encoding//src/test/resources=UTF-8 -encoding/=UTF-8 Index: rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v2/.settings/org.eclipse.core.resources.prefs =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v2/.settings/org.eclipse.core.resources.prefs (revision 11355) +++ rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v2/.settings/org.eclipse.core.resources.prefs (revision 0) @@ -1,6 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/main/java=UTF-8 -encoding//src/main/resources=UTF-8 -encoding//src/test/java=UTF-8 -encoding//src/test/resources=UTF-8 -encoding/=UTF-8 Index: rctags/ehcache-2.10.8.2.20/ehcache-search-parser/src/test/java/net/sf/ehcache/search/parser/MCriteriaTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-search-parser/src/test/java/net/sf/ehcache/search/parser/MCriteriaTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-search-parser/src/test/java/net/sf/ehcache/search/parser/MCriteriaTest.java (revision 0) @@ -1,161 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package net.sf.ehcache.search.parser; - -import net.sf.ehcache.search.expression.And; -import net.sf.ehcache.search.expression.EqualTo; -import net.sf.ehcache.search.expression.GreaterThan; -import net.sf.ehcache.search.expression.GreaterThanOrEqual; -import net.sf.ehcache.search.expression.ILike; -import net.sf.ehcache.search.expression.LessThan; -import net.sf.ehcache.search.expression.LessThanOrEqual; -import net.sf.ehcache.search.expression.Not; -import net.sf.ehcache.search.expression.NotEqualTo; -import net.sf.ehcache.search.expression.Or; -import net.sf.ehcache.search.parser.MCriteria.Between; -import net.sf.ehcache.search.parser.MCriteria.Simple; -import net.sf.ehcache.search.parser.MValue.MInt; - -import org.junit.Assert; -import org.junit.Test; - -public class MCriteriaTest { - - private final ClassLoader loader = getClass().getClassLoader(); - - @Test - public void testSimpleModelCriteria() throws CustomParseException { - { - MInt obj = new MValue.MInt(null, "0"); - Simple mcrit = new MCriteria.Simple(new MAttribute("foo"), MCriteria.SimpleOp.EQ, obj); - EqualTo crit = (EqualTo)mcrit.asEhcacheObject(loader); - Assert.assertEquals(crit.getAttributeName(), "foo"); - Assert.assertEquals(crit.getValue(), obj.asEhcacheObject(loader)); - } - { - MInt obj = new MValue.MInt(null, "0"); - Simple mcrit = new MCriteria.Simple(new MAttribute("foo"), MCriteria.SimpleOp.NE, obj); - NotEqualTo crit = (NotEqualTo)mcrit.asEhcacheObject(loader); - Assert.assertEquals(crit.getAttributeName(), "foo"); - Assert.assertEquals(crit.getValue(), obj.asEhcacheObject(loader)); - } - { - MInt obj = new MValue.MInt(null, "0"); - Simple mcrit = new MCriteria.Simple(new MAttribute("foo"), MCriteria.SimpleOp.GE, obj); - GreaterThanOrEqual crit = (GreaterThanOrEqual)mcrit.asEhcacheObject(loader); - Assert.assertEquals(crit.getAttributeName(), "foo"); - Assert.assertEquals(crit.getComparableValue(), obj.asEhcacheObject(loader)); - } - { - MInt obj = new MValue.MInt(null, "0"); - Simple mcrit = new MCriteria.Simple(new MAttribute("foo"), MCriteria.SimpleOp.GT, obj); - GreaterThan crit = (GreaterThan)mcrit.asEhcacheObject(loader); - Assert.assertEquals(crit.getAttributeName(), "foo"); - Assert.assertEquals(crit.getComparableValue(), obj.asEhcacheObject(loader)); - } - { - MInt obj = new MValue.MInt(null, "0"); - Simple mcrit = new MCriteria.Simple(new MAttribute("foo"), MCriteria.SimpleOp.LT, obj); - LessThan crit = (LessThan)mcrit.asEhcacheObject(loader); - Assert.assertEquals(crit.getAttributeName(), "foo"); - Assert.assertEquals(crit.getComparableValue(), obj.asEhcacheObject(loader)); - } - { - MInt obj = new MValue.MInt(null, "0"); - Simple mcrit = new MCriteria.Simple(new MAttribute("foo"), MCriteria.SimpleOp.LE, obj); - LessThanOrEqual crit = (LessThanOrEqual)mcrit.asEhcacheObject(loader); - Assert.assertEquals(crit.getAttributeName(), "foo"); - Assert.assertEquals(crit.getComparableValue(), obj.asEhcacheObject(loader)); - } - } - - void checkBetween(String name, ModelElement obj1, boolean min, ModelElement obj2, boolean max) { - Between between = new MCriteria.Between(new MAttribute(name), obj1, min, obj2, max); - net.sf.ehcache.search.expression.Between crit = (net.sf.ehcache.search.expression.Between)between.asEhcacheObject(loader); - Assert.assertEquals(crit.getAttributeName(), name); - Assert.assertEquals(crit.getMin(), obj1.asEhcacheObject(loader)); - Assert.assertEquals(crit.getMax(), obj2.asEhcacheObject(loader)); - Assert.assertEquals(crit.isMinInclusive(), min); - Assert.assertEquals(crit.isMaxInclusive(), max); - } - - @Test - public void testBetween() throws CustomParseException { - MInt obj1 = new MValue.MInt(null, "0"); - MInt obj2 = new MValue.MInt(null, "110"); - checkBetween("foo", obj1, false, obj2, false); - checkBetween("foo", obj1, true, obj2, false); - checkBetween("foo", obj1, false, obj2, true); - checkBetween("foo", obj1, true, obj2, true); - } - - @Test - public void testIlike() { - MCriteria.ILike ilike = new MCriteria.ILike(MAttribute.KEY, "foo.*foo"); - ILike crit = (ILike)ilike.asEhcacheObject(loader); - Assert.assertEquals(crit.getRegex(), "foo.*foo"); - Assert.assertEquals(crit.getAttributeName(), MAttribute.KEY.getName()); - } - - @Test - public void testLike() { - MCriteria.Like like = new MCriteria.Like(MAttribute.KEY, "foo.%foo"); - ILike crit = (ILike)like.asEhcacheObject(loader); - Assert.assertEquals(like.getLikeRegex(), "foo.%foo"); - Assert.assertEquals(like.getILikeRegex(), "foo.*foo"); - Assert.assertEquals(crit.getRegex(), "foo.*foo"); - Assert.assertEquals(crit.getAttributeName(), MAttribute.KEY.getName()); - } - - @Test - public void testNot() throws CustomParseException { - MCriteria.Simple simple = new MCriteria.Simple(MAttribute.KEY, MCriteria.SimpleOp.EQ, new MValue.MInt(null, "1")); - MCriteria.Not not = new MCriteria.Not(simple); - Not crit = (Not)not.asEhcacheObject(loader); - @SuppressWarnings("unused") - EqualTo inner = (EqualTo)crit.getCriteria(); - Assert.assertTrue(true); // the casts are sufficient for the test. - } - - @Test - public void testAnd() throws CustomParseException { - Simple mcrit1 = new MCriteria.Simple(new MAttribute("foo"), MCriteria.SimpleOp.GT, new MValue.MInt(null, "0")); - Simple mcrit2 = new MCriteria.Simple(new MAttribute("foo"), MCriteria.SimpleOp.LT, new MValue.MInt(null, "10")); - Simple mcrit3 = new MCriteria.Simple(new MAttribute("foo"), MCriteria.SimpleOp.NE, new MValue.MInt(null, "5")); - - MCriteria.And and = new MCriteria.And(mcrit1, mcrit2, mcrit3); - And crit = (And)and.asEhcacheObject(loader); - Assert.assertTrue(crit.getCriterion()[0] instanceof GreaterThan); - Assert.assertTrue(crit.getCriterion()[1] instanceof And); - And crit2 = (And)crit.getCriterion()[1]; - Assert.assertTrue(crit2.getCriterion()[0] instanceof LessThan); - Assert.assertTrue(crit2.getCriterion()[1] instanceof NotEqualTo); - - } - - @Test - public void testOr() throws CustomParseException { - Simple mcrit1 = new MCriteria.Simple(new MAttribute("foo"), MCriteria.SimpleOp.GT, new MValue.MInt(null, "100")); - Simple mcrit2 = new MCriteria.Simple(new MAttribute("foo"), MCriteria.SimpleOp.LT, new MValue.MInt(null, "10")); - MCriteria.Or or = new MCriteria.Or(mcrit1, mcrit2); - - Or crit = (Or)or.asEhcacheObject(loader); - Assert.assertTrue(crit.getCriterion()[0] instanceof GreaterThan); - Assert.assertTrue(crit.getCriterion()[1] instanceof LessThan); - } - -} Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/config/generator/StandaloneEntryBasedConfigAttributesValueFactory.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/config/generator/StandaloneEntryBasedConfigAttributesValueFactory.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/config/generator/StandaloneEntryBasedConfigAttributesValueFactory.java (revision 0) @@ -1,98 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package net.sf.ehcache.config.generator; - -import net.sf.ehcache.config.generator.model.NodeAttribute; -import net.sf.ehcache.config.generator.model.NodeElement; -import net.sf.ehcache.config.generator.xsom.XSDAttributeValueFactory; -import net.sf.ehcache.config.generator.xsom.XSDAttributeValueType; - -public class StandaloneEntryBasedConfigAttributesValueFactory implements XSDAttributeValueFactory { - - public String createValueForAttribute(NodeElement element, NodeAttribute attribute, XSDAttributeValueType xsdAttributeValueType) { - if ("terracotta".equals(element.getName())) { - if("coherent".equals(attribute.getName())) { - // returning null will skip this attribute - // can skip "coherent" attribute as its deprecated by consistency attribute - return null; - } - if("clustered".equals(attribute.getName())) { - return "false"; - } - } - if ("pinning".equals(element.getName())) { - if ("storage".equals(attribute.getName())) { - return "inMemory"; - } - } - if ("sizeOfPolicy".equals(element.getName())) { - if ("maxDepth".equals(attribute.getName())) { - return "100"; - } else if ("maxDepthExceededBehavior".equals(attribute.getName())) { - return "continue"; - } - } - // always generate with eternal=false - if ("defaultCache".equals(element.getName()) || "cache".equals(element.getName())) { - if("eternal".equals(attribute.getName())) { - return "false"; - } - if("transactionalMode".equals(attribute.getName())) { - return "off"; - } - // these are deprecated - if ("maxElementsInMemory".equals(attribute.getName()) || - "maxMemoryOffHeap".equals(attribute.getName()) || - "diskPersistent".equals(attribute.getName()) || - "overflowToDisk".equals(attribute.getName())) { - return null; - } - if ("maxElementsOnDisk".equals(attribute.getName()) || - "maxBytesLocalHeap".equals(attribute.getName()) || - "maxBytesLocalOffHeap".equals(attribute.getName()) || - "maxBytesLocalDisk".equals(attribute.getName())) { - return null; - } - if("maxEntriesLocalHeap".equals(attribute.getName()) || - "maxEntriesLocalOffHeap".equals(attribute.getName()) || - "maxEntriesLocalDisk".equals(attribute.getName())) { - return "10000"; - } - if("maxEntriesInCache".equals(attribute.getName())) { - return null; - } - } - if ("ehcache".equals(element.getName())) { - if("maxBytesLocalHeap".equals(attribute.getName()) || - "maxBytesLocalOffHeap".equals(attribute.getName()) || - "maxBytesLocalDisk".equals(attribute.getName())) { - return null; - } - } - if ("searchAttribute".equals(element.getName())) { - if ("expression".equals(attribute.getName())) { - return "value.toString()"; - } else if ("name".equals(attribute.getName())) { - return "name"; - } else { - return null; - } - } - - return xsdAttributeValueType.getRandomAllowedValue(); - } -} Index: rctags/ehcache-2.10.8.2.20/distribution/events/src/assemble/bin/stop-sample-server.bat =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/distribution/events/src/assemble/bin/stop-sample-server.bat (revision 11355) +++ rctags/ehcache-2.10.8.2.20/distribution/events/src/assemble/bin/stop-sample-server.bat (revision 0) @@ -1,11 +0,0 @@ -@echo off - -rem All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. - -cd "%~d0%~p0" -for /f "tokens=*" %%a in ('call relative-paths.bat tc_install_dir') do set tc_install_dir=%%a -pushd -cd %tc_install_dir% -set tc_install_dir=%CD% -popd -call "%tc_install_dir%\bin\stop-tc-server.bat" Index: rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/modules/ehcache/l1bm/L1BMOnHeapSanityTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/modules/ehcache/l1bm/L1BMOnHeapSanityTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/modules/ehcache/l1bm/L1BMOnHeapSanityTest.java (revision 0) @@ -1,18 +0,0 @@ -/* - * All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. - */ -package org.terracotta.modules.ehcache.l1bm; - -import org.terracotta.ehcache.tests.AbstractCacheTestBase; - -import com.tc.test.config.model.TestConfig; - -public class L1BMOnHeapSanityTest extends AbstractCacheTestBase { - public static final int NODE_COUNT = 2; - - public L1BMOnHeapSanityTest(TestConfig testConfig) { - super(testConfig, L1BMOnHeapBasicSanityTestApp.class, L1BMOnHeapBasicSanityTestApp.class); - testConfig.getL2Config().setMaxHeap(1024); - } - -} Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/resources/distribution/ehcache-distributed-big-payload-3.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/resources/distribution/ehcache-distributed-big-payload-3.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/resources/distribution/ehcache-distributed-big-payload-3.xml (revision 0) @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Index: rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/ehcache/tests/CacheEventualConsistencyTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/ehcache/tests/CacheEventualConsistencyTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/ehcache/tests/CacheEventualConsistencyTest.java (revision 0) @@ -1,300 +0,0 @@ -/* - * All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. - */ -package org.terracotta.ehcache.tests; - -import net.sf.ehcache.Cache; -import net.sf.ehcache.Element; - -import org.junit.Assert; -import org.terracotta.toolkit.Toolkit; -import org.terracotta.toolkit.ToolkitFactory; -import org.terracotta.toolkit.ToolkitInstantiationException; -import org.terracotta.toolkit.concurrent.ToolkitBarrier; -import org.terracotta.toolkit.concurrent.atomic.ToolkitAtomicLong; - -import com.tc.test.config.model.TestConfig; - -import java.util.Calendar; -import java.util.Properties; -import java.util.concurrent.BrokenBarrierException; - -public class CacheEventualConsistencyTest extends AbstractCacheTestBase { - - - public CacheEventualConsistencyTest(TestConfig testConfig) { - super("eventual-cache-explicit-locking-test.xml", testConfig, TestClient.class, TestClient.class); - testConfig.addTcProperty("seda.receive_invalidate_objects_stage.sleepMs", "60000"); - - } - - public static class TestClient extends ClientBase { - - private static final String QWERTY = "qwerty"; - private static final String INTIAL_VALUE = "init_"; - private static final String PREFIX_COUNTER = "_updated"; - private static final String BARRIER_NAME = "eventual-cache-explicit-locking-barrier"; - private static final int CLIENT_COUNT = 2; - private static final int UPDATE_LIMIT = 6; // Test Case Runs - private static final int NUM_ELEMENTS = 2; // Number of keys updated - - public TestClient(String[] args) { - super("eventualConsistencyCache", args); - } - - @Override - protected Toolkit createToolkit() { - try { - Properties properties = new Properties(); - properties.put("rejoin", true); - properties.put("nonstop-terracotta", false); - return ToolkitFactory.createToolkit(getTerracottaTypeSubType() + getTerracottaUrl(), properties); - } catch (ToolkitInstantiationException e) { - throw new RuntimeException(e); - } - } - - @Override - protected void runTest(Cache cache, Toolkit toolkit) throws Throwable { - try { - Toolkit internaltoolkit = createToolkit(); - ToolkitBarrier barrier = internaltoolkit.getBarrier(BARRIER_NAME, CLIENT_COUNT); - int index = barrier.await(); - if (index == 0) { - System.err.println("Client: " + index + " doing eventual puts..."); - doEventualPuts(cache, INTIAL_VALUE); - } - barrier.await(); - if (index > 0) { - System.err.println("Client: " + index + " doing eventual gets"); - doEventualGets(cache); - } - barrier.await(); - passForEventualCache(cache, barrier, index, internaltoolkit); - } finally { - System.err.println("Text Completed"); - } - } - - private void passForEventualCache(Cache cache, ToolkitBarrier barrier, int index, Toolkit internaltoolkit) - throws InterruptedException, - BrokenBarrierException { - long runCounter = 0; - long runsLimit = UPDATE_LIMIT; - runCounter = runsForEventualPutsNGets(cache, barrier, index, internaltoolkit, runCounter, runsLimit); - runsLimit = UPDATE_LIMIT * 2; - runCounter = runsForStrongPutNEventualGets(cache, barrier, index, internaltoolkit, runCounter, runsLimit); - runsLimit = UPDATE_LIMIT * 3; - // runCounter = runsForEventualPutsNStrongGets(cache, barrier, index, internaltoolkit, runCounter, runsLimit); - // runsLimit = UPDATE_LIMIT * 4; - runCounter = runsForStrongPutsNStrongGets(cache, barrier, index, runCounter, runsLimit); - } - - private long runsForStrongPutsNStrongGets(Cache cache, ToolkitBarrier barrier, int index, long runCounter, - long runsLimit) throws InterruptedException, BrokenBarrierException { - while (runCounter < runsLimit) { - testExplicitStrongPutsNGets(cache, barrier, index, "#" + (++runCounter) + PREFIX_COUNTER); - } - return runCounter; - } - - private long runsForEventualPutsNStrongGets(Cache cache, ToolkitBarrier barrier, int index, - Toolkit internaltoolkit, long runCounter, long runsLimit) - throws InterruptedException, - BrokenBarrierException { - testStrongGets(cache, barrier, index, "#" + (++runCounter) + PREFIX_COUNTER, internaltoolkit); - if (index > 0) { - assertOnEventualFailures(internaltoolkit); - } - barrier.await(); - return runCounter; - } - - private long runsForStrongPutNEventualGets(Cache cache, ToolkitBarrier barrier, int index, Toolkit internaltoolkit, - long runCounter, long runsLimit) throws InterruptedException, - BrokenBarrierException { - testStrongPuts(cache, barrier, index, "#" + (++runCounter) + PREFIX_COUNTER, internaltoolkit); - if (index > 0) { - assertOnEventualFailures(internaltoolkit); - } - barrier.await(); - return runCounter; - } - - private long runsForEventualPutsNGets(Cache cache, ToolkitBarrier barrier, int index, Toolkit internaltoolkit, - long runCounter, long runsLimit) throws InterruptedException, - BrokenBarrierException { - testEventualPutsNGets(cache, barrier, index, "#" + (++runCounter) + PREFIX_COUNTER, internaltoolkit); - if (index > 0) { - assertOnEventualFailures(internaltoolkit); - } - barrier.await(); - return runCounter; - } - - - private void testExplicitStrongPutsNGets(Cache cache, ToolkitBarrier barrier, int index, final String prefix) - throws InterruptedException, BrokenBarrierException { - if (index == 0) { - System.err.println("Client: " + index + " doing eventual puts..."); - doExplicitStrongPuts(cache, prefix); - } - barrier.await(); - if (index > 0) { - doExplicitStrongGets(cache, prefix); - } - barrier.await(); - } - - private void testStrongPuts(Cache cache, ToolkitBarrier barrier, int index, final String prefix, - Toolkit toolkitInternal) - throws InterruptedException, BrokenBarrierException { - if (index == 0) { - System.err.println("Client: " + index + " doing eventual puts..."); - doExplicitStrongPuts(cache, prefix); - } - barrier.await(); - if (index > 0) { - failEventualGets(cache, prefix, toolkitInternal); - } - barrier.await(); - } - - private void testStrongGets(Cache cache, ToolkitBarrier barrier, int index, final String prefix, - Toolkit internaltoolkit) - throws InterruptedException, BrokenBarrierException { - if (index == 0) { - logTimeStart(); - System.err.println("Client: " + index + " doing eventual puts..."); - doEventualPuts(cache, prefix); - logTimeEnd(); - } - barrier.await(); - if (index > 0) { - logTimeStart(); - failExplicitStrongGets(cache, prefix, internaltoolkit); - logTimeEnd(); - } - barrier.await(); - } - - private void logTimeStart() { - System.out.println("XS:-" + Calendar.getInstance().getTime()); - } - - private void logTimeEnd() { - System.out.println("XE:-" + Calendar.getInstance().getTime()); - } - - private void testEventualPutsNGets(Cache cache, ToolkitBarrier barrier, int index, final String prefix, - Toolkit internaltoolkit) - throws InterruptedException, BrokenBarrierException { - if (index == 0) { - System.err.println("Client: " + index + " doing eventual puts..." + prefix); - doEventualPuts(cache, prefix); - } - barrier.await(); - if (index > 0) { - System.err.println("Client: " + index + " doing eventual gets..." + prefix); - failEventualGets(cache, prefix, internaltoolkit); - } - barrier.await(); - } - - private void doEventualPuts(Cache cache, final String prefix) { - for (int i = 0; i < NUM_ELEMENTS; i++) { - cache.put(getElement(i, prefix)); - } - } - - private void doEventualGets(Cache cache) { - for (int i = 0; i < NUM_ELEMENTS; i++) { - cache.get(getKey(i)); - } - } - - private void doExplicitStrongPuts(Cache cache, final String prefix) { - for (int i = 0; i < NUM_ELEMENTS; i++) { - cache.acquireWriteLockOnKey(getKey(i)); - try { - cache.put(getElement(i, prefix)); - } finally { - cache.releaseWriteLockOnKey(getKey(i)); - } - } - } - - private void doExplicitStrongGets(Cache cache, final String prefix) { - boolean result = true; - for (int i = NUM_ELEMENTS - 1; i >= 0; i--) { - cache.acquireReadLockOnKey(getKey(i)); - try { - Element element = cache.get(getKey(i)); - boolean eq = getValue(i, prefix).equals(element.getObjectValue()); - result = result ? eq : result; - } finally { - cache.releaseReadLockOnKey(getKey(i)); - } - } - Assert.assertTrue(result); - } - - // ** Always called by Client with index > 0; - private void failExplicitStrongGets(Cache cache, final String prefix, Toolkit internaltoolkit) { - boolean result = true; - for (int i = NUM_ELEMENTS - 1; i >= 0; i--) { - cache.acquireReadLockOnKey(getKey(i)); - try { - Element element = cache.get(getKey(i)); - boolean eq = getValue(i, prefix).equals(element.getObjectValue()); - if (!eq) { - System.out.println("HHHH Failed"); - } - result = result ? eq : result; - } finally { - cache.releaseReadLockOnKey(getKey(i)); - } - } - ToolkitAtomicLong atomicLong = internaltoolkit.getAtomicLong(QWERTY); - if (!result) { - atomicLong.incrementAndGet(); - } - } - - // ** Always called by Client with index > 0; - private void failEventualGets(Cache cache, final String prefix, Toolkit internaltoolkit) { - boolean result = true; - for (int i = NUM_ELEMENTS - 1; i >= 0; i--) { - Element element = cache.get(getKey(i)); - boolean eq = getValue(i, prefix).equals(element.getObjectValue()); - result = result ? eq : result; - } - ToolkitAtomicLong atomicLong = internaltoolkit.getAtomicLong(QWERTY); - if (!result) { - atomicLong.incrementAndGet(); - } - } - - private void assertOnEventualFailures(Toolkit internaltoolkit) { - ToolkitAtomicLong atomicLong = internaltoolkit.getAtomicLong(QWERTY); - long evenutalRuns = atomicLong.longValue(); - Assert.assertTrue(evenutalRuns > 0); - atomicLong.set(0); - } - - private Element getElement(int i, String valPrefix) { - return new Element(getKey(i), getValue(i, valPrefix)); - } - - private String getValue(int i, String valPrefix) { - return valPrefix + "val_" + i; - } - - private String getKey(int i) { - return "key_" + i; - } - - } - - -} Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/CacheQuery.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/CacheQuery.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/CacheQuery.java (revision 0) @@ -1,440 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package net.sf.ehcache; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -import net.sf.ehcache.search.Attribute; -import net.sf.ehcache.search.Direction; -import net.sf.ehcache.search.ExecutionHints; -import net.sf.ehcache.search.Query; -import net.sf.ehcache.search.Results; -import net.sf.ehcache.search.SearchException; -import net.sf.ehcache.search.aggregator.Aggregator; -import net.sf.ehcache.search.aggregator.AggregatorException; -import net.sf.ehcache.search.aggregator.AggregatorInstance; -import net.sf.ehcache.search.expression.AlwaysMatch; -import net.sf.ehcache.search.expression.Criteria; -import net.sf.ehcache.store.StoreQuery; - -/** - * Query builder implementation. Instances are bound to a specific cache - * - * @author teck - */ -class CacheQuery implements Query, StoreQuery { - - private volatile boolean frozen; - private volatile boolean includeKeys; - private volatile boolean includeValues; - private volatile int maxResults = -1; - private String[] targets; - - private final List orderings = Collections.synchronizedList(new ArrayList()); - private final Set> includedAttributes = Collections.synchronizedSet(new HashSet>()); - private final List criteria = Collections.synchronizedList(new ArrayList()); - private final List aggregators = Collections.synchronizedList(new ArrayList()); - private final Set> groupByAttributes = Collections.synchronizedSet(new HashSet>()); - - private final Cache cache; - private volatile ExecutionHints hints; - - /** - * Create a new builder instance - * - * @param cache - */ - public CacheQuery(Cache cache) { - this.cache = cache; - } - - /** - * {@inheritDoc} - */ - public Query includeKeys() { - checkFrozen(); - this.includeKeys = true; - return this; - } - - /** - * {@inheritDoc} - */ - public Query includeValues() { - checkFrozen(); - this.includeValues = true; - return this; - } - - /** - * {@inheritDoc} - */ - public Query includeAttribute(Attribute... attributes) { - checkFrozen(); - - if (attributes == null) { - throw new NullPointerException(); - } - - for (Attribute attribute : attributes) { - if (attribute == null) { - throw new NullPointerException("null attribute"); - } - - this.includedAttributes.add(attribute); - } - return this; - } - - /** - * {@inheritDoc} - */ - public Query includeAggregator(Aggregator... aggregators) throws SearchException, AggregatorException { - checkFrozen(); - - if (aggregators == null) { - throw new NullPointerException(); - } - - for (Aggregator aggregator : aggregators) { - if (aggregator == null) { - throw new NullPointerException("null aggregator"); - } - - this.aggregators.add(aggregator); - } - - return this; - } - - /** - * {@inheritDoc} - */ - public Query addOrderBy(Attribute attribute, Direction direction) { - checkFrozen(); - this.orderings.add(new OrderingImpl(attribute, direction)); - return this; - } - - /** - * {@inheritDoc} - */ - public Query addGroupBy(Attribute... attributes) { - checkFrozen(); - - if (attributes == null) { - throw new NullPointerException(); - } - - for (Attribute attribute : attributes) { - if (attribute == null) { - throw new NullPointerException("null attribute"); - } - groupByAttributes.add(attribute); - } - return this; - } - - /** - * {@inheritDoc} - */ - public Query maxResults(int maxResults) { - checkFrozen(); - this.maxResults = maxResults; - return this; - } - - /** - * {@inheritDoc} - */ - public Query addCriteria(Criteria criteria) { - checkFrozen(); - - if (criteria == null) { - throw new NullPointerException("null criteria"); - } - - this.criteria.add(criteria); - return this; - } - - /** - * {@inheritDoc} - */ - public Results execute() throws SearchException { - return cache.executeQuery(snapshot()); - } - - /** - * {@inheritDoc} - */ - public Results execute(ExecutionHints params) throws SearchException { - this.hints = params; - return cache.executeQuery(snapshot()); - } - - - /** - * {@inheritDoc} - */ - public Query end() { - frozen = true; - return this; - } - - /** - * {@inheritDoc} - */ - public List getOrdering() { - assertFrozen(); - return Collections.unmodifiableList(orderings); - } - - /** - * {@inheritDoc} - */ - public Criteria getCriteria() { - assertFrozen(); - return getEffectiveCriteriaCopy(); - } - - /** - * {@inheritDoc} - */ - public boolean requestsKeys() { - assertFrozen(); - return includeKeys; - } - - /** - * {@inheritDoc} - */ - public boolean requestsValues() { - assertFrozen(); - return includeValues; - } - - /** - * {@inheritDoc} - */ - public Cache getCache() { - assertFrozen(); - return cache; - } - - /** - * {@inheritDoc} - */ - public Set> requestedAttributes() { - assertFrozen(); - return Collections.unmodifiableSet(this.includedAttributes); - } - - /** - * {@inheritDoc} - */ - public Set> groupByAttributes() { - assertFrozen(); - return Collections.unmodifiableSet(this.groupByAttributes); - } - - /** - * {@inheritDoc} - */ - public int maxResults() { - assertFrozen(); - return maxResults; - } - - - /** - * {@inheritDoc} - */ - @Override - public ExecutionHints getExecutionHints() { - assertFrozen(); - return hints; - } - - /** - * {@inheritDoc} - */ - public List getAggregators() { - return Collections.unmodifiableList(this.aggregators); - } - - /** - * {@inheritDoc} - */ - public List> getAggregatorInstances() { - assertFrozen(); - return Collections.unmodifiableList(createAggregatorInstances(aggregators)); - } - - private static List> createAggregatorInstances(List aggregators) { - List> rv = new ArrayList>(aggregators.size()); - for (Aggregator aggregator : aggregators) { - rv.add(aggregator.createInstance()); - } - - return rv; - } - - private Criteria getEffectiveCriteriaCopy() { - Criteria result = new AlwaysMatch(); - for (Criteria c : criteria) { - result = result.and(c); - } - return result; - } - - private void assertFrozen() { - if (!frozen) { - throw new AssertionError("not frozen"); - } - } - - private StoreQuery snapshot() { - if (frozen) { - return this; - } - - return new StoreQueryImpl(); - } - - private void checkFrozen() { - if (frozen) { - throw new SearchException("Query is frozen and cannot be mutated"); - } - } - - /** - * {@inheritDoc} - */ - public String[] getTargets() { - return this.targets; - } - - /** - * {@inheritDoc} - */ - @Override - public void targets(final String[] targets) { - this.targets = targets; - } - - /** - * StoreQuery implementation (essentially a snapshot of this (non-frozen) query builder - */ - private class StoreQueryImpl implements StoreQuery { - private final Criteria copiedCriteria = CacheQuery.this.getEffectiveCriteriaCopy(); - private final boolean copiedIncludeKeys = includeKeys; - private final boolean copiedIncludeValues = includeValues; - private final Set> copiedAttributes = Collections.unmodifiableSet(new HashSet>(includedAttributes)); - private final int copiedMaxResults = maxResults; - private final List copiedOrdering = Collections.unmodifiableList(new ArrayList(orderings)); - private final List copiedAggregators = Collections.unmodifiableList(aggregators); - private final List> copiedAggregatorInstances = Collections.unmodifiableList(createAggregatorInstances(aggregators)); - private final Set> copiedGroupByAttributes = Collections.unmodifiableSet(new HashSet>(groupByAttributes)); - private final ExecutionHints execHints = hints; - - public Criteria getCriteria() { - return copiedCriteria; - } - - public boolean requestsKeys() { - return copiedIncludeKeys; - } - - public boolean requestsValues() { - return copiedIncludeValues; - } - - public Cache getCache() { - return cache; - } - - public Set> requestedAttributes() { - return copiedAttributes; - } - - public Set> groupByAttributes() { - return copiedGroupByAttributes; - } - - public int maxResults() { - return copiedMaxResults; - } - - public List getOrdering() { - return copiedOrdering; - } - - public List getAggregators() { - return copiedAggregators; - } - - public List> getAggregatorInstances() { - return copiedAggregatorInstances; - } - - public String[] getTargets() { - return targets; - } - - /** - * {@inheritDoc} - */ - public void targets(String[] targets) { - CacheQuery.this.targets = targets; - } - - public ExecutionHints getExecutionHints() { - return execHints; - } - } - - /** - * An attribute/direction pair - */ - private static class OrderingImpl implements Ordering { - - private final Attribute attribute; - private final Direction direction; - - public OrderingImpl(Attribute attribute, Direction direction) { - if ((attribute == null) || (direction == null)) { - throw new NullPointerException(); - } - - this.attribute = attribute; - this.direction = direction; - } - - public Attribute getAttribute() { - return attribute; - } - - public Direction getDirection() { - return direction; - } - } -} Index: rctags/ehcache-2.10.8.2.20/distribution/colorcache/src/assemble/distribution.xml =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/distribution/colorcache/src/assemble/distribution.xml (revision 11355) +++ rctags/ehcache-2.10.8.2.20/distribution/colorcache/src/assemble/distribution.xml (revision 0) @@ -1,45 +0,0 @@ - - distribution - - tar.gz - - - - - - - - - - - - ${basedir}/src - /src - - - ${project.build.directory}/${project.name} - - **/ehcache*.jar - **/terracotta-toolkit*-runtime*.jar - - /webapps/${project.name} - - - ${basedir}/src/assemble - - README.* - - / - - - ${basedir}/src/assemble/jetty6.1 - /jetty6.1 - - - ${basedir}/src/assemble/bin - /bin - 0755 - - - - Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/pool/sizeof/FlyweightType.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/pool/sizeof/FlyweightType.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/pool/sizeof/FlyweightType.java (revision 0) @@ -1,269 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package net.sf.ehcache.pool.sizeof; - -import net.sf.ehcache.util.FindBugsSuppressWarnings; - -import java.lang.reflect.Field; -import java.lang.reflect.Modifier; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.math.MathContext; -import java.net.Proxy; -import java.nio.charset.CodingErrorAction; -import java.util.Collections; -import java.util.HashMap; -import java.util.IdentityHashMap; -import java.util.Locale; -import java.util.Map; -import java.util.Set; -import java.util.logging.Logger; - -import javax.xml.datatype.DatatypeConstants; -import javax.xml.namespace.QName; - -/** - * Enum with all the flyweight types that we check for sizeOf measurements - * - * @author Alex Snaps - */ -@FindBugsSuppressWarnings("RC_REF_COMPARISON") -enum FlyweightType { - - /** - * java.lang.Enum - */ - ENUM(Enum.class) { - @Override - boolean isShared(final Object obj) { return true; } - }, - /** - * java.lang.Class - */ - CLASS(Class.class) { - @Override - boolean isShared(final Object obj) { return true; } - }, - // XXX There is no nullipotent way of determining the interned status of a string - // There are numerous String constants within the JDK (see list at http://docs.oracle.com/javase/7/docs/api/constant-values.html), - // but enumerating all of them would lead to lots of == tests. - /** - * java.lang.String - */ - //STRING(String.class) { - // @Override - // boolean isShared(final Object obj) { return obj == ((String)obj).intern(); } - //}, - /** - * java.lang.Boolean - */ - BOOLEAN(Boolean.class) { - @Override - boolean isShared(final Object obj) { return obj == Boolean.TRUE || obj == Boolean.FALSE; } - }, - /** - * java.lang.Integer - */ - INTEGER(Integer.class) { - @Override - boolean isShared(final Object obj) { - int value = ((Integer)obj).intValue(); - return value >= Byte.MIN_VALUE && value <= Byte.MAX_VALUE && obj == Integer.valueOf(value); - } - }, - /** - * java.lang.Short - */ - SHORT(Short.class) { - @Override - boolean isShared(final Object obj) { - short value = ((Short)obj).shortValue(); - return value >= Byte.MIN_VALUE && value <= Byte.MAX_VALUE && obj == Short.valueOf(value); - } - }, - /** - * java.lang.Byte - */ - BYTE(Byte.class) { - @Override - boolean isShared(final Object obj) { return obj == Byte.valueOf((Byte)obj); } - }, - /** - * java.lang.Long - */ - LONG(Long.class) { - @Override - boolean isShared(final Object obj) { - long value = ((Long)obj).longValue(); - return value >= Byte.MIN_VALUE && value <= Byte.MAX_VALUE && obj == Long.valueOf(value); - } - }, - /** - * java.math.BigInteger - */ - BIGINTEGER(BigInteger.class) { - @Override - boolean isShared(final Object obj) { - return obj == BigInteger.ZERO || obj == BigInteger.ONE || obj == BigInteger.TEN; - } - }, - /** - * java.math.BigDecimal - */ - BIGDECIMAL(BigDecimal.class) { - @Override - boolean isShared(final Object obj) { - return obj == BigDecimal.ZERO || obj == BigDecimal.ONE || obj == BigDecimal.TEN; - } - }, - /** - * java.math.MathContext - */ - MATHCONTEXT(MathContext.class) { - @Override - boolean isShared(final Object obj) { - return obj == MathContext.UNLIMITED || obj == MathContext.DECIMAL32 || obj == MathContext.DECIMAL64 || obj == MathContext.DECIMAL128; - } - }, - /** - * java.lang.Character - */ - CHARACTER(Character.class) { - @Override - boolean isShared(final Object obj) { return ((Character)obj).charValue() <= Byte.MAX_VALUE && obj == Character.valueOf((Character)obj); } - }, - /** - * java.lang.Locale - */ - LOCALE(Locale.class) { - @Override - boolean isShared(final Object obj) { - return GLOBAL_LOCALES.contains(obj); - } - }, - /** - * java.util.Logger - */ - LOGGER(Logger.class) { - @Override - @SuppressWarnings("deprecation") - boolean isShared(final Object obj) { return obj == Logger.global; } - }, - /** - * java.net.Proxy - */ - PROXY(Proxy.class) { - @Override - boolean isShared(final Object obj) { return obj == Proxy.NO_PROXY; } - }, - /** - * java.nio.charset.CodingErrorAction - */ - CODINGERRORACTION(CodingErrorAction.class) { - @Override - boolean isShared(final Object obj) { return true; } - }, - /** - * javax.xml.datatype.DatatypeConstants.Field - */ - DATATYPECONSTANTS_FIELD(DatatypeConstants.Field.class) { - @Override - boolean isShared(final Object obj) { return true; } - }, - /** - * javax.xml.namespace.QName - */ - QNAME(QName.class) { - @Override - boolean isShared(final Object obj) { - return obj == DatatypeConstants.DATETIME - || obj == DatatypeConstants.TIME - || obj == DatatypeConstants.DATE - || obj == DatatypeConstants.GYEARMONTH - || obj == DatatypeConstants.GMONTHDAY - || obj == DatatypeConstants.GYEAR - || obj == DatatypeConstants.GMONTH - || obj == DatatypeConstants.GDAY - || obj == DatatypeConstants.DURATION - || obj == DatatypeConstants.DURATION_DAYTIME - || obj == DatatypeConstants.DURATION_YEARMONTH; - } - }, - /** - * misc comparisons that can not rely on the object's class. - */ - MISC(Void.class) { - @Override - boolean isShared(final Object obj) { - boolean emptyCollection = obj == Collections.EMPTY_SET || obj == Collections.EMPTY_LIST || obj == Collections.EMPTY_MAP; - boolean systemStream = obj == System.in || obj == System.out || obj == System.err; - return emptyCollection || systemStream || obj == String.CASE_INSENSITIVE_ORDER; - } - }; - - private static final Map, FlyweightType> TYPE_MAPPINGS = new HashMap, FlyweightType>(); - static { - for (FlyweightType type : FlyweightType.values()) { - TYPE_MAPPINGS.put(type.clazz, type); - } - } - - private static final Set GLOBAL_LOCALES; - static { - Map locales = new IdentityHashMap(); - for (Field f : Locale.class.getFields()) { - int modifiers = f.getModifiers(); - if (Modifier.isPublic(modifiers) && Modifier.isStatic(modifiers) && Locale.class.equals(f.getType())) { - try { - locales.put((Locale) f.get(null), null); - } catch (IllegalArgumentException e) { - continue; - } catch (IllegalAccessException e) { - continue; - } - } - } - GLOBAL_LOCALES = locales.keySet(); - } - - private final Class clazz; - - private FlyweightType(final Class clazz) { - this.clazz = clazz; - } - - /** - * Whether this is a shared object - * @param obj the object to check for - * @return true, if shared - */ - abstract boolean isShared(Object obj); - - /** - * Will return the Flyweight enum instance for the flyweight Class, or null if type isn't flyweight - * @param aClazz the class we need the FlyweightType instance for - * @return the FlyweightType, or null - */ - static FlyweightType getFlyweightType(final Class aClazz) { - if (aClazz.isEnum() || (aClazz.getSuperclass() != null && aClazz.getSuperclass().isEnum())) { - return ENUM; - } else { - FlyweightType flyweightType = TYPE_MAPPINGS.get(aClazz); - return flyweightType != null ? flyweightType : MISC; - } - } -} Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/transaction/TransactionIDSerializedForm.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/transaction/TransactionIDSerializedForm.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/transaction/TransactionIDSerializedForm.java (revision 0) @@ -1,110 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package net.sf.ehcache.transaction; - -import net.sf.ehcache.CacheManager; - -import java.io.Serializable; - -/** - * A replacement serialized form for transaction IDs. It can be used by transaction ID factories - * to create IDs that serialize to this form (using writeReplace()) if they don't want or cannot - * provide directly serializable IDs. - *

- * During deserialization, objects of this class will be replaced by the result of the - * CacheManager.restoreTransactionID() call. - * - * @author Ludovic Orban - */ -public class TransactionIDSerializedForm implements Serializable { - private final String cacheManagerName; - private final String clusterUUID; - private final String ownerID; - private final long creationTime; - private final int id; - - /** - * Constructor - * - * @param cacheManagerName the name of the cache manager which contains the factory - * that created the original TransactionID - * @param clusterUUID the TransactionID's cluster UUID - * @param creationTime the TransactionID's creation time - * @param id the TransactionID's internal ID - */ - public TransactionIDSerializedForm(String cacheManagerName, String clusterUUID, String ownerID, long creationTime, int id) { - this.cacheManagerName = cacheManagerName; - this.clusterUUID = clusterUUID; - this.ownerID = ownerID; - this.creationTime = creationTime; - this.id = id; - } - - /** - * Get the name of the cache manager which contains the factory that created the - * original TransactionID - * - * @return the cache manager name - */ - public String getCacheManagerName() { - return cacheManagerName; - } - - /** - * Get the original TransactionID's cluster UUID - * - * @return the original TransactionID's cluster UUID - */ - public String getClusterUUID() { - return clusterUUID; - } - - /** - * Get the original TransactionID's owner id - * - * @return the original TransactionID's owner id - */ - public String getOwnerID() { - return ownerID; - } - - /** - * Get the original TransactionID's creation time - * - * @return the original TransactionID's creation time - */ - public long getCreationTime() { - return creationTime; - } - - /** - * Get the original TransactionID's internal ID - * - * @return the original TransactionID's internal ID - */ - public int getId() { - return id; - } - - private Object readResolve() { - CacheManager cacheManager = CacheManager.getCacheManager(cacheManagerName); - if (cacheManager == null) { - throw new TransactionException("unable to restore transaction ID from " + cacheManagerName); - } - return cacheManager.getOrCreateTransactionIDFactory().restoreTransactionID(this); - } - -} Index: rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/ehcache/tests/NoTcConfigStandaloneCacheTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/ehcache/tests/NoTcConfigStandaloneCacheTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/ehcache/tests/NoTcConfigStandaloneCacheTest.java (revision 0) @@ -1,52 +0,0 @@ -/* - * All content copyright (c) 2003-2008 Terracotta, Inc., except as may otherwise be noted in a separate copyright - * notice. All rights reserved. - */ -package org.terracotta.ehcache.tests; - -import com.tc.test.config.model.TestConfig; - -import java.io.BufferedReader; -import java.io.File; -import java.io.FileReader; - -/** - * @author cdennis - */ -public class NoTcConfigStandaloneCacheTest extends AbstractCacheTestBase { - - public NoTcConfigStandaloneCacheTest(TestConfig testConfig) { - super("no-tcconfig-cache-test.xml", testConfig); - } - - @Override - protected void evaluateClientOutput(String clientName, int exitCode, File output) throws Throwable { - if ((exitCode == 0)) { throw new AssertionError("Client " + clientName + " exited with exit code: " + exitCode); } - - FileReader fr = null; - boolean cacheException = false; - boolean tcConfig = false; - try { - fr = new FileReader(output); - BufferedReader reader = new BufferedReader(fr); - String st = ""; - while ((st = reader.readLine()) != null) { - if (st.contains("CacheException")) cacheException = true; - if (st.contains("")) tcConfig = true; - } - } catch (Exception e) { - throw new AssertionError(e); - } finally { - try { - fr.close(); - } catch (Exception e) { - // - } - } - - if (!cacheException) { throw new AssertionError("Expected Exception"); } - - if (!tcConfig) { throw new AssertionError("Expected "); } - } - -} Index: rctags/ehcache-2.10.8.2.20/ehcache-search-parser/src/main/java/net/sf/ehcache/search/parser/MOrderBy.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-search-parser/src/main/java/net/sf/ehcache/search/parser/MOrderBy.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-search-parser/src/main/java/net/sf/ehcache/search/parser/MOrderBy.java (revision 0) @@ -1,89 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package net.sf.ehcache.search.parser; - -public class MOrderBy { - - /** - * The attr. - */ - private final MAttribute attr; - - /** - * The asc. - */ - private final boolean asc; - - /** - * Instantiates a new model order by. - * - * @param attr the attr - * @param asc the asc - */ - public MOrderBy(MAttribute attr, boolean asc) { - this.attr = attr; - this.asc = asc; - } - - /** - * Gets the attribute. - * - * @return the attribute - */ - public MAttribute getAttribute() { - return attr; - } - - /** - * Checks if is order ascending. - * - * @return true, if is order ascending - */ - public boolean isOrderAscending() { - return asc; - } - - /* (non-Javadoc) - * @see java.lang.Object#toString() - */ - @Override - public String toString() { - return "order by " + attr + (asc ? " ascending" : " descending"); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + (asc ? 1231 : 1237); - result = prime * result + ((attr == null) ? 0 : attr.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) return true; - if (obj == null) return false; - if (getClass() != obj.getClass()) return false; - MOrderBy other = (MOrderBy)obj; - if (asc != other.asc) return false; - if (attr == null) { - if (other.attr != null) return false; - } else if (!attr.equals(other.attr)) return false; - return true; - } - -} Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/terracotta/ClusteredInstanceFactory.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/terracotta/ClusteredInstanceFactory.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/terracotta/ClusteredInstanceFactory.java (revision 0) @@ -1,149 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package net.sf.ehcache.terracotta; - -import net.sf.ehcache.Ehcache; -import net.sf.ehcache.cluster.CacheCluster; -import net.sf.ehcache.config.Configuration; -import net.sf.ehcache.event.CacheEventListener; -import net.sf.ehcache.management.event.ManagementEventSink; -import net.sf.ehcache.store.Store; -import net.sf.ehcache.store.TerracottaStore; -import net.sf.ehcache.transaction.SoftLockManager; -import net.sf.ehcache.transaction.TransactionIDFactory; -import net.sf.ehcache.writer.writebehind.WriteBehind; - -import java.util.concurrent.Callable; - -/** - * Factory for creating clustered instances - * - * @author Tim Eck - * @author Geert Bevin - * @since 1.7 - */ -public interface ClusteredInstanceFactory { - - /** - * Create a Store instance for the given cache - * - * @param cache the cache will backed by the returned store - * @return store instance - */ - Store createStore(Ehcache cache); - - /** - * Get an api for looking at the clustered node topology. - */ - CacheCluster getTopology(); - - /** - * Create an WriteBehind instance for the given cache - * - * @param cache the cache to which the write behind will be tied - * @return write behind instance - */ - WriteBehind createWriteBehind(Ehcache cache); - - /** - * Create a replicator for the cache events of a given cache - * - * @param cache the cache to which the replicator will be bound - * @return cache event replicator - */ - CacheEventListener createEventReplicator(Ehcache cache); - - /** - * Returns a universally unique identifiers for this factory. - * - * @return the identifier as a string - */ - String getUUID(); - - /** - * Enable or disable NonStop for the current thread only. - * - * @param enable true to enable NonStop, false otherwise. - */ - void enableNonStopForCurrentThread(boolean enable); - - /** - * Cleans up any resources left behind after the shutdown of the associated CacheManager - */ - void shutdown(); - - /** - * Create a TransactionIDFactory - * - * @param uuid a UUID unique to the cluster - * @param cacheManagerName the name of the cache manager creating a TransactionIDFactory - * @return a TransactionIDFactory - */ - TransactionIDFactory createTransactionIDFactory(String uuid, String cacheManagerName); - - /** - * Create a SoftLockManager for a cache - * - * @param cache the cache for which to create a SoftLockManager - * @return a SoftLockManager - */ - SoftLockManager getOrCreateSoftLockManager(Ehcache cache); - - /** - * Create a NonStopStoreWrapper for a terracottaStore - * - * @param store the store for which to create a NonStopStore - * @return a NonStopStore - */ - TerracottaStore createNonStopStore(Callable store, Ehcache cache); - - /** - * Destroys the specified cache - * - * @param cacheManagerName name of the cache manager the cache belongs to - * @param cacheName name of the cache - * @return true if the cache existed before being destroyed - */ - boolean destroyCache(String cacheManagerName, String cacheName); - - /** - * Wait until the Orchestrator is running for the given CacheManager - * @param cacheManagerName name of the CacheManager - */ - public void waitForOrchestrator(String cacheManagerName); - - /** - * Links this cache manager to the cluster - * - * @param cacheManagerName the name of the cache manager - * @param configuration the cache manager configuration - */ - void linkClusteredCacheManager(String cacheManagerName, Configuration configuration); - - /** - * Un-links the cache from its cluster entity - * - * @param cacheName the cache to unlink - */ - void unlinkCache(String cacheName); - - /** - * Create a management event sink - * - * @return a management event sink - */ - ManagementEventSink createEventSink(); -} Index: rctags/ehcache-2.10.8.2.20/system-tests/src/test/resources/byteman/writeBehindAtomicity.btm =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/system-tests/src/test/resources/byteman/writeBehindAtomicity.btm (revision 11355) +++ rctags/ehcache-2.10.8.2.20/system-tests/src/test/resources/byteman/writeBehindAtomicity.btm (revision 0) @@ -1,40 +0,0 @@ -RULE trace RemoteTransactionManagerImpl commitWithoutThrottling -CLASS RemoteTransactionManagerImpl -METHOD commitWithoutThrottling -AT ENTRY -IF true -DO traceln("COMMITTRANSACTION :" + Thread.currentThread().getName()); -ENDRULE - -RULE trace ClusteredStore putWithWriterEntry -CLASS ClusteredStore -METHOD putWithWriter -AT ENTRY -IF true -DO traceln("BEGINOPERATION putWithWriterThread :" + Thread.currentThread().getName()); -ENDRULE - -RULE trace ClusteredStore putWithWriterExit -CLASS ClusteredStore -METHOD putWithWriter -AT EXIT -IF true -DO traceln("ENDOPERATION putWithWriter Thread :" + Thread.currentThread().getName()); -ENDRULE - -RULE trace ClusteredStore removeWithWriterEntry -CLASS ClusteredStore -METHOD removeWithWriter -AT ENTRY -IF true -DO traceln("BEGINOPERATION removeWithWriterThread :" + Thread.currentThread().getName()); -ENDRULE - -RULE trace ClusteredStore removeWithWriterExit -CLASS ClusteredStore -METHOD removeWithWriter -AT EXIT -IF true -DO traceln("ENDOPERATION removeWithWriter Thread :" + Thread.currentThread().getName()); -ENDRULE - Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/CacheCopyOnRwReplaceRemoveTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/CacheCopyOnRwReplaceRemoveTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/CacheCopyOnRwReplaceRemoveTest.java (revision 0) @@ -1,113 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package net.sf.ehcache; - -import net.sf.ehcache.config.CacheConfiguration; -import net.sf.ehcache.config.Configuration; -import net.sf.ehcache.config.DiskStoreConfiguration; -import net.sf.ehcache.config.MemoryUnit; -import net.sf.ehcache.config.PersistenceConfiguration; - -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; -import org.junit.experimental.categories.Category; -import org.junit.runner.RunWith; -import org.junit.runners.Parameterized; -import org.junit.runners.Parameterized.Parameters; -import org.terracotta.test.categories.CheckShorts; - -import java.util.Arrays; -import java.util.Collection; - -@Category(CheckShorts.class) -@RunWith(Parameterized.class) -public class CacheCopyOnRwReplaceRemoveTest { - - public static final String MEMORY_CACHE = "memoryCache"; - public static final String DISK_CACHE = "diskCache"; - - @Parameters(name = "copyOnRead:{0}, copyOnWrite:{1}") - public static Collection data() { - Object[][] data = new Object[][] { { true, false }, { false, true }, { true, true } }; - return Arrays.asList(data); - } - - private final boolean copyOnRead; - private final boolean copyOnWrite; - - private CacheManager cacheManager; - - public CacheCopyOnRwReplaceRemoveTest(boolean copyOnRead, boolean copyOnWrite) { - this.copyOnRead = copyOnRead; - this.copyOnWrite = copyOnWrite; - } - - @Before - public void setUp() throws Exception { - cacheManager = CacheManager.create( new Configuration() - .name("copyOnRWReplaceRemoveManager") - .diskStore(new DiskStoreConfiguration().path(System.getProperty("java.io.tmpdir"))) - .maxBytesLocalHeap(100, MemoryUnit.KILOBYTES) - .maxBytesLocalDisk(200, MemoryUnit.KILOBYTES)); - cacheManager.addCache(new Cache(new CacheConfiguration().name(MEMORY_CACHE) - .copyOnRead(copyOnRead) - .copyOnWrite(copyOnWrite))); - cacheManager.addCache(new Cache(new CacheConfiguration().name(DISK_CACHE) - .persistence(new PersistenceConfiguration().strategy(PersistenceConfiguration.Strategy.LOCALTEMPSWAP)) - .copyOnRead(copyOnRead) - .copyOnWrite(copyOnWrite))); - } - - @After - public void tearDown() { - cacheManager.shutdown(); - } - - @Test - public void testMemoryCache() throws Exception { - Ehcache cache = cacheManager.getCache(MEMORY_CACHE); - testReplaceElement(cache); - testRemoveElement(cache); - } - - @Test - public void testDiskCache() throws Exception { - Ehcache cache = cacheManager.getCache(DISK_CACHE); - testReplaceElement(cache); - testRemoveElement(cache); - } - - private void testReplaceElement(Ehcache cache) { - Long key = System.nanoTime(); - String value = "value" + key; - cache.put(new Element(new Long(key), new String(value))); - Assert.assertEquals(cache.get(key).getValue(), new Element(new Long(key), new String(value)).getValue()); - String nextValue = value + "1"; - Assert.assertTrue(cache.replace(new Element(new Long(key), new String(value)), new Element(new Long(key), new String(nextValue)))); - } - - private void testRemoveElement(Ehcache cache) { - Long key = System.nanoTime(); - String value = "value" + key; - cache.put(new Element(new Long(key), new String(value))); - Assert.assertEquals(cache.get(key).getValue(), new Element(new Long(key), new String(value)).getValue()); - Assert.assertTrue(cache.removeElement(new Element(new Long(key), new String(value)))); - } - -} Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/search/BasicSearchTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/search/BasicSearchTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/search/BasicSearchTest.java (revision 0) @@ -1,1194 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package net.sf.ehcache.search; - -import net.sf.ehcache.Cache; -import net.sf.ehcache.CacheException; -import net.sf.ehcache.CacheManager; -import net.sf.ehcache.Ehcache; -import net.sf.ehcache.Element; -import net.sf.ehcache.config.CacheConfiguration; -import net.sf.ehcache.config.SearchAttribute; -import net.sf.ehcache.config.Searchable; -import net.sf.ehcache.search.Person.Gender; -import net.sf.ehcache.search.aggregator.Aggregator; -import net.sf.ehcache.search.aggregator.AggregatorException; -import net.sf.ehcache.search.aggregator.AggregatorInstance; -import net.sf.ehcache.search.aggregator.Aggregators; -import net.sf.ehcache.search.expression.Criteria; -import net.sf.ehcache.search.expression.LessThan; -import net.sf.ehcache.search.expression.Or; -import net.sf.ehcache.search.impl.GroupedResultImpl; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.junit.experimental.categories.Category; -import org.terracotta.test.categories.CheckShorts; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Random; -import java.util.Set; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -@Category(CheckShorts.class) -public class BasicSearchTest { - private CacheManager cacheManager; - - @Before - public void setup() { - this.cacheManager = new CacheManager(getClass().getResource("/ehcache-search.xml")); - } - - @After - public void tearDown() { - this.cacheManager.shutdown(); - } - - @Test - public void testInvalidConfiguration() { - try { - new CacheManager(getClass().getResource("/ehcache-search-invalid-key.xml")); - fail(); - } catch (CacheException ce) { - // expected - } - - try { - new CacheManager(getClass().getResource("/ehcache-search-invalid-value.xml")); - fail(); - } catch (CacheException ce) { - // expected - } - } - - @Test - public void testKeysValuesDisabled() { - Cache cache = cacheManager.getCache("searchable-no-keys-values"); - - CacheConfiguration config = cache.getCacheConfiguration(); - - Searchable searchable = config.getSearchable(); - - assertFalse(searchable.keys()); - assertFalse(searchable.values()); - - try { - cache.getSearchAttribute(Query.KEY.getAttributeName()); - fail(); - } catch (CacheException se) { - // expected - System.err.println(se.getMessage()); - } - - try { - cache.getSearchAttribute(Query.VALUE.getAttributeName()); - fail(); - } catch (CacheException se) { - // expected - System.err.println(se.getMessage()); - } - } - - @Test - public void testNonSearchableCache() { - Ehcache cache = cacheManager.getEhcache("not-searchable"); - assertFalse(cache.isSearchable()); - - try { - cache.createQuery(); - fail(); - } catch (CacheException e) { - // expected - } - } - - @Test - public void testDefaultSearchableCache() { - Ehcache cache = cacheManager.getEhcache("default-searchable"); - assertTrue(cache.isSearchable()); - - cache.put(new Element("key", new Object())); - cache.put(new Element(new Object(), "value")); - cache.put(new Element(new Object(), new Object())); - cache.put(new Element(null, null)); - - Query query; - Results results; - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(Query.KEY.eq("key")).end(); - results = query.execute(); - assertEquals(1, results.size()); - assertEquals("key", results.all().iterator().next().getKey()); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(Query.VALUE.eq("value")).end(); - results = query.execute(); - assertEquals(1, results.size()); - Object key = results.all().iterator().next().getKey(); - assertEquals("value", cache.get(key).getObjectValue()); - } - - @Test - public void testQueryBuilder() { - Ehcache cache = cacheManager.getEhcache("cache1"); - - Query query1 = cache.createQuery(); - Query query2 = cache.createQuery(); - - // query instances should be unique - assertFalse(query1 == query2); - - // null checks - try { - query1.addCriteria(null); - fail(); - } catch (NullPointerException npe) { - // expected - } - try { - query1.addOrderBy(null, Direction.ASCENDING); - fail(); - } catch (NullPointerException npe) { - // expected - } - try { - query1.addOrderBy(new Attribute("foo"), null); - fail(); - } catch (NullPointerException npe) { - // expected - } - try { - query1.includeAggregator((Aggregator[]) null); - fail(); - } catch (NullPointerException npe) { - // expected - } - try { - query1.includeAttribute((Attribute[]) null); - fail(); - } catch (NullPointerException npe) { - // expected - } - try { - query1.includeAttribute(new Attribute[] {new Attribute("foo"), null}); - fail(); - } catch (NullPointerException npe) { - // expected - } catch (SearchException e) { - // expected - } - - // freeze query - query1.end(); - - try { - query1.addCriteria(new Attribute("foo").le(35)); - fail(); - } catch (SearchException se) { - // expected - } - try { - query1.addOrderBy(new Attribute("foo"), Direction.ASCENDING); - fail(); - } catch (SearchException se) { - // expected - } - try { - query1.includeAggregator(new Attribute("foo").max()); - fail(); - } catch (SearchException se) { - // expected - } - try { - query1.includeAttribute(new Attribute("foo")); - fail(); - } catch (SearchException se) { - // expected - } - try { - query1.includeKeys(); - fail(); - } catch (SearchException se) { - // expected - } - try { - query1.maxResults(3); - fail(); - } catch (SearchException se) { - // expected - } - } - - @Test - public void testRange() { - Ehcache cache = cacheManager.getEhcache("cache1"); - SearchTestUtil.populateData(cache); - - Query query = cache.createQuery(); - query.includeKeys(); - query.end(); - - Results results = query.execute(); - assertEquals(4, results.all().size()); - - List keys = new ArrayList(); - for (int i = 0; i < 4; i++) { - List range = results.range(i, 1); - assertEquals(1, range.size()); - keys.add((Integer) range.get(0).getKey()); - } - assertEquals(4, keys.size()); - - for (int i = 0; i < 4; i++) { - assertEquals(0, results.range(i, 0).size()); - } - - assertEquals(0, results.range(0, 0).size()); - assertEquals(1, results.range(0, 1).size()); - assertEquals(2, results.range(0, 2).size()); - assertEquals(3, results.range(0, 3).size()); - assertEquals(4, results.range(0, 4).size()); - assertEquals(4, results.range(0, 5).size()); - assertEquals(4, results.range(0, Integer.MAX_VALUE).size()); - - try { - results.range(-1, 1); - fail(); - } catch (IllegalArgumentException iae) { - // expected - } - - try { - results.range(0, -1); - fail(); - } catch (IllegalArgumentException iae) { - // expected - } - } - - @Test - public void testBasic() { - // uses expression attribute extractors - basicQueries(cacheManager.getEhcache("cache1")); - - // uses a "custom" attribute extractor too - basicQueries(cacheManager.getEhcache("cache2")); - - // uses copyOnRead / copyOnWrite - basicQueries(cacheManager.getEhcache("cache3")); - - // uses bean attributes - basicQueries(cacheManager.getEhcache("bean-attributes")); - } - - @Test - public void testCustomAggregator() { - Ehcache cache = cacheManager.getEhcache("cache1"); - SearchTestUtil.populateData(cache); - - Attribute age = cache.getSearchAttribute("age"); - - Query query = cache.createQuery(); - query.includeAggregator(new Aggregator() { - public AggregatorInstance createInstance() { - return new AggregatorInstance() { - - private int doubledSum; - - public void accept(Object input) throws AggregatorException { - if (doubledSum == 0) { - doubledSum = (2 * (Integer) input); - } else { - doubledSum += (2 * (Integer) input); - } - } - - public AggregatorInstance createClone() { - return this; - } - - public Integer aggregateResult() { - return doubledSum; - } - - public Attribute getAttribute() { - return new Attribute("age"); - } - }; - } - }); - query.end(); - - Results results = query.execute(); - assertEquals(1, results.size()); - for (Result result : results.all()) { - assertEquals(246, result.getAggregatorResults().get(0)); - } - } - - @Test - public void testBuiltinFunctions() { - Ehcache cache = cacheManager.getEhcache("cache1"); - SearchTestUtil.populateData(cache); - - Attribute age = cache.getSearchAttribute("age"); - - { - Query query = cache.createQuery(); - query.includeAggregator(age.count()); - query.end(); - - Results results = query.execute(); - assertTrue(results.hasAggregators()); - assertEquals(1, results.size()); - for (Result result : results.all()) { - System.err.println(result); // exercise toString() - assertEquals(4, result.getAggregatorResults().get(0)); - } - } - - { - Query query = cache.createQuery(); - query.includeAggregator(age.max()); - query.end(); - - Results results = query.execute(); - assertTrue(results.hasAggregators()); - assertEquals(1, results.size()); - for (Result result : results.all()) { - assertEquals(35, result.getAggregatorResults().get(0)); - } - } - - { - Query query = cache.createQuery(); - query.includeAggregator(age.min()); - query.end(); - - Results results = query.execute(); - assertTrue(results.hasAggregators()); - assertEquals(1, results.size()); - for (Result result : results.all()) { - assertEquals(23, result.getAggregatorResults().get(0)); - } - } - - { - Query query = cache.createQuery(); - query.includeAggregator(age.sum()); - query.end(); - - Results results = query.execute(); - assertTrue(results.hasAggregators()); - assertEquals(1, results.size()); - for (Result result : results.all()) { - assertEquals(123L, result.getAggregatorResults().get(0)); - } - } - - { - Query query = cache.createQuery(); - query.includeAggregator(age.average()); - query.end(); - - Results results = query.execute(); - assertTrue(results.hasAggregators()); - assertEquals(1, results.size()); - for (Result result : results.all()) { - assertEquals(30.75F, result.getAggregatorResults().get(0)); - } - } - - { - // multiple aggregators - Query query = cache.createQuery(); - query.includeAggregator(age.min()); - query.includeAggregator(age.max()); - query.end(); - - Results results = query.execute(); - assertTrue(results.hasAggregators()); - assertEquals(1, results.size()); - for (Result result : results.all()) { - assertEquals(23, result.getAggregatorResults().get(0)); - assertEquals(35, result.getAggregatorResults().get(1)); - } - } - - { - // use criteria with an aggregator - Query query = cache.createQuery(); - query.includeAggregator(age.average()); - query.addCriteria(age.between(0, 32)); - query.end(); - - Results results = query.execute(); - assertTrue(results.hasAggregators()); - assertEquals(1, results.size()); - for (Result result : results.all()) { - assertEquals(26.5F, result.getAggregatorResults().get(0)); - } - } - - { - // includeKeys in addition to an aggregator - Query query = cache.createQuery(); - query.includeKeys(); - query.includeAggregator(age.average()); - query.addCriteria(age.between(0, 32)); - query.end(); - - Results results = query.execute(); - assertTrue(results.hasAggregators()); - assertTrue(results.hasKeys()); - assertEquals(2, results.size()); - for (Result result : results.all()) { - assertEquals(26.5F, result.getAggregatorResults().get(0)); - } - - verify(cache, query, 2, 4); - } - - { - // execute query twice - Query query = cache.createQuery(); - query.includeAggregator(age.count()); - query.end(); - - Results results = query.execute(); - assertTrue(results.hasAggregators()); - assertFalse(results.hasKeys()); - for (Result result : results.all()) { - assertEquals(4, result.getAggregatorResults().get(0)); - } - - results = query.execute(); - assertTrue(results.hasAggregators()); - assertFalse(results.hasKeys()); - for (Result result : results.all()) { - assertEquals(4, result.getAggregatorResults().get(0)); - } - } - - } - - @Test - public void testMaxResults() { - Ehcache cache = cacheManager.getEhcache("cache1"); - SearchTestUtil.populateData(cache); - - Attribute age = cache.getSearchAttribute("age"); - Attribute gender = cache.getSearchAttribute("gender"); - - Query query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(age.ne(35)); - query.maxResults(1); - query.end(); - - Results results = query.execute(); - assertEquals(1, results.size()); - for (Result result : results.all()) { - switch ((Integer) result.getKey()) { - case 2: - case 4: { - break; - } - default: { - throw new AssertionError(result.getKey()); - } - } - } - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(age.ne(35)); - query.maxResults(0); - query.end(); - - results = query.execute(); - assertEquals(0, results.size()); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(age.ne(35)); - query.maxResults(2); - query.end(); - - results = query.execute(); - assertEquals(2, results.size()); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(age.ne(35)); - query.maxResults(2); - query.end(); - - results = query.execute(); - assertEquals(2, results.size()); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(age.ne(35)); - query.maxResults(-1); - query.end(); - - results = query.execute(); - assertEquals(2, results.size()); - - } - - @Test - public void testAttributeQuery() { - Ehcache cache = cacheManager.getEhcache("cache1"); - SearchTestUtil.populateData(cache); - - Attribute age = cache.getSearchAttribute("age"); - Attribute gender = cache.getSearchAttribute("gender"); - - Query query = cache.createQuery(); - // not including keys - query.addCriteria(age.ne(35)); - query.includeAttribute(age, gender); - query.end(); - - Results results = query.execute(); - assertFalse(results.hasKeys()); - assertFalse(results.hasAggregators()); - assertTrue(results.hasAttributes()); - - for (Result result : results.all()) { - System.err.println(result.toString()); // exercise toString() - - try { - result.getKey(); - fail(); - } catch (SearchException se) { - // expected - } - - try { - result.getKey(); - fail(); - } catch (SearchException se) { - // expected - } - - int ageAttr = result.getAttribute(age); - if (ageAttr == 23) { - assertEquals(Gender.FEMALE, result.getAttribute(gender)); - } else if (ageAttr == 30) { - assertEquals(Gender.MALE, result.getAttribute(gender)); - } else { - throw new AssertionError("unexpected age: " + ageAttr); - } - - try { - result.getAttribute(new Attribute("does-not-exist")); - fail(); - } catch (SearchException se) { - // expected - } - } - - } - - private void basicQueries(Ehcache cache) { - SearchTestUtil.populateData(cache); - - Query query; - Attribute age = cache.getSearchAttribute("age"); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(age.ne(35)); - query.end(); - verify(cache, query, 2, 4); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("age").lt(30)); - query.end(); - query.execute(); - verify(cache, query, 2); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("age").le(30)); - query.end(); - query.execute(); - verify(cache, query, 2, 4); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("age").in(new HashSet(Arrays.asList(23, 35)))); - query.end(); - query.execute(); - verify(cache, query, 1, 2, 3); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("age").gt(30)); - query.end(); - query.execute(); - verify(cache, query, 1, 3); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("age").between(23, 35, true, false)); - query.end(); - query.execute(); - verify(cache, query, 2, 4); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("age").ge(30)); - query.end(); - query.execute(); - verify(cache, query, 1, 3, 4); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("age").eq(35).or(cache.getSearchAttribute("gender").eq(Gender.FEMALE))); - query.end(); - verify(cache, query, 1, 2, 3); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("age").eq(35).and(cache.getSearchAttribute("gender").eq(Gender.MALE))); - query.end(); - verify(cache, query, 1, 3); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("age").eq(35).and(cache.getSearchAttribute("gender").eq(Gender.FEMALE))); - query.end(); - verify(cache, query); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("age").eq(35)); - query.addCriteria(cache.getSearchAttribute("gender").eq(Gender.FEMALE)); - query.end(); - verify(cache, query); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("gender").eq(Gender.MALE).not()); - query.end(); - verify(cache, query, 2); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("name").eq("Tim Eck")); - query.addCriteria(cache.getSearchAttribute("gender").eq(Gender.MALE)); - query.addCriteria(cache.getSearchAttribute("age").eq(35)); - query.end(); - verify(cache, query, 1); - - query = cache.createQuery(); - query.includeKeys(); - Attribute name = cache.getSearchAttribute("name"); - query.addCriteria(name.eq("Tim Eck").or(name.eq("Ari Zilka")).or(name.eq("Nabib El-Rahman"))); - query.end(); - verify(cache, query, 1, 3, 4); - - try { - cache.getSearchAttribute("DOES_NOT_EXIST_PLEASE_DO_NOT_CREATE_ME"); - fail(); - } catch (CacheException ce) { - // expected - } - } - - @Test - public void testOrdering() { - Ehcache cache = cacheManager.getEhcache("cache1"); - SearchTestUtil.populateData(cache); - - Attribute age = cache.getSearchAttribute("age"); - Attribute name = cache.getSearchAttribute("name"); - - Query query; - - query = cache.createQuery(); - query.includeKeys(); - // no critera -- select all elements - query.addOrderBy(age, Direction.DESCENDING); - query.addOrderBy(name, Direction.ASCENDING); - query.end(); - - verifyOrdered(cache, query, 3, 1, 4, 2); - - query = cache.createQuery(); - query.includeKeys(); - // no critera -- select all elements - query.addOrderBy(age, Direction.DESCENDING); - query.addOrderBy(name, Direction.ASCENDING); - query.maxResults(2); - query.end(); - - verifyOrdered(cache, query, 3, 1); - } - - @Test - public void testILike() { - Ehcache cache = cacheManager.getEhcache("cache1"); - SearchTestUtil.populateData(cache); - - Attribute name = cache.getSearchAttribute("name"); - - Query query; - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(new Or(name.ilike("tim*"), name.ilike("ari*"))); - query.end(); - - verify(cache, query, 3, 1); - - cache.removeAll(); - cache.put(new Element(1, new Person("Test \\ Bob * ?", 35, Gender.MALE))); - cache.put(new Element(2, new Person("(..Test", 35, Gender.MALE))); - cache.put(new Element(3, new Person("lowercase", 35, Gender.MALE))); - cache.put(new Element(4, new Person("UPPERCASE", 35, Gender.MALE))); - cache.put(new Element(5, new Person("MiXeD", 35, Gender.MALE))); - cache.put(new Element(6, new Person("Hello there\nI am on a newline\nMe too\n", 999, Gender.MALE))); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(name.ilike("Test \\\\ Bob \\* \\?")); - query.end(); - - verify(cache, query, 1); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(name.ilike("*Test*")); - query.end(); - - verify(cache, query, 1, 2); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(name.ilike("Test*\\?")); - query.end(); - - verify(cache, query, 1); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(name.ilike("(..*")); - query.end(); - - verify(cache, query, 2); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(name.ilike("Lowercase")); - query.end(); - - verify(cache, query, 3); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(name.ilike("LOWER*")); - query.end(); - - verify(cache, query, 3); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(name.ilike("uppercase")); - query.end(); - - verify(cache, query, 4); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(name.ilike("mixed")); - query.end(); - - verify(cache, query, 5); - - query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(name.ilike("*am on a*")); - query.end(); - - verify(cache, query, 6); - } - - @Test - public void testTypeChecking() { - CacheConfiguration config = new CacheConfiguration("test", 0); - config.setOverflowToDisk(false); - config.diskPersistent(false); - config.setEternal(true); - Searchable searchable = new Searchable().searchAttribute(new SearchAttribute().name("attr").expression("value.getAttr()")); - config.addSearchable(searchable); - - cacheManager.addCache(new Cache(config)); - - class Value { - private final Object attr; - - Value(Object attr) { - this.attr = attr; - } - - Object getAttr() { - return attr; - } - } - - Ehcache cache = cacheManager.getEhcache("test"); - cache.put(new Element(1, new Value("foo"))); - - Query query = cache.createQuery(); - query.includeKeys(); - query.addCriteria(cache.getSearchAttribute("attr").le(4)); - query.end(); - - try { - query.execute(); - fail(); - } catch (SearchException se) { - // expected since the criteria wants INT, but actual attribute value is STRING - } - - // with proper type search will execute - cache.put(new Element(1, new Value(4))); - assertEquals(1, query.execute().all().iterator().next().getKey()); - } - - @Test - public void testEmptyQueries() { - Ehcache cache = cacheManager.getEhcache("cache1"); - SearchTestUtil.populateData(cache); - - { - Query query = cache.createQuery(); - query.end(); - try { - query.execute(); - fail(); - } catch (SearchException e) { - System.err.println("Expected " + e); - } - } - - { - Attribute age = cache.getSearchAttribute("age"); - Query query = cache.createQuery(); - query.addCriteria(age.ne(35)); - query.end(); - try { - query.execute(); - fail(); - } catch (SearchException e) { - System.err.println("Expected " + e); - } - } - } - - @Test - public void testIncludeValues() { - Ehcache cache = cacheManager.getEhcache("cache1"); - SearchTestUtil.populateData(cache); - - { - Query query = cache.createQuery(); - query.includeValues(); - query.end(); - Results results = query.execute(); - assertTrue(results.hasValues()); - assertEquals(4, results.size()); - int ageSum = 0; - for (Result result : results.all()) { - System.err.println(result.toString()); // exercise toString() - - Person p = (Person) result.getValue(); - ageSum += p.getAge(); - try { - result.getKey(); - } catch (SearchException se) { - // expected since keys not included - } - } - - assertEquals(123, ageSum); - } - - { - Query query = cache.createQuery(); - query.includeKeys(); - query.end(); - Results results = query.execute(); - assertFalse(results.hasValues()); - assertEquals(4, results.size()); - for (Result result : results.all()) { - try { - result.getValue(); - fail(); - } catch (SearchException se) { - // expected since keys not included - } - } - } - } - - @Test - public void testSearchUnknownAttribute() { - Ehcache cache = cacheManager.getEhcache("cache1"); - SearchTestUtil.populateData(cache); - - Attribute address = new Attribute("address"); - - try { - cache.getSearchAttribute(address.getAttributeName()); - fail(address.getAttributeName() + " not expected in cache search config"); - } - catch (CacheException e) { - // expected - } - - try { - cache.createQuery().includeAttribute(address).execute(); - fail("Expected to fail due to unknown attribute"); - } - catch (SearchException ex) { - // expected - } - - Aggregator[] aggs = new Aggregator[] { Aggregators.average(address), Aggregators.min(address), Aggregators.max(address), - Aggregators.sum(address) } ; - for (Aggregator a: aggs) { - Query q = cache.createQuery().includeAggregator(a); - try { - q.execute(); - fail("Expected to fail due to bad attribute used in aggregator"); - } - catch (SearchException e) { - // expected - } - } - } - - @Test - public void testBadAttributeInCriteria() { - Ehcache cache = cacheManager.getEhcache("cache1"); - SearchTestUtil.populateData(cache); - - Attribute address = new Attribute("address"); - try { - cache.getSearchAttribute(address.getAttributeName()); - fail(address.getAttributeName() + " not expected in cache search config"); - } - catch (CacheException e) { - // expected - } - - Collection expr = new ArrayList(); - expr.add(address.between("aaa", "zzz")); - expr.add(new LessThan("address", "Elm St")); - expr.add(address.eq("ehcache")); - expr.add(address.ge("rocks")); - expr.add(address.gt("FOO")); - expr.add(address.ne("bAr")); - expr.add(address.ilike("likethis*")); - expr.add(address.le("1000")); - expr.add(address.in(Collections.singleton("XYZ"))); - - for (Criteria c: expr) { - Query q = cache.createQuery().addCriteria(c); - - try { - q.execute(); - fail("Expected to fail due to unknown attribute in search criteria"); - } - catch (SearchException e) { - // expected - } - } - - Criteria bool = null; - Random r = new Random(); - for (Criteria c: expr) { - if (bool == null) { - bool = c; - continue; - } - switch (r.nextInt(2)) { - case 0: - bool = bool.and(c); - break; - case 1: - bool = bool.or(c); - break; - case 2: - bool = bool.not(); - break; - default: - throw new AssertionError(); - } - } - - Query q = cache.createQuery().addCriteria(bool); - - try { - q.execute(); - fail("Expected to fail due to unknown attribute in search criteria chain"); - } - catch (SearchException e) { - // expected - } - - - } - - @Test - public void testBasicGroupBy() { - Ehcache cache = cacheManager.getEhcache("cache1"); - assertTrue(cache.isSearchable()); - - int numOfDepts = 10; - int numOfMalesPerDept = 100; - int numOfFemalesPerDept = 100; - - for (int i = 0; i < numOfDepts; i++) { - for (int j = 0; j < numOfMalesPerDept; j++) { - cache.put(new Element("male" + i + "-" + j, new Person("male" + j, j, Gender.MALE, "dept" + i))); - } - - for (int j = 0; j < numOfFemalesPerDept; j++) { - cache.put(new Element("female" + i + "-" + j, new Person("female" + j, j, Gender.FEMALE, "dept" + i))); - } - } - - Query query; - Results results; - - query = cache.createQuery(); - query.includeAttribute(cache.getSearchAttribute("dept")); - query.includeAttribute(cache.getSearchAttribute("gender")); - query.includeAggregator(cache.getSearchAttribute("age").sum()); - query.includeAggregator(cache.getSearchAttribute("age").min()); - query.includeAggregator(cache.getSearchAttribute("age").max()); - query.addGroupBy(cache.getSearchAttribute("dept")); - query.addOrderBy(cache.getSearchAttribute("dept"), Direction.DESCENDING); - query.addOrderBy(cache.getSearchAttribute("gender"), Direction.ASCENDING); - query.addGroupBy(cache.getSearchAttribute("gender")); - query.end(); - - results = query.execute(); - - assertEquals(numOfDepts * 2, results.size()); - - int i = 1; - for (Iterator iter = results.all().iterator(); iter.hasNext();) { - Result maleResult = iter.next(); - System.out.println("XXXXXXXXX: " + maleResult); - assertEquals("dept" + (numOfDepts - i), maleResult.getAttribute(cache.getSearchAttribute("dept"))); - assertEquals(Gender.MALE, maleResult.getAttribute(cache.getSearchAttribute("gender"))); - - assertTrue(maleResult instanceof GroupedResultImpl); - Map groupByValues = ((GroupedResultImpl) maleResult).getGroupByValues(); - assertEquals(2, groupByValues.size()); - assertEquals("dept" + (numOfDepts - i), groupByValues.get("dept")); - assertEquals(Gender.MALE, groupByValues.get("gender")); - - List aggregateResults = maleResult.getAggregatorResults(); - assertEquals(3, aggregateResults.size()); - assertEquals(numOfMalesPerDept * (numOfMalesPerDept - 1) / 2, ((Long) aggregateResults.get(0)).intValue()); - assertEquals(0, ((Integer) aggregateResults.get(1)).intValue()); - assertEquals(numOfMalesPerDept - 1, ((Integer) aggregateResults.get(2)).intValue()); - - Result femaleResult = iter.next(); - System.out.println("XXXXXXXXX: " + femaleResult); - - assertEquals("dept" + (numOfDepts - i), femaleResult.getAttribute(cache.getSearchAttribute("dept"))); - assertEquals(Gender.FEMALE, femaleResult.getAttribute(cache.getSearchAttribute("gender"))); - - assertTrue(femaleResult instanceof GroupedResultImpl); - groupByValues = ((GroupedResultImpl) femaleResult).getGroupByValues(); - assertEquals(2, groupByValues.size()); - assertEquals("dept" + (numOfDepts - i), groupByValues.get("dept")); - assertEquals(Gender.FEMALE, groupByValues.get("gender")); - - aggregateResults = femaleResult.getAggregatorResults(); - assertEquals(3, aggregateResults.size()); - assertEquals(numOfFemalesPerDept * (numOfFemalesPerDept - 1) / 2, ((Long) aggregateResults.get(0)).intValue()); - assertEquals(0, ((Integer) aggregateResults.get(1)).intValue()); - assertEquals(numOfFemalesPerDept - 1, ((Integer) aggregateResults.get(2)).intValue()); - - i++; - } - - } - - private void verify(Ehcache cache, Query query, Integer... expectedKeys) { - Results results = query.execute(); - assertEquals(expectedKeys.length, results.size()); - if (expectedKeys.length == 0) { - assertFalse(results.hasKeys()); - } else { - assertTrue(results.hasKeys()); - } - assertFalse(results.hasAttributes()); - - Set keys = new HashSet(Arrays.asList(expectedKeys)); - - System.err.println(results.toString()); // call toString() just to make sure it doesn't blow up - - for (Result result : results.all()) { - System.err.println(result.toString()); // call toString() just to make sure it doesn't blow up - - int key = (Integer) result.getKey(); - if (!keys.remove(key)) { - throw new AssertionError("unexpected key: " + key); - } - } - } - - private void verifyOrdered(Ehcache cache, Query query, Integer... expectedKeys) { - Results results = query.execute(); - assertEquals(results.size(), expectedKeys.length); - - int pos = 0; - for (Result result : results.all()) { - Object expectedKey = expectedKeys[pos++]; - assertEquals(expectedKey, result.getKey()); - } - } - -} Index: rctags/ehcache-2.10.8.2.20/terracotta/bootstrap/src/main/java/org/terracotta/modules/ehcache/writebehind/operations/SingleAsyncOperation.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/terracotta/bootstrap/src/main/java/org/terracotta/modules/ehcache/writebehind/operations/SingleAsyncOperation.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/terracotta/bootstrap/src/main/java/org/terracotta/modules/ehcache/writebehind/operations/SingleAsyncOperation.java (revision 0) @@ -1,50 +0,0 @@ -/* - * All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. - */ -package org.terracotta.modules.ehcache.writebehind.operations; - -import net.sf.ehcache.Element; -import net.sf.ehcache.writer.CacheWriter; - -import java.io.IOException; -import java.io.Serializable; - -/** - * Interface to implement single operations that are performed in the write behind implementation that using an - * AsyncCoordinator underneath - * - * @author Abhishek Maheshwari - */ -public interface SingleAsyncOperation extends Serializable { - /** - * Perform this operation as a single execution with the provided cache writer - * - * @param cacheWriter the cache writer this operation should be performed upon - */ - public void performSingleOperation(CacheWriter cacheWriter) throws ClassNotFoundException, IOException; - - /** - * Retrieves the key for this operation. - * - * @return this operation's key - */ - Object getKey(); - - Element getElement(); - - /** - * Retrieves the moment when the operation was created. - * - * @return the creation time in milliseconds - */ - public long getCreationTime(); - - /** - * This method will be called to throw the item away. - * - * @param cacheWriter - * @param e - */ - void throwAwayElement(CacheWriter cacheWriter, RuntimeException e); - -} Index: rctags/ehcache-2.10.8.2.20/system-tests/src/test/resources/byteman/debugEhcacheTxnsState.btm =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/system-tests/src/test/resources/byteman/debugEhcacheTxnsState.btm (revision 11355) +++ rctags/ehcache-2.10.8.2.20/system-tests/src/test/resources/byteman/debugEhcacheTxnsState.btm (revision 0) @@ -1,44 +0,0 @@ - - -RULE trace EhcacheTxnsClusteredStateFacadeImpl getXATransactionDecision -CLASS EhcacheTxnsClusteredStateFacadeImpl -METHOD getXATransactionDecision -AT EXIT -IF true -DO traceln("[ehcache txns facade] getXATransactionDecision - key.hashCode(): " + $key.hashCode() + " returning:-> " + $!); -ENDRULE - -RULE trace EhcacheTxnsClusteredStateFacadeImpl updateXATransactionDecision -CLASS EhcacheTxnsClusteredStateFacadeImpl -METHOD updateXATransactionDecision -AT EXIT -IF true -DO traceln("[ehcache txns facade] updateXATransactionDecision - key.hashCode(): " + $key.hashCode() + ", newDecision: " + $newDecision); -ENDRULE - -RULE trace EhcacheTxnsClusteredStateFacadeImpl getSoftLockState -CLASS EhcacheTxnsClusteredStateFacadeImpl -METHOD getSoftLockState -AT EXIT -IF true -DO traceln("[ehcache txns facade] getSoftLockState - key.hashCode(): " + $key.hashCode() + " returning:-> " + $!); -ENDRULE - -RULE trace EhcacheTxnsClusteredStateFacadeImpl updateSoftLockState -CLASS EhcacheTxnsClusteredStateFacadeImpl -METHOD updateSoftLockState -AFTER INVOKE put -IF true -DO traceln("[ehcache txns facade] updateSoftLockState, after put - key.hashCode(): " + $key.hashCode() + ", newSoftLockState: " + $newSoftLockState); -AT EXIT -IF true -DO traceln("[ehcache txns facade] updateSoftLockState, returning for key.hashCode(): " + $key.hashCode() + " returning:-> " + $!); -ENDRULE - -RULE trace EhcacheTxnsClusteredStateFacadeImpl isExpired -CLASS EhcacheTxnsClusteredStateFacadeImpl -METHOD isExpired -AT EXIT -IF true -DO traceln("[ehcache txns facade] isExpired - softLockId.hashCode(): " + serializeToString($softLockId).hashCode() + " returning:-> " + $!); -ENDRULE Index: rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/modules/ehcache/lifecycle/CacheManagerDestroyCrashTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/modules/ehcache/lifecycle/CacheManagerDestroyCrashTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/system-tests/src/test/java/org/terracotta/modules/ehcache/lifecycle/CacheManagerDestroyCrashTest.java (revision 0) @@ -1,159 +0,0 @@ -/* - * All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. - */ -package org.terracotta.modules.ehcache.lifecycle; - -import net.sf.ehcache.Cache; -import net.sf.ehcache.Element; -import net.sf.ehcache.config.CacheConfiguration; -import net.sf.ehcache.config.Configuration; -import net.sf.ehcache.config.ConfigurationFactory; -import net.sf.ehcache.config.TerracottaConfiguration; - -import org.mockito.Mockito; -import org.objenesis.ObjenesisStd; -import org.terracotta.ehcache.tests.AbstractCacheTestBase; -import org.terracotta.ehcache.tests.ClientBase; -import org.terracotta.test.util.TestBaseUtil; -import org.terracotta.toolkit.Toolkit; - -import com.tc.test.config.model.TestConfig; -import com.terracotta.entity.ClusteredEntityManager; -import com.terracotta.entity.ehcache.ClusteredCacheManager; - -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; - -import static org.mockito.Matchers.any; -import static org.mockito.Mockito.doThrow; -import static org.mockito.Mockito.never; -import static org.mockito.Mockito.reset; -import static org.mockito.Mockito.spy; -import static org.mockito.Mockito.verify; - -public class CacheManagerDestroyCrashTest extends AbstractCacheTestBase { - private static final String CACHE_NAME = "cache1"; - - public CacheManagerDestroyCrashTest(TestConfig testConfig) { - super("lifecycle/cache-destroy.xml", testConfig, CacheManagerCreateClient.class, - CacheManagerEntityDestroyCrashClient.class); - } - - @Override - protected String createClassPath(Class client) throws IOException { - String classpath = super.createClassPath(client); - classpath = addToClasspath(classpath, TestBaseUtil.jarFor(Mockito.class)); - classpath = addToClasspath(classpath, TestBaseUtil.jarFor(ObjenesisStd.class)); - return classpath; - } - - public static class CacheManagerCreateClient extends ClientBase { - - public CacheManagerCreateClient(String[] mainArgs) { - super(mainArgs); - } - - @Override - protected void runTest(Cache cache, Toolkit myToolkit) throws Throwable { - - CacheConfiguration cacheConfig = new CacheConfiguration(CACHE_NAME, 100) - .terracotta(new TerracottaConfiguration()); - cacheManager.addCache(new Cache(cacheConfig)); - cache = cacheManager.getCache(CACHE_NAME); - cache.put(new Element("key", "value", true)); - - cacheManager.shutdown(); - - // Notify client to destroy - getBarrierForAllClients().await(10, TimeUnit.SECONDS); // hit 1 - - // Waiting for other client to signal destroy done - getBarrierForAllClients().await(1, TimeUnit.MINUTES); // hit 2 - - // Making sure adding back cache does not resurrect old data structures - setupCacheManager(); - cacheManager.addCache(new Cache(cacheConfig)); - cache = cacheManager.getCache(CACHE_NAME); - assertNull(cache.get("key")); - } - - @Override - protected Cache getCache() { - return null; - } - - } - - public static class CacheManagerEntityDestroyCrashClient extends ClientBase { - - public CacheManagerEntityDestroyCrashClient(String[] mainArgs) { - super(mainArgs); - } - - @Override - protected void runTest(Cache cache, Toolkit myToolkit) throws Throwable { - // Waiting for CM to be created - - waitForAllClients(); // hit 1 - - Toolkit spiedToolkit = spy(getClusteringToolkit()); - - ClusteredEntityManager clusteredEntityManager1 = new ClusteredEntityManager(spiedToolkit); - Configuration configuration = ConfigurationFactory.parseConfiguration(getEhcacheXmlAsStream()); - String cmName = configuration.getName(); - - Map cacheManagers = clusteredEntityManager1 - .getRootEntities(ClusteredCacheManager.class); - - ClusteredCacheManager clusteredCacheManager = cacheManagers.get(cmName); - - while(clusteredCacheManager.isUsed()) { - TimeUnit.MILLISECONDS.sleep(200); - } - - - doThrow(new TestDestroyCrashException("Crashing destroy")) - .when(spiedToolkit) - .getCache(any(String.class), any(org.terracotta.toolkit.config.Configuration.class), any(Class.class)); - try { - clusteredEntityManager1.destroyRootEntity(cmName, ClusteredCacheManager.class, clusteredCacheManager); - fail("Destroy should have thrown an exception"); - } catch(TestDestroyCrashException e) { - // Expected as we want destroy to crash - e.printStackTrace(); - } - reset(spiedToolkit); - - clusteredEntityManager1.getRootEntity(cmName, ClusteredCacheManager.class); - // Shows inline clean up performed - verify(spiedToolkit).getCache(any(String.class), any(org.terracotta.toolkit.config.Configuration.class), any(Class.class)); - - reset(spiedToolkit); - - ClusteredEntityManager clusteredEntityManager2 = new ClusteredEntityManager(spiedToolkit); - assertNull(clusteredEntityManager2.getRootEntity(cmName, ClusteredCacheManager.class)); - - verify(spiedToolkit, never()).getCache(any(String.class), any(org.terracotta.toolkit.config.Configuration.class), any(Class.class)); - - getBarrierForAllClients().await(10, TimeUnit.SECONDS); // hit 2 - } - - @Override - protected void setupCacheManager() { - // Do nothing here - } - - @Override - protected Cache getCache() { - // Do nothing here - return null; - } - } - - public static class TestDestroyCrashException extends RuntimeException { - public TestDestroyCrashException(String msg) { - super(msg); - } - } -} Index: rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v1/src/main/java/net/sf/ehcache/management/service/impl/CacheConfigurationEntityBuilder.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v1/src/main/java/net/sf/ehcache/management/service/impl/CacheConfigurationEntityBuilder.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/management-ehcache-impl/management-ehcache-impl-v1/src/main/java/net/sf/ehcache/management/service/impl/CacheConfigurationEntityBuilder.java (revision 0) @@ -1,73 +0,0 @@ -/* - * All content copyright (c) 2003-2012 Terracotta, Inc., except as may otherwise be noted in a separate copyright - * notice. All rights reserved. - */ -package net.sf.ehcache.management.service.impl; - -import net.sf.ehcache.management.resource.CacheConfigEntity; -import net.sf.ehcache.management.sampled.CacheManagerSampler; -import org.terracotta.management.resource.AgentEntity; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; - -/** - * @author brandony - */ -final class CacheConfigurationEntityBuilder { - - private final Map samplersByCName = new HashMap(); - - static CacheConfigurationEntityBuilder createWith(CacheManagerSampler sampler, - String cacheName) { - return new CacheConfigurationEntityBuilder(sampler, cacheName); - } - - private CacheConfigurationEntityBuilder(CacheManagerSampler sampler, - String cacheName) { - addSampler(sampler, cacheName); - } - - CacheConfigurationEntityBuilder add(CacheManagerSampler sampler, - String cacheName) { - addSampler(sampler, cacheName); - return this; - } - - Collection build() { - Collection cces = new ArrayList(); - - for (Map.Entry entry : samplersByCName.entrySet()) { - CacheConfigEntity cce = new CacheConfigEntity(); - - String cacheName = entry.getKey(); - cce.setCacheName(cacheName); - cce.setAgentId(AgentEntity.EMBEDDED_AGENT_ID); - cce.setVersion(this.getClass().getPackage().getImplementationVersion()); - - CacheManagerSampler sampler = entry.getValue(); - cce.setCacheManagerName(sampler.getName()); - cce.setXml(sampler.generateActiveConfigDeclaration(cacheName)); - - cces.add(cce); - } - - return cces; - } - - private void addSampler(CacheManagerSampler sampler, - String cacheName) { - if (sampler == null) throw new IllegalArgumentException("sampler == null"); - - if (cacheName == null) throw new IllegalArgumentException("cacheName == null"); - - if(!Arrays.asList(sampler.getCacheNames()).contains(cacheName)) { - throw new IllegalArgumentException(String.format("Invalid cache name: %s.", cacheName)); - } - - samplersByCName.put(cacheName, sampler); - } -} Index: rctags/ehcache-2.10.8.2.20/ehcache/src/test/java/net/sf/ehcache/terracotta/upgradability/serialization/NonEternalElementDataSerializationTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache/src/test/java/net/sf/ehcache/terracotta/upgradability/serialization/NonEternalElementDataSerializationTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache/src/test/java/net/sf/ehcache/terracotta/upgradability/serialization/NonEternalElementDataSerializationTest.java (revision 0) @@ -1,46 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package net.sf.ehcache.terracotta.upgradability.serialization; - -import java.io.IOException; -import java.util.Comparator; - -import net.sf.ehcache.Element; -import net.sf.ehcache.NonEternalElementData; -import org.junit.Test; - -import static org.terracotta.upgradability.serialization.SerializationUpgradabilityTesting.validateSerializedForm; - -/** - * - * @author cdennis - */ -public class NonEternalElementDataSerializationTest { - - private static final Comparator COMPARATOR = new Comparator() { - - @Override - public int compare(NonEternalElementData o1, NonEternalElementData o2) { - return ElementSerializationTest.COMPARATOR.compare(o1.createElement("foo"), o2.createElement("foo")); - } - }; - - @Test - public void testBasic() throws IOException, ClassNotFoundException { - validateSerializedForm(new NonEternalElementData(new Element("foo", "bar", 1000L, 2000L, 3000L, 4000L, false, 5000, 6000, 7000L)), COMPARATOR, "serializedforms/NonEternalElementDataSerializationTest.testBasic.ser"); - } -} Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/management/sampled/CacheManagerSampler.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/management/sampled/CacheManagerSampler.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/main/java/net/sf/ehcache/management/sampled/CacheManagerSampler.java (revision 0) @@ -1,334 +0,0 @@ -/** - * Copyright Terracotta, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package net.sf.ehcache.management.sampled; - -import java.util.Map; - -import net.sf.ehcache.util.ManagementAttribute; - -/** - * An abstraction for sampled cache manager usage statistics. - * - * @author Abhishek Sanoujam - * @author byoukste - */ -public interface CacheManagerSampler { - /** - * Gets the actual name of the cache manager. - */ - @ManagementAttribute - String getName(); - - /** - * Gets the cluster uuid if applicable. - * - * @return the cluster uuid - */ - @ManagementAttribute - String getClusterUUID(); - - /** - * Gets the status attribute of the Ehcache - * - * @return The status value, as a String from the Status enum class - */ - @ManagementAttribute - String getStatus(); - - /** - * Enables/disables each cache contained by this CacheManager - * - * @param enabled - */ - void setEnabled(boolean enabled); - - /** - * Returns if each cache is enabled. - * - * @return boolean indicating that each cache is enabled - */ - @ManagementAttribute - boolean isEnabled(); - - /** - * Shuts down the CacheManager. - *

- * If the shutdown occurs on the singleton, then the singleton is removed, so that if a singleton access method is called, a new - * singleton will be created. - */ - void shutdown(); - - /** - * Clears the contents of all caches in the CacheManager, but without - * removing any caches. - *

- * This method is not synchronized. It only guarantees to clear those elements in a cache at the time that the - * {@link net.sf.ehcache.Ehcache#removeAll()} mehod on each cache is called. - */ - void clearAll(); - - /** - * Gets the cache names managed by the CacheManager - */ - @ManagementAttribute - String[] getCacheNames() throws IllegalStateException; - - /** - * Get a map of cache name to performance metrics (hits, misses). - * - * @return a map of cache metrics - */ - Map getCacheMetrics(); - - /** - * @return aggregate hit rate - */ - long getCacheHitRate(); - - /** - * @return aggregate in-memory hit rate - */ - long getCacheInMemoryHitRate(); - - /** - * @return aggregate off-heap hit rate - */ - long getCacheOffHeapHitRate(); - - /** - * @return aggregate on-disk hit rate - */ - long getCacheOnDiskHitRate(); - - /** - * @return aggregate miss rate - */ - long getCacheMissRate(); - - /** - * @return aggregate in-memory miss rate - */ - long getCacheInMemoryMissRate(); - - /** - * @return aggregate off-heap miss rate - */ - long getCacheOffHeapMissRate(); - - /** - * @return aggregate on-disk miss rate - */ - long getCacheOnDiskMissRate(); - - /** - * @return aggregate put rate - */ - long getCachePutRate(); - - /** - * @return aggregate update rate - */ - long getCacheUpdateRate(); - - /** - * @return aggregate remove rate - */ - long getCacheRemoveRate(); - - /** - * @return aggregate eviction rate - */ - long getCacheEvictionRate(); - - /** - * @return aggregate expiration rate - */ - long getCacheExpirationRate(); - - /** - * @return aggregate average get time (ms.) - */ - float getCacheAverageGetTime(); - - /** - * @return if any contained caches are configured for search - */ - @ManagementAttribute - boolean getSearchable(); - - /** - * @return aggregate search rate - */ - long getCacheSearchRate(); - - /** - * @return aggregate search time - */ - long getCacheAverageSearchTime(); - - /** - * generateActiveConfigDeclaration - * - * @return CacheManager configuration as String - */ - String generateActiveConfigDeclaration(); - - /** - * generateActiveConfigDeclaration - * - * @param cacheName - * @return Cache configuration as String - */ - String generateActiveConfigDeclaration(String cacheName); - - /** - * Are any of the caches transactional - * - * @see net.sf.ehcache.config.CacheConfiguration.TransactionalMode - */ - @ManagementAttribute - boolean getTransactional(); - - /** - * Get the committed transactions count - * - * @return the committed transactions count - */ - long getTransactionCommittedCount(); - - /** - * @return aggregate Xa commit rate - */ - long getTransactionCommitRate(); - - /** - * Get the rolled back transactions count - * - * @return the rolled back transactions count - */ - long getTransactionRolledBackCount(); - - /** - * @return aggregate Xa rollback rate - */ - long getTransactionRollbackRate(); - - /** - * Get the timed out transactions count. Note that only transactions which failed to - * commit due to a timeout are taken into account - * - * @return the timed out transactions count - */ - long getTransactionTimedOutCount(); - - /** - * Returns whether any caches are configured for write-behind - */ - @ManagementAttribute - boolean getHasWriteBehindWriter(); - - /** - * Returns the total length of all write-behind queues across all caches - * - * @return aggregate writer-behind queue length - */ - long getWriterQueueLength(); - - /** - * Maximum elements that can be queued for processing by the write-behind writer - * - * @return aggregate of the maximum elements that can be waiting to be processed - * by the write-behind writer across all caches - */ - @ManagementAttribute - int getWriterMaxQueueSize(); - - /** - * Maximum number of bytes of entries in the disk stores of all caches that - * did not declare their own max size. - * - * @return maximum number of bytes in the disk stores of all caches that - * did not declare their own max size. - */ - @ManagementAttribute - long getMaxBytesLocalDisk(); - - /** - * @param maxBytes - */ - void setMaxBytesLocalDisk(long maxBytes); - - /** - * @param maxBytes - */ - void setMaxBytesLocalDiskAsString(String maxBytes); - - /** - * @return Original input for maxBytesLocalDisk - */ - @ManagementAttribute - String getMaxBytesLocalDiskAsString(); - - /** - * Maximum number of bytes of entries in the heap memory stores of all caches that - * did not declare their own max size. - * - * @return maximum number of bytes in the heap memory stores of all caches that - * did not declare their own max size. - */ - @ManagementAttribute - long getMaxBytesLocalHeap(); - - /** - * @return Original input for maxBytesLocalHeap - */ - @ManagementAttribute - String getMaxBytesLocalHeapAsString(); - - /** - * @param maxBytes - */ - void setMaxBytesLocalHeap(long maxBytes); - - /** - * @param maxBytes - */ - void setMaxBytesLocalHeapAsString(String maxBytes); - - /** - * Maximum number of bytes of entries in the off-heap stores of all caches that - * did not declare their own max size. - * - * @return maximum number of bytes in the off-heap stores of all caches that - * did not declare their own max size. - */ - @ManagementAttribute - long getMaxBytesLocalOffHeap(); - - /** - * @return Original input for maxBytesLocalOffHeap - */ - @ManagementAttribute - String getMaxBytesLocalOffHeapAsString(); - - /** - * Execute a BMSQL query against the CacheManager and return result grid. - * - * @param queryString - * @return query result grid - */ - Object[][] executeQuery(String queryString); -} Index: rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/store/LruMemoryStorePerfTest.java =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/store/LruMemoryStorePerfTest.java (revision 11355) +++ rctags/ehcache-2.10.8.2.20/ehcache-core/src/test/java/net/sf/ehcache/store/LruMemoryStorePerfTest.java (revision 0) @@ -1,31 +0,0 @@ -package net.sf.ehcache.store; - -import net.sf.ehcache.Cache; -import net.sf.ehcache.CacheException; -import net.sf.ehcache.MemoryStorePerfTester; -import org.junit.Test; - -/** - * @author Alex Snaps - */ -public class LruMemoryStorePerfTest extends MemoryStorePerfTester { - - @Override - protected Cache createCache() throws CacheException { - return new Cache("LruMemoryStorePerfTest", 12000, MemoryStoreEvictionPolicy.FIFO, false, System.getProperty("java.io.tmpdir"), - true, 60, 30, false, 60, null); - } - - /** - * Benchmark to test speed. This uses both memory and disk and tries to be realistic - * v 1.38 DiskStore 7355 - * v 1.41 DiskStore 1609 - * Adjusted for change to laptop - */ - @Test - public void testBenchmarkPutGetSurya() throws Exception { - benchmarkPutGetSuryaTest(2500); - } - - -} Index: rctags/ehcache-2.10.8.2.20/terracotta/.settings/org.eclipse.jdt.ui.prefs =================================================================== diff -u -N --- rctags/ehcache-2.10.8.2.20/terracotta/.settings/org.eclipse.jdt.ui.prefs (revision 11355) +++ rctags/ehcache-2.10.8.2.20/terracotta/.settings/org.eclipse.jdt.ui.prefs (revision 0) @@ -1,66 +0,0 @@ -eclipse.preferences.version=1 -editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true -formatter_profile=_Terracotta profile -formatter_settings_version=11 -org.eclipse.jdt.ui.exception.name=e -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=org;com;java;javax; -org.eclipse.jdt.ui.javadoc=false -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates=