Package com.adaptris.interlok.cloud
Class RemoteBlob
- java.lang.Object
-
- com.adaptris.interlok.cloud.RemoteBlob
-
public class RemoteBlob extends java.lang.Object
Abstraction of a blob that is stored in the cloud (e.g. an Azure blob object, AWS S3 blob etc).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RemoteBlob.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBucket()
Get the bucket that this blob resides in.long
getLastModified()
Get the last modified time of the blob.java.lang.String
getName()
The name of the remote blob.long
getSize()
Get the size of the blob if available.RemoteFile
toFile()
Wrap it as aRemoteFile
for standardFileFilter
operations.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
The name of the remote blob.- Returns:
- the name
-
getLastModified
public long getLastModified()
Get the last modified time of the blob.- Returns:
- the last modified time, or -1 if not known/unavailable
-
toFile
public RemoteFile toFile()
Wrap it as aRemoteFile
for standardFileFilter
operations.
-
getSize
public long getSize()
Get the size of the blob if available.- Returns:
- the size of the blob, or -1 if not available / unknown.
-
getBucket
public java.lang.String getBucket()
Get the bucket that this blob resides in.- Returns:
- the bucket name, might be null.
-
-