public class LocalizedResource extends LocallyCachedBlob
localUpdateTime, NOT_DOWNLOADED_VERSION| Modifier and Type | Method and Description |
|---|---|
void |
cleanupOrphanedData()
Clean up any temporary files.
|
protected void |
commitNewVersion(long version)
Commit the new version and make it available for the end user.
|
void |
completelyRemove()
Completely remove anything that is cached locally for this blob and all tracking files also stored for it.
|
boolean |
equals(Object other) |
long |
fetchUnzipToTemp(ClientBlobStore store)
Download the latest version to a temp location.
|
long |
getLocalVersion()
Get the version of the blob cached locally.
|
long |
getRemoteVersion(ClientBlobStore store)
Get the version of the blob in the blob store.
|
long |
getSizeOnDisk()
Get the amount of disk space that is used by this blob.
|
int |
hashCode() |
boolean |
isFullyDownloaded() |
protected void |
setSize(long size) |
String |
toString() |
addReference, fetch, getDependencies, getKey, getLastUsed, getSizeOnDisk, informReferencesAndCommitNewVersion, isUsed, removeReference, touch, updateprotected void setSize(long size)
public long getLocalVersion()
LocallyCachedBlobgetLocalVersion in class LocallyCachedBlobpublic long getRemoteVersion(ClientBlobStore store) throws KeyNotFoundException, AuthorizationException
LocallyCachedBlobgetRemoteVersion in class LocallyCachedBlobKeyNotFoundExceptionAuthorizationExceptionpublic long fetchUnzipToTemp(ClientBlobStore store) throws IOException, KeyNotFoundException, AuthorizationException
LocallyCachedBlobfetchUnzipToTemp in class LocallyCachedBlobstore - the store to us to download the data.IOExceptionKeyNotFoundExceptionAuthorizationExceptionprotected void commitNewVersion(long version)
throws IOException
LocallyCachedBlobcommitNewVersion in class LocallyCachedBlobversion - the version of the blob to commit.IOExceptionpublic void cleanupOrphanedData()
throws IOException
LocallyCachedBlobcleanupOrphanedData in class LocallyCachedBlobIOExceptionpublic void completelyRemove()
throws IOException
LocallyCachedBlobcompletelyRemove in class LocallyCachedBlobIOExceptionpublic long getSizeOnDisk()
LocallyCachedBlobgetSizeOnDisk in class LocallyCachedBlobpublic boolean isFullyDownloaded()
isFullyDownloaded in class LocallyCachedBlobCopyright © 2023 The Apache Software Foundation. All rights reserved.