Class JCloudsVirtualFile
java.lang.Object
jenkins.util.VirtualFile
io.jenkins.plugins.artifact_manager_jclouds.JCloudsVirtualFile
- All Implemented Interfaces:
Serializable,Comparable<VirtualFile>
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class JCloudsVirtualFile
extends VirtualFile
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJCloudsVirtualFile(BlobStoreProvider provider, String container, String key) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead()static booleandelete(BlobStoreProvider provider, org.jclouds.blobstore.BlobStore blobStore, String prefix) Delete all blobs starting with a given prefix.booleanexists()getName()Returns the base namebooleanbooleanisFile()longlonglength()list()open()<V> Vrun(hudson.remoting.Callable<V, IOException> callable) toURI()Methods inherited from class jenkins.util.VirtualFile
compareTo, containsSymLinkChild, containsTmpDirChild, equals, forFile, forFilePath, hashCode, hasSymlink, isDescendant, list, list, list, list, listOnlyDescendants, mode, open, readLink, supportIsDescendant, supportsQuickRecursiveListing, toString, zip
-
Constructor Details
-
JCloudsVirtualFile
public JCloudsVirtualFile(@NonNull BlobStoreProvider provider, @NonNull String container, @NonNull String key)
-
-
Method Details
-
getName
Returns the base name- Specified by:
getNamein classVirtualFile
-
toURI
- Specified by:
toURIin classVirtualFile
-
toExternalURL
- Overrides:
toExternalURLin classVirtualFile- Throws:
IOException
-
getParent
- Specified by:
getParentin classVirtualFile
-
isDirectory
- Specified by:
isDirectoryin classVirtualFile- Throws:
IOException
-
isFile
- Specified by:
isFilein classVirtualFile- Throws:
IOException
-
exists
- Specified by:
existsin classVirtualFile- Throws:
IOException
-
list
- Specified by:
listin classVirtualFile- Throws:
IOException
-
child
- Specified by:
childin classVirtualFile
-
length
- Specified by:
lengthin classVirtualFile- Throws:
IOException
-
lastModified
- Specified by:
lastModifiedin classVirtualFile- Throws:
IOException
-
canRead
- Specified by:
canReadin classVirtualFile- Throws:
IOException
-
open
- Specified by:
openin classVirtualFile- Throws:
IOException
-
run
- Overrides:
runin classVirtualFile- Throws:
IOException
-
delete
public static boolean delete(BlobStoreProvider provider, org.jclouds.blobstore.BlobStore blobStore, String prefix) throws IOException, InterruptedException Delete all blobs starting with a given prefix.- Throws:
IOExceptionInterruptedException
-