- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for fileAccess (0.2 sec)
-
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileAccess.java
*/ package org.gradle.cache; import java.util.concurrent.Callable; import java.util.function.Supplier; /** * Provides synchronization with other processes for a particular file. */ public interface FileAccess { /** * Runs the given action under a shared or exclusive lock on the target file. * * @throws LockTimeoutException On timeout acquiring lock, if required.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 3.6K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/MultiProcessSafeIndexedCacheTest.groovy
* limitations under the License. */ package org.gradle.cache.internal import org.gradle.cache.FileAccess import org.gradle.cache.internal.btree.BTreePersistentIndexedCache import spock.lang.Specification import java.util.function.Supplier class MultiProcessSafeIndexedCacheTest extends Specification { final FileAccess fileAccess = Mock() final Supplier<BTreePersistentIndexedCache<String, String>> factory = Mock()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FileBackedObjectHolderTest.groovy
final FileAccess fileAccess = Mock() final Chmod chmod = Mock() final File file = tmpDir.file("state.bin") final FileBackedObjectHolder<String> cache = createStateCache(fileAccess) private FileBackedObjectHolder createStateCache(FileAccess fileAccess, File file = file, Serializer serializer = new DefaultSerializer()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultMultiProcessSafeIndexedCache.java
private final FileAccess fileAccess; private final Supplier<BTreePersistentIndexedCache<K, V>> factory; private BTreePersistentIndexedCache<K, V> cache; public DefaultMultiProcessSafeIndexedCache(Supplier<BTreePersistentIndexedCache<K, V>> factory, FileAccess fileAccess) { this.factory = factory; this.fileAccess = fileAccess; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FileBackedObjectHolder.java
private final FileAccess fileAccess; private final Serializer<T> serializer; private final Chmod chmod; private final File cacheFile; public FileBackedObjectHolder(File cacheFile, FileAccess fileAccess, Serializer<T> serializer, Chmod chmod) { this.cacheFile = cacheFile; this.fileAccess = fileAccess; this.serializer = serializer; this.chmod = chmod;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 4.7K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/AbstractFileAccess.java
package org.gradle.cache.internal; import org.gradle.cache.FileAccess; import org.gradle.cache.FileIntegrityViolationException; import org.gradle.cache.LockTimeoutException; import java.util.concurrent.Callable; import java.util.function.Supplier; import static org.gradle.internal.UncheckedException.uncheckedCall; public abstract class AbstractFileAccess implements FileAccess { @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 1.2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCoordinator.java
private final String cacheDisplayName; private final File baseDir; private final CacheCleanupExecutor cleanupAction; private final ExecutorFactory executorFactory; private final FileAccess fileAccess; private final Map<String, IndexedCacheEntry<?, ?>> caches = new HashMap<>(); private final AbstractCrossProcessCacheAccess crossProcessCacheAccess; private final CacheAccessOperationsStack operations;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 01 12:21:15 UTC 2024 - 20.5K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/AbstractUndeclaredBuildInputsIntegrationTest.groovy
Assume.assumeFalse("cannot use the file APIs in restricted DSL", isRestrictedDsl()) def configurationCache = newConfigurationCacheFixture() UndeclaredFileAccess access = fileAccess(testDirectory) buildLogicApplication(access) def accessedFile = new File(access.filePath) when: "an empty directory used in configuration is created" assert accessedFile.mkdirs()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 13.4K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/cache/internal/DefaultFileLockManagerTestHelper.groovy
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.cache.internal import org.gradle.cache.FileAccess import org.gradle.cache.FileIntegrityViolationException import org.gradle.cache.FileLock import org.gradle.cache.FileLockManager import org.gradle.cache.internal.filelock.DefaultLockOptions
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:52:52 UTC 2024 - 2.9K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/OnDemandFileAccessTest.groovy
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.cache.internal import org.gradle.cache.FileAccess import org.gradle.cache.FileLock import org.gradle.cache.FileLockManager import org.gradle.cache.FileLockManager.LockMode import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider import org.junit.Rule
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 3.3K bytes - Viewed (0)