Uses of Class
dev.getelements.elements.sdk.cluster.path.Path
Packages that use Path
Package
Description
-
Uses of Path in dev.getelements.elements.dao.mongo
Methods in dev.getelements.elements.dao.mongo with parameters of type PathModifier and TypeMethodDescriptionprotected IndexMetadata<org.bson.Document> MongoIndexable.generate(Path path, MetadataSpecProperty metadataSpecProperty) Generates the index metadata for the given path and metadata spec property. -
Uses of Path in dev.getelements.elements.rt
Methods in dev.getelements.elements.rt that return PathModifier and TypeMethodDescriptionIndexContext.Listing.getPath()ThePathof the listing.ResourceService.Listing.getPath()Returns thePathof thisResourceService.ListingSimpleIndexContextListing.getPath()SimpleResourceServiceListing.getPath()Methods in dev.getelements.elements.rt with parameters of type PathModifier and TypeMethodDescriptionAcquires aResourceguaranteeing it will remain in-memory until the resource is released.ResourceService.acquireWithTransaction(Path path) Opens aResourceService.ResourceTransaction.ResourceService.addAndAcquireResource(Path path, Resource resource) Adds an acquires thisResource.voidResourceService.addAndReleaseResource(Path path, Resource resource) Adds aResourceto this resource service.default ResourceIddefault voidResourceContext.createAsync(Consumer<ResourceId> success, Consumer<Throwable> failure, String module, Path path, Object... args) default ResourceIdResourceContext.createAttributes(String module, Path path, Attributes attributes, Object... args) SimpleResourceContext.createAttributes(String module, Path path, Attributes attributes, Object... args) voidResourceContext.createAttributesAsync(Consumer<ResourceId> success, Consumer<Throwable> failure, String module, Path path, Attributes attributes, Object... args) Creates aResourceasynchronously.voidSimpleResourceContext.createAttributesAsync(Consumer<ResourceId> success, Consumer<Throwable> failure, String module, Path path, Attributes attributes, Object... args) default List<ResourceId> ResourceService.destroyResources(Path path, int max) LockSetService.getPathReadMonitor(Path path) Gets a singleMonitorfor the suppliedResourceId(for reading).WeakReferenceLockSetService.getPathReadMonitor(Path path) LockSetService.getPathWriteMonitor(Path path) Gets a singleMonitorfor the suppliedResourceId(for writing).WeakReferenceLockSetService.getPathWriteMonitor(Path path) default ObjectResourceContext.invokePath(Path path, String method, Object... args) Synchronous invoke ofResourceContext.invokePathAsync(Consumer, Consumer, Path, String, Object...).voidResourceContext.invokePathAsync(Consumer<Object> success, Consumer<Throwable> failure, Path path, String method, Object... args) voidSimpleResourceContext.invokePathAsync(Consumer<Object> success, Consumer<Throwable> failure, Path path, String method, Object... args) default voidIndexContext.link(ResourceId resourceId, Path destination) Performs the operations ofIndexContext.linkAsync(ResourceId, Path, Consumer, Consumer)synchronously.voidResourceService.link(ResourceId sourceResourceId, Path destination) Given the providedResourceId, this will create an additional alias for the provided destinationPath.voidIndexContext.linkAsync(ResourceId resourceId, Path destination, Consumer<Void> success, Consumer<Throwable> failure) Links a singleResourceIdto aPathdestination.voidSimpleIndexContext.linkAsync(ResourceId resourceId, Path destination, Consumer<Void> success, Consumer<Throwable> failure) default voidPerforms the operationsIndexContext.linkPathAsync(Path, Path, Consumer, Consumer)synchronously.voidvoidIndexContext.linkPathAsync(Path source, Path destination, Consumer<Void> success, Consumer<Throwable> failure) voidSimpleIndexContext.linkPathAsync(Path source, Path destination, Consumer<Void> success, Consumer<Throwable> failure) default List<IndexContext.Listing> Performs the operations ofIndexContext.listAsync(Path, Consumer, Consumer)synchronously.voidIndexContext.listAsync(Path path, Consumer<List<IndexContext.Listing>> success, Consumer<Throwable> failure) Fetches aIndexContext.Listingof allPaths and assocaitedResourceIdinstances which match the providedPath.voidSimpleIndexContext.listAsync(Path path, Consumer<List<IndexContext.Listing>> success, Consumer<Throwable> failure) ResourceService.listStream(Path path) Returns aStream<ResourceId>matching the providedPath.<T> Future<T> Scheduler.perform(Path path, Function<ResourceService.ResourceTransaction, T> operation, Consumer<Throwable> failure) Performs an action against the resource with the providedResourceId<T> Future<T> SimpleScheduler.perform(Path path, Function<ResourceService.ResourceTransaction, T> operation, Consumer<Throwable> failure) Scheduler.performV(Path path, Consumer<ResourceService.ResourceTransaction> operation, Consumer<Throwable> failure) Performs an action against the resource with the providedPath.default List<ResourceId> ResourceService.removeResources(Path path, int max) ResourceService.removeResources(Path path, int max, Consumer<Resource> removed) Scheduler.scheduleUnlink(Path path, long delay, TimeUnit timeUnit) Provided thePath, this will schedule an unlink operation at some point in the near future, but not before the delay time specified in the parameters of this method.SimpleScheduler.scheduleUnlink(Path path, long delay, TimeUnit timeUnit) voiddefault IndexContext.UnlinkPerforms the operations ofIndexContext.unlinkAsync(Path, Consumer, Consumer)synchronously.voidIndexContext.unlinkAsync(Path path, Consumer<IndexContext.Unlink> success, Consumer<Throwable> failure) Unlinks the providedPathand if this is the lastPathreference to aResourceId, then the cluster will remove and destroy the associatedResource.voidSimpleIndexContext.unlinkAsync(Path path, Consumer<IndexContext.Unlink> success, Consumer<Throwable> failure) default List<ResourceService.Unlink> ResourceService.unlinkMultiple(Path path, int max) Unlinks multipleResources.ResourceService.unlinkMultiple(Path path, int max, Consumer<Resource> removed) Unlinks multipleResources.default ResourceService.UnlinkResourceService.unlinkPath(Path path) Similar toResourceService.unlinkPath(Path, Consumer), however, this assumes that the final action should remove and destroy the associatedResource.ResourceService.unlinkPath(Path path, Consumer<Resource> removed) Method parameters in dev.getelements.elements.rt with type arguments of type PathModifier and TypeMethodDescriptiondefault MonitorLockSetService.getPathReadMonitor(Collection<Path> paths) default MonitorLockSetService.getPathWriteMonitor(Collection<Path> paths) -
Uses of Path in dev.getelements.elements.rt.transact
Methods in dev.getelements.elements.rt.transact that return PathModifier and TypeMethodDescriptionPathIndex.Listing.getPath()Gets the actual path matched in the hierarchy.Methods in dev.getelements.elements.rt.transact that return types with arguments of type PathModifier and TypeMethodDescriptionResourceEntry.OperationalStrategy.doGetReversePathsImmutable(ResourceEntry entry) Gets the immutable reverse links from theResourceEntryResourceIndex.findReversePaths(ResourceId resourceId) Finds reverse paths for theResourceId.ResourceEntry.getOriginalReversePathsImmutable()Gets the internal immutable list of reverse links.AbstractResourceEntry.getReversePathsImmutable()ResourceEntry.getReversePathsImmutable()Gets the internal immutable list of reverse links.Methods in dev.getelements.elements.rt.transact with parameters of type PathModifier and TypeMethodDescriptionTransactionalResourceService.acquireWithTransaction(Path path) TransactionalResourceService.addAndAcquireResource(Path path, Resource resource) voidTransactionalResourceService.addAndReleaseResource(Path path, Resource resource) voidPathIndex.applyChange(Path path, String transactionId) Applies the change to theResourceIndexaccording to the supplied transaction ID.voidTransactionJournal.MutableEntry.applyChangeToResourceReversePaths(Path path) Logs the suppliedPathas having been flushed.voidCleans up whatever may have been left behind by a partial transaction.default booleanResourceEntry.OperationalStrategy.doLink(ResourceEntry entry, Path toLink) Specifies how theResourceEntryunlinks from the whole view of the snapshot.default booleanResourceEntry.OperationalStrategy.doUnlink(ResourceEntry entry, Path toUnlink) Specifies how theResourceEntryunlinks from the whole view of the snapshot.default Optional<ResourceEntry> Loads theResourceEntryfrom the suppliedPath.PathIndex.findEntry(Path path, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Loads theResourceEntryfrom the suppliedPath.Snapshot.findResourceEntry(Path path) Finds theResourceEntryat the supplied path.StandardSnapshot.findResourceEntry(Path path) default Optional<ResourceId> PathIndex.findResourceId(Path path) Gets theResourceIdfor the supplied path.default ResourceEntrySnapshot.getResourceEntry(Path path) Gets theResourceEntryor throws an instance ofSnapshotMissException.ReadOnlyTransaction.getResourceId(Path path) Gets theResourceIdassociated with the givenPath.booleanbooleanLinks thisResourceEntryfor the suppliedPath.voidTransactionalResourceService.link(ResourceId sourceResourceId, Path destination) voidReadWriteTransaction.linkExistingResource(ResourceId sourceResourceId, Path destination) Links an existingResourceIdto a newPath, throwing an instance ofResourceNotFoundExceptionif theResourceIdis not known or throwing an instance ofDuplicateExceptionif the suppliedPathexists.voidReadWriteTransaction.linkNewResource(ResourceId resourceId, Path path) Creates a link betweeen aPathandResourceId, provided that neither already exist.voidLists all associations betweenPathandResourceIds.Returns aStream<ResourceService.Listing>of all instances reading the current stream.List allResourceEntryinstances matching thePath.TransactionalResourceService.listStream(Path path) ReadWriteTransaction.removeResources(Path path, int max) Removes multipleResourceIds associated with the suppliedPath, if the associatedResourceIdis linked by no otherPaths, then this method will also delete theResourceIds associated with thsPath.TransactionalResourceService.removeResources(Path path, int max, Consumer<Resource> removed) ReadWriteTransaction.saveNewResource(Path path, ResourceId resourceId) booleanbooleanUnlinks thisResourceEntryfor the suppliedPath.TransactionalResourceService.unlinkMultiple(Path path, int max, Consumer<Resource> removed) ReadWriteTransaction.unlinkPath(Path path) Unlinks the suppliedPath, if the associatedResourceIdis linked by no otherPaths, then this method will also delete theResourceIdassociated with it.TransactionalResourceService.unlinkPath(Path path, Consumer<Resource> removed) Method parameters in dev.getelements.elements.rt.transact with type arguments of type PathModifier and TypeMethodDescriptionStandardSnapshotBuilder.doBuild(Function<SortedSet<Path>, Monitor> pathMonitorSupplier, Function<SortedSet<ResourceId>, Monitor> resourceIdMonitorSupplier) default ReadOnlyTransaction.Builder<TransactionT> Constructors in dev.getelements.elements.rt.transact with parameters of type Path -
Uses of Path in dev.getelements.elements.rt.transact.unix
Methods in dev.getelements.elements.rt.transact.unix that return PathModifier and TypeMethodDescriptionUnixFSTransactionParameter.asRTPath()Returns this parameter as an instancePathor throws an instance ofUnixFSProgramCorruptionExceptionif the type is not properly matched.protected PathUnixFSTransactionParameter.Type.asRTPath(UnixFSTransactionParameter unixFSTransactionParameter) UnixFSPathMapping.getPath()Returns thePathrepresenting the symbolic path.Methods in dev.getelements.elements.rt.transact.unix that return types with arguments of type PathMethods in dev.getelements.elements.rt.transact.unix with parameters of type PathModifier and TypeMethodDescriptionUnixFSTransactionCommand.Builder.addRTPathParameter(Path path) Appends aPathparameter.voidUnixFSPathIndex.applyChange(Path path, String transactionId) voidUnixFSTransactionCommitExecutionHandler.applyPathChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) default voidUnixFSTransactionProgramInterpreter.ExecutionHandler.applyPathChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Applies the suppliedPathchange.UnixFSTransactionProgramBuilder.applyReversePathChangeToResource(UnixFSTransactionProgramExecutionPhase executionPhase, Path path) Applies the changes for the suppliedPathto the data store.voiddefault voidUnixFSTransactionProgramInterpreter.ExecutionHandler.cleanupPath(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Cleans up thePathresources associated with the transaction.voidUnixFSTransactionRollbackExecutionHandler.cleanupPath(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) UnixFSTransactionProgramBuilder.cleanupResource(UnixFSTransactionProgramExecutionPhase executionPhase, Path path) Cleans up the suppliedPathchanges from the data store.UnixFSPathIndex.findEntry(Path path, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) static UnixFSPathMappingUnixFSPathMapping.fromRTPath(UnixFSUtils utils, Path rtPath) Creates aUnixFSPathMappingwith the supplied information which resolves a particularPathto aPathmapping. -
Uses of Path in dev.getelements.elements.sdk.cluster.path
Fields in dev.getelements.elements.sdk.cluster.path with type parameters of type PathModifier and TypeFieldDescriptionstatic Comparator<Path> Paths.WILDCARD_FIRSTStatic instance ofPaths.WildcardFirststatic Comparator<Path> Paths.WILDCARD_LASTStatic instance ofPaths.WildcardLastMethods in dev.getelements.elements.sdk.cluster.path that return PathModifier and TypeMethodDescriptionAppends the following path to this path such that the final path is expressed as follows: newPath = this/otherPathPath.appendComponents(String first) Appends components to the path and returns a newPath.Path.appendComponents(String first, String... subsequent) Appends components to the path and returns a newPath.Path.appendExtension(String extension) Appends an extension using theEXTENSION_SEPARATOR.Path.appendExtension(String extension, String pathSeparator) Appends an extension to thisPath, using the supplied separator.Path.appendIfWildcard(Supplier<String> stringSupplier) Appends a single component if this path ends in a wildcard or recursive wildcard, then this method will return a new Path with the result of theSupplier.Path.appendUUIDIfWildcard()Appends a UUID component if this path is a wildcard path.Path.contextRootPath()Returns the root path of this one, preserving context.static PathPath.formatPath(String fmt, Object... fmtArgs) Formats aPath.static PathPath.fromByteBuffer(ByteBuffer byteBuffer) Gets a path from aByteBufferstatic PathPath.fromBytes(byte[] pathBytes) Converts the supplied byte array representation to aPathstatic PathPath.fromComponents(String... components) Converts the supplied components to aPath.static PathPath.fromContextAndComponents(HasNodeId hasNodeId, String... components) Gets the aPathfrom the supplied context and components.static PathPath.fromContextAndComponents(String context, String... components) Gets the aPathfrom the supplied context and components.static PathPath.fromPathString(String pathString) Converts the supplied string representation of hePathusingPATH_SEPARATORas the separator.static PathPath.fromPathString(String pathString, String pathSeparator) Converts the supplied string representation of hePathwith the supplied separator string.ParameterizedPath.getRaw()Gets the underlying rawPathinstance.Path.parent()static PathPaths.randomPath()Generates a randomPath.static PathPaths.randomPath(long seed) Generates a randomPath.static PathPaths.randomPath(Random random, String letters, int maxComponents, int maxComponentLength) Generates a randomPath.Resolves all parameters in thisParameterizedPathwith the supplied mapping of parameters.Path.stripWildcard(int wildcardIndex) Returns a newPathwhich strips all components up to the wildcard index.Path.stripWildcardRecursive()Returns thisPathas a non-wildcard path.Path.toPathWithContext(String newContext) Returns a Path which will have the context specified.Path.toPathWithContextIfAbsent(HasNodeId hasNodeId) Returns a Path which will have the context specified.Path.toPathWithContextIfAbsent(String newContext) Returns a Path which will have the context specified.Path.toPathWithNodeId(HasNodeId hasNodeId) Path.toPathWithoutContext()Returns a Path without any context.Path.toWildcardRecursive()Returns aPathwhich is a recursive wildcard if this instance is not a recursive wildcard.static PathImplements the conventional valueOf method by invokingPath(java.lang.String).Methods in dev.getelements.elements.sdk.cluster.path that return types with arguments of type PathModifier and TypeMethodDescriptionPaths.iterateIntermediateHierarchy(Path path) Iterates the supplied path descending into its hierarchy.Methods in dev.getelements.elements.sdk.cluster.path with parameters of type PathModifier and TypeMethodDescriptionAppends the following path to this path such that the final path is expressed as follows: newPath = this/otherPathintintPaths.iterateIntermediateHierarchy(Path path) Iterates the supplied path descending into its hierarchy.booleanChecks if thisParameterizedPathmatches the suppliedPath.booleanChecks if this path matches the other path.static booleanChecks if two paths match.Constructors in dev.getelements.elements.sdk.cluster.path with parameters of type PathModifierConstructorDescriptionParameterizedPath(Path raw) Creates a newParameterizedPathinstance from the suppliedPathCreates aPathwith the path relative to the given path. -
Uses of Path in dev.getelements.elements.sdk.dao.index
Methods in dev.getelements.elements.sdk.dao.index with parameters of type PathModifier and TypeMethodDescriptionIndexPlanner.IndexMetadataGenerator.generate(Path path, MetadataSpecProperty field)