Package com.adaptris.interlok.cloud
Class RemoteBlob
java.lang.Object
com.adaptris.interlok.cloud.RemoteBlob
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 -
Method Summary
Modifier and TypeMethodDescriptionGet the bucket that this blob resides in.long
Get the last modified time of the blob.getName()
The name of the remote blob.long
getSize()
Get the size of the blob if available.toFile()
Wrap it as aRemoteFile
for standardFileFilter
operations.
-
Method Details
-
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
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
Get the bucket that this blob resides in.- Returns:
- the bucket name, might be null.
-