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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JCloudsVirtualFile(BlobStoreProvider provider, String container, String key)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRead()
VirtualFile
child(String name)
static boolean
delete(BlobStoreProvider provider, org.jclouds.blobstore.BlobStore blobStore, String prefix)
Delete all blobs starting with a given prefix.boolean
exists()
String
getName()
Returns the base nameVirtualFile
getParent()
boolean
isDirectory()
boolean
isFile()
long
lastModified()
long
length()
VirtualFile[]
list()
InputStream
open()
<V> V
run(hudson.remoting.Callable<V,IOException> callable)
URL
toExternalURL()
URI
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 Detail
-
JCloudsVirtualFile
public JCloudsVirtualFile(@NonNull BlobStoreProvider provider, @NonNull String container, @NonNull String key)
-
-
Method Detail
-
getName
public String getName()
Returns the base name- Specified by:
getName
in classVirtualFile
-
toURI
public URI toURI()
- Specified by:
toURI
in classVirtualFile
-
toExternalURL
public URL toExternalURL() throws IOException
- Overrides:
toExternalURL
in classVirtualFile
- Throws:
IOException
-
getParent
public VirtualFile getParent()
- Specified by:
getParent
in classVirtualFile
-
isDirectory
public boolean isDirectory() throws IOException
- Specified by:
isDirectory
in classVirtualFile
- Throws:
IOException
-
isFile
public boolean isFile() throws IOException
- Specified by:
isFile
in classVirtualFile
- Throws:
IOException
-
exists
public boolean exists() throws IOException
- Specified by:
exists
in classVirtualFile
- Throws:
IOException
-
list
public VirtualFile[] list() throws IOException
- Specified by:
list
in classVirtualFile
- Throws:
IOException
-
child
public VirtualFile child(String name)
- Specified by:
child
in classVirtualFile
-
length
public long length() throws IOException
- Specified by:
length
in classVirtualFile
- Throws:
IOException
-
lastModified
public long lastModified() throws IOException
- Specified by:
lastModified
in classVirtualFile
- Throws:
IOException
-
canRead
public boolean canRead() throws IOException
- Specified by:
canRead
in classVirtualFile
- Throws:
IOException
-
open
public InputStream open() throws IOException
- Specified by:
open
in classVirtualFile
- Throws:
IOException
-
run
public <V> V run(hudson.remoting.Callable<V,IOException> callable) throws IOException
- 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
-
-