public class LocalizedResource extends Object
Represents a resource that is localized on the supervisor. A localized resource has a .current symlink to the current version file which is named filename.{current version}. There is also a filename.version which contains the latest version.
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
LocalizedResource(String key,
String fileLoc,
boolean uncompressed) |
LocalizedResource(String key,
String fileLoc,
boolean uncompressed,
String topo) |
Modifier and Type | Method and Description |
---|---|
void |
addReference(String topo) |
String |
getCurrentSymlinkPath() |
String |
getFilePath() |
String |
getFilePathWithVersion() |
String |
getKey() |
long |
getLastAccessTime() |
int |
getRefCount() |
long |
getSize() |
String |
getVersionFilePath() |
boolean |
isUncompressed() |
void |
removeReference(String topo) |
protected void |
setSize(long size) |
public boolean isUncompressed()
public String getKey()
public String getCurrentSymlinkPath()
public String getVersionFilePath()
public String getFilePathWithVersion()
public String getFilePath()
public void addReference(String topo)
public void removeReference(String topo)
public long getLastAccessTime()
protected void setSize(long size)
public long getSize()
public int getRefCount()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.