public abstract class MakeNextDirectory extends Object
Constructor and Description |
---|
MakeNextDirectory() |
Modifier and Type | Method and Description |
---|---|
abstract List<String> |
getPathFor(long index)
Get the subdirectories to create for the given index,
the first directories to be created corresponding to
index == 0 . |
abstract boolean |
isAcceptable(List<String> path)
If the circumstances (filesystem, etc.) are such that it is okay to use the given subdirectories.
|
List<String> |
useFirstAcceptable()
Use the first acceptable path (that with the lowest
index for getPathFor(long) )
and return the corresponding subdirectories. |
abstract void |
usePath(List<String> path)
Actually use the path.
|
public abstract List<String> getPathFor(long index)
index == 0
.index
- a non-negative indexpublic abstract boolean isAcceptable(List<String> path) throws omero.ServerError
path
- the subdirectories to possibly useomero.ServerError
- if the path could not be testedpublic abstract void usePath(List<String> path) throws omero.ServerError
path
- the subdirectories to useomero.ServerError
- if the path could not be usedpublic List<String> useFirstAcceptable() throws omero.ServerError
index
for getPathFor(long)
)
and return the corresponding subdirectories.omero.ServerError
- if the first acceptable path could not be found or used
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.