public class MeasuredPathDB extends Object implements org.commonjava.storage.pathmapped.spi.PathDB
| Constructor and Description |
|---|
MeasuredPathDB(org.commonjava.storage.pathmapped.spi.PathDB decorated,
com.codahale.metrics.MetricRegistry metricRegistry,
String metricPrefix) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
copy(String fromFileSystem,
String fromPath,
String toFileSystem,
String toPath) |
boolean |
delete(String fileSystem,
String path) |
org.commonjava.storage.pathmapped.spi.PathDB.FileType |
exists(String fileSystem,
String path) |
long |
getFileLastModified(String fileSystem,
String path) |
long |
getFileLength(String fileSystem,
String path) |
Set<String> |
getFileSystemContaining(Collection<String> candidates,
String path) |
String |
getFirstFileSystemContaining(List<String> candidates,
String path) |
String |
getStorageFile(String fileSystem,
String path) |
void |
insert(String fileSystem,
String path,
Date creation,
Date expiration,
String fileId,
long size,
String fileStorage,
String checksum) |
boolean |
isDirectory(String fileSystem,
String path) |
boolean |
isFile(String fileSystem,
String path) |
protected boolean |
isMetricEnabled(String metricName) |
List<org.commonjava.storage.pathmapped.model.PathMap> |
list(String fileSystem,
String path,
boolean recursive,
int limit,
org.commonjava.storage.pathmapped.spi.PathDB.FileType fileType) |
List<org.commonjava.storage.pathmapped.model.PathMap> |
list(String fileSystem,
String path,
org.commonjava.storage.pathmapped.spi.PathDB.FileType fileType) |
List<org.commonjava.storage.pathmapped.model.Reclaim> |
listOrphanedFiles(int limit) |
void |
makeDirs(String fileSystem,
String path) |
void |
removeFromReclaim(org.commonjava.storage.pathmapped.model.Reclaim reclaim) |
public MeasuredPathDB(org.commonjava.storage.pathmapped.spi.PathDB decorated,
com.codahale.metrics.MetricRegistry metricRegistry,
String metricPrefix)
public List<org.commonjava.storage.pathmapped.model.PathMap> list(String fileSystem, String path, org.commonjava.storage.pathmapped.spi.PathDB.FileType fileType)
list in interface org.commonjava.storage.pathmapped.spi.PathDBpublic List<org.commonjava.storage.pathmapped.model.PathMap> list(String fileSystem, String path, boolean recursive, int limit, org.commonjava.storage.pathmapped.spi.PathDB.FileType fileType)
list in interface org.commonjava.storage.pathmapped.spi.PathDBpublic long getFileLength(String fileSystem, String path)
getFileLength in interface org.commonjava.storage.pathmapped.spi.PathDBpublic long getFileLastModified(String fileSystem, String path)
getFileLastModified in interface org.commonjava.storage.pathmapped.spi.PathDBpublic org.commonjava.storage.pathmapped.spi.PathDB.FileType exists(String fileSystem, String path)
exists in interface org.commonjava.storage.pathmapped.spi.PathDBpublic void insert(String fileSystem, String path, Date creation, Date expiration, String fileId, long size, String fileStorage, String checksum)
insert in interface org.commonjava.storage.pathmapped.spi.PathDBpublic boolean isDirectory(String fileSystem, String path)
isDirectory in interface org.commonjava.storage.pathmapped.spi.PathDBpublic boolean isFile(String fileSystem, String path)
isFile in interface org.commonjava.storage.pathmapped.spi.PathDBpublic boolean delete(String fileSystem, String path)
delete in interface org.commonjava.storage.pathmapped.spi.PathDBpublic Set<String> getFileSystemContaining(Collection<String> candidates, String path)
getFileSystemContaining in interface org.commonjava.storage.pathmapped.spi.PathDBpublic String getFirstFileSystemContaining(List<String> candidates, String path)
getFirstFileSystemContaining in interface org.commonjava.storage.pathmapped.spi.PathDBpublic String getStorageFile(String fileSystem, String path)
getStorageFile in interface org.commonjava.storage.pathmapped.spi.PathDBpublic boolean copy(String fromFileSystem, String fromPath, String toFileSystem, String toPath)
copy in interface org.commonjava.storage.pathmapped.spi.PathDBpublic void makeDirs(String fileSystem, String path)
makeDirs in interface org.commonjava.storage.pathmapped.spi.PathDBpublic List<org.commonjava.storage.pathmapped.model.Reclaim> listOrphanedFiles(int limit)
listOrphanedFiles in interface org.commonjava.storage.pathmapped.spi.PathDBpublic void removeFromReclaim(org.commonjava.storage.pathmapped.model.Reclaim reclaim)
removeFromReclaim in interface org.commonjava.storage.pathmapped.spi.PathDBprotected boolean isMetricEnabled(String metricName)
Copyright © 2019-2020. All Rights Reserved.