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
ConstructorDescriptionJCloudsVirtualFile
(BlobStoreProvider provider, String container, String key) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canRead()
static boolean
delete
(BlobStoreProvider provider, org.jclouds.blobstore.BlobStore blobStore, String prefix) Delete all blobs starting with a given prefix.boolean
exists()
getName()
Returns the base nameboolean
boolean
isFile()
long
long
length()
list()
open()
<V> V
run
(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:
getName
in classVirtualFile
-
toURI
- Specified by:
toURI
in classVirtualFile
-
toExternalURL
- Overrides:
toExternalURL
in classVirtualFile
- Throws:
IOException
-
getParent
- Specified by:
getParent
in classVirtualFile
-
isDirectory
- Specified by:
isDirectory
in classVirtualFile
- Throws:
IOException
-
isFile
- Specified by:
isFile
in classVirtualFile
- Throws:
IOException
-
exists
- Specified by:
exists
in classVirtualFile
- Throws:
IOException
-
list
- Specified by:
list
in classVirtualFile
- Throws:
IOException
-
child
- Specified by:
child
in classVirtualFile
-
length
- Specified by:
length
in classVirtualFile
- Throws:
IOException
-
lastModified
- Specified by:
lastModified
in classVirtualFile
- Throws:
IOException
-
canRead
- Specified by:
canRead
in classVirtualFile
- Throws:
IOException
-
open
- Specified by:
open
in classVirtualFile
- Throws:
IOException
-
run
- Overrides:
run
in 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:
IOException
InterruptedException
-