Uses of Class
dev.getelements.elements.sdk.cluster.path.Path
Packages that use Path
Package
Description
-
Uses of Path in dev.getelements.elements.rt
Methods in dev.getelements.elements.rt that return PathModifier and TypeMethodDescriptionIndexContext.Listing.getPath()
ThePath
of the listing.ResourceService.Listing.getPath()
Returns thePath
of thisResourceService.Listing
SimpleIndexContextListing.getPath()
SimpleResourceServiceListing.getPath()
Methods in dev.getelements.elements.rt with parameters of type PathModifier and TypeMethodDescriptionAcquires aResource
guaranteeing 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
.void
ResourceService.addAndReleaseResource
(Path path, Resource resource) Adds aResource
to this resource service.default ResourceId
default void
ResourceContext.createAsync
(Consumer<ResourceId> success, Consumer<Throwable> failure, String module, Path path, Object... args) default ResourceId
ResourceContext.createAttributes
(String module, Path path, Attributes attributes, Object... args) SimpleResourceContext.createAttributes
(String module, Path path, Attributes attributes, Object... args) void
ResourceContext.createAttributesAsync
(Consumer<ResourceId> success, Consumer<Throwable> failure, String module, Path path, Attributes attributes, Object... args) Creates aResource
asynchronously.void
SimpleResourceContext.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 singleMonitor
for the suppliedResourceId
(for reading).WeakReferenceLockSetService.getPathReadMonitor
(Path path) LockSetService.getPathWriteMonitor
(Path path) Gets a singleMonitor
for the suppliedResourceId
(for writing).WeakReferenceLockSetService.getPathWriteMonitor
(Path path) default Object
ResourceContext.invokePath
(Path path, String method, Object... args) Synchronous invoke ofResourceContext.invokePathAsync(Consumer, Consumer, Path, String, Object...)
.void
ResourceContext.invokePathAsync
(Consumer<Object> success, Consumer<Throwable> failure, Path path, String method, Object... args) void
SimpleResourceContext.invokePathAsync
(Consumer<Object> success, Consumer<Throwable> failure, Path path, String method, Object... args) default void
IndexContext.link
(ResourceId resourceId, Path destination) Performs the operations ofIndexContext.linkAsync(ResourceId, Path, Consumer, Consumer)
synchronously.void
ResourceService.link
(ResourceId sourceResourceId, Path destination) Given the providedResourceId
, this will create an additional alias for the provided destinationPath
.void
IndexContext.linkAsync
(ResourceId resourceId, Path destination, Consumer<Void> success, Consumer<Throwable> failure) Links a singleResourceId
to aPath
destination.void
SimpleIndexContext.linkAsync
(ResourceId resourceId, Path destination, Consumer<Void> success, Consumer<Throwable> failure) default void
Performs the operationsIndexContext.linkPathAsync(Path, Path, Consumer, Consumer)
synchronously.void
void
IndexContext.linkPathAsync
(Path source, Path destination, Consumer<Void> success, Consumer<Throwable> failure) void
SimpleIndexContext.linkPathAsync
(Path source, Path destination, Consumer<Void> success, Consumer<Throwable> failure) default List
<IndexContext.Listing> Performs the operations ofIndexContext.listAsync(Path, Consumer, Consumer)
synchronously.void
IndexContext.listAsync
(Path path, Consumer<List<IndexContext.Listing>> success, Consumer<Throwable> failure) Fetches aIndexContext.Listing
of allPath
s and assocaitedResourceId
instances which match the providedPath
.void
SimpleIndexContext.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) void
default IndexContext.Unlink
Performs the operations ofIndexContext.unlinkAsync(Path, Consumer, Consumer)
synchronously.void
IndexContext.unlinkAsync
(Path path, Consumer<IndexContext.Unlink> success, Consumer<Throwable> failure) Unlinks the providedPath
and if this is the lastPath
reference to aResourceId
, then the cluster will remove and destroy the associatedResource
.void
SimpleIndexContext.unlinkAsync
(Path path, Consumer<IndexContext.Unlink> success, Consumer<Throwable> failure) default List
<ResourceService.Unlink> ResourceService.unlinkMultiple
(Path path, int max) Unlinks multipleResource
s.ResourceService.unlinkMultiple
(Path path, int max, Consumer<Resource> removed) Unlinks multipleResource
s.default ResourceService.Unlink
ResourceService.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 Monitor
LockSetService.getPathReadMonitor
(Collection<Path> paths) default Monitor
LockSetService.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 theResourceEntry
ResourceIndex.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) void
TransactionalResourceService.addAndReleaseResource
(Path path, Resource resource) void
PathIndex.applyChange
(Path path, String transactionId) Applies the change to theResourceIndex
according to the supplied transaction ID.void
TransactionJournal.MutableEntry.applyChangeToResourceReversePaths
(Path path) Logs the suppliedPath
as having been flushed.void
Cleans up whatever may have been left behind by a partial transaction.default boolean
ResourceEntry.OperationalStrategy.doLink
(ResourceEntry entry, Path toLink) Specifies how theResourceEntry
unlinks from the whole view of the snapshot.default boolean
ResourceEntry.OperationalStrategy.doUnlink
(ResourceEntry entry, Path toUnlink) Specifies how theResourceEntry
unlinks from the whole view of the snapshot.default Optional
<ResourceEntry> Loads theResourceEntry
from the suppliedPath
.PathIndex.findEntry
(Path path, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Loads theResourceEntry
from the suppliedPath
.Snapshot.findResourceEntry
(Path path) Finds theResourceEntry
at the supplied path.StandardSnapshot.findResourceEntry
(Path path) default Optional
<ResourceId> PathIndex.findResourceId
(Path path) Gets theResourceId
for the supplied path.default ResourceEntry
Snapshot.getResourceEntry
(Path path) Gets theResourceEntry
or throws an instance ofSnapshotMissException
.ReadOnlyTransaction.getResourceId
(Path path) Gets theResourceId
associated with the givenPath
.boolean
boolean
Links thisResourceEntry
for the suppliedPath
.void
TransactionalResourceService.link
(ResourceId sourceResourceId, Path destination) void
ReadWriteTransaction.linkExistingResource
(ResourceId sourceResourceId, Path destination) Links an existingResourceId
to a newPath
, throwing an instance ofResourceNotFoundException
if theResourceId
is not known or throwing an instance ofDuplicateException
if the suppliedPath
exists.void
ReadWriteTransaction.linkNewResource
(ResourceId resourceId, Path path) Creates a link betweeen aPath
andResourceId
, provided that neither already exist.void
Lists all associations betweenPath
andResourceId
s.Returns aStream<ResourceService.Listing>
of all instances reading the current stream.List allResourceEntry
instances matching thePath
.TransactionalResourceService.listStream
(Path path) ReadWriteTransaction.removeResources
(Path path, int max) Removes multipleResourceId
s associated with the suppliedPath
, if the associatedResourceId
is linked by no otherPath
s, then this method will also delete theResourceId
s associated with thsPath
.TransactionalResourceService.removeResources
(Path path, int max, Consumer<Resource> removed) ReadWriteTransaction.saveNewResource
(Path path, ResourceId resourceId) boolean
boolean
Unlinks thisResourceEntry
for the suppliedPath
.TransactionalResourceService.unlinkMultiple
(Path path, int max, Consumer<Resource> removed) ReadWriteTransaction.unlinkPath
(Path path) Unlinks the suppliedPath
, if the associatedResourceId
is linked by no otherPath
s, then this method will also delete theResourceId
associated 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 instancePath
or throws an instance ofUnixFSProgramCorruptionException
if the type is not properly matched.protected Path
UnixFSTransactionParameter.Type.asRTPath
(UnixFSTransactionParameter unixFSTransactionParameter) UnixFSPathMapping.getPath()
Returns thePath
representing 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 aPath
parameter.void
UnixFSPathIndex.applyChange
(Path path, String transactionId) void
UnixFSTransactionCommitExecutionHandler.applyPathChange
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) default void
UnixFSTransactionProgramInterpreter.ExecutionHandler.applyPathChange
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Applies the suppliedPath
change.UnixFSTransactionProgramBuilder.applyReversePathChangeToResource
(UnixFSTransactionProgramExecutionPhase executionPhase, Path path) Applies the changes for the suppliedPath
to the data store.void
default void
UnixFSTransactionProgramInterpreter.ExecutionHandler.cleanupPath
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Cleans up thePath
resources associated with the transaction.void
UnixFSTransactionRollbackExecutionHandler.cleanupPath
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) UnixFSTransactionProgramBuilder.cleanupResource
(UnixFSTransactionProgramExecutionPhase executionPhase, Path path) Cleans up the suppliedPath
changes from the data store.UnixFSPathIndex.findEntry
(Path path, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) static UnixFSPathMapping
UnixFSPathMapping.fromRTPath
(UnixFSUtils utils, Path rtPath) Creates aUnixFSPathMapping
with the supplied information which resolves a particularPath
to aPath
mapping. -
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_FIRST
Static instance ofPaths.WildcardFirst
static Comparator
<Path> Paths.WILDCARD_LAST
Static instance ofPaths.WildcardLast
Methods 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 Path
Path.formatPath
(String fmt, Object... fmtArgs) Formats aPath
.static Path
Path.fromByteBuffer
(ByteBuffer byteBuffer) Gets a path from aByteBuffer
static Path
Path.fromBytes
(byte[] pathBytes) Converts the supplied byte array representation to aPath
static Path
Path.fromComponents
(String... components) Converts the supplied components to aPath
.static Path
Path.fromContextAndComponents
(HasNodeId hasNodeId, String... components) Gets the aPath
from the supplied context and components.static Path
Path.fromContextAndComponents
(String context, String... components) Gets the aPath
from the supplied context and components.static Path
Path.fromPathString
(String pathString) Converts the supplied string representation of hePath
usingPATH_SEPARATOR
as the separator.static Path
Path.fromPathString
(String pathString, String pathSeparator) Converts the supplied string representation of hePath
with the supplied separator string.ParameterizedPath.getRaw()
Gets the underlying rawPath
instance.Path.parent()
static Path
Paths.randomPath()
Generates a randomPath
.static Path
Paths.randomPath
(long seed) Generates a randomPath
.static Path
Paths.randomPath
(Random random, String letters, int maxComponents, int maxComponentLength) Generates a randomPath
.Resolves all parameters in thisParameterizedPath
with the supplied mapping of parameters.Path.stripWildcard
(int wildcardIndex) Returns a newPath
which strips all components up to the wildcard index.Path.stripWildcardRecursive()
Returns thisPath
as 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 aPath
which is a recursive wildcard if this instance is not a recursive wildcard.static Path
Implements 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/otherPathint
int
Paths.iterateIntermediateHierarchy
(Path path) Iterates the supplied path descending into its hierarchy.boolean
Checks if thisParameterizedPath
matches the suppliedPath
.boolean
Checks if this path matches the other path.static boolean
Checks if two paths match.Constructors in dev.getelements.elements.sdk.cluster.path with parameters of type PathModifierConstructorDescriptionParameterizedPath
(Path raw) Creates a newParameterizedPath
instance from the suppliedPath
Creates aPath
with 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)