public class IndexCopier extends Object implements CopyOnReadStatsMBean, Closeable
TYPE| Constructor and Description |
|---|
IndexCopier(Executor executor,
File indexRootDir) |
IndexCopier(Executor executor,
File indexRootDir,
boolean prefetchEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected org.apache.lucene.store.Directory |
createLocalDirForIndexReader(String indexPath,
org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition) |
protected org.apache.lucene.store.Directory |
createLocalDirForIndexWriter(org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition) |
int |
getCopyInProgressCount() |
String[] |
getCopyInProgressDetails() |
String |
getCopyInProgressSize() |
int |
getDeletedFilesCount() |
int |
getDownloadCount() |
String |
getDownloadSize() |
long |
getDownloadTime() |
String |
getGarbageCollectedSize() |
String[] |
getGarbageDetails() |
String |
getGarbageSize() |
File |
getIndexDir(String indexPath) |
TabularData |
getIndexPathMapping() |
int |
getInvalidFileCount() |
String |
getLocalIndexSize() |
int |
getMaxCopyInProgressCount() |
int |
getMaxScheduledForCopyCount() |
int |
getReaderLocalReadCount() |
int |
getReaderRemoteReadCount() |
int |
getScheduledForCopyCount() |
String |
getSkippedFromUploadSize() |
int |
getUploadCount() |
String |
getUploadSize() |
long |
getUploadTime() |
int |
getWriterLocalReadCount() |
int |
getWriterRemoteReadCount() |
boolean |
isPrefetchEnabled() |
org.apache.lucene.store.Directory |
wrapForRead(String indexPath,
org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition,
org.apache.lucene.store.Directory remote) |
org.apache.lucene.store.Directory |
wrapForWrite(org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition,
org.apache.lucene.store.Directory remote,
boolean reindexMode) |
public IndexCopier(Executor executor, File indexRootDir) throws IOException
IOExceptionpublic IndexCopier(Executor executor, File indexRootDir, boolean prefetchEnabled) throws IOException
IOExceptionpublic org.apache.lucene.store.Directory wrapForRead(String indexPath, org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition, org.apache.lucene.store.Directory remote) throws IOException
IOExceptionpublic org.apache.lucene.store.Directory wrapForWrite(org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition,
org.apache.lucene.store.Directory remote,
boolean reindexMode)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected org.apache.lucene.store.Directory createLocalDirForIndexWriter(org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition)
throws IOException
IOExceptionprotected org.apache.lucene.store.Directory createLocalDirForIndexReader(String indexPath, org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition) throws IOException
IOExceptionpublic TabularData getIndexPathMapping()
getIndexPathMapping in interface CopyOnReadStatsMBeanpublic boolean isPrefetchEnabled()
isPrefetchEnabled in interface CopyOnReadStatsMBeanpublic int getReaderLocalReadCount()
getReaderLocalReadCount in interface CopyOnReadStatsMBeanpublic int getReaderRemoteReadCount()
getReaderRemoteReadCount in interface CopyOnReadStatsMBeanpublic int getWriterLocalReadCount()
getWriterLocalReadCount in interface CopyOnReadStatsMBeanpublic int getWriterRemoteReadCount()
getWriterRemoteReadCount in interface CopyOnReadStatsMBeanpublic int getInvalidFileCount()
public String getDownloadSize()
getDownloadSize in interface CopyOnReadStatsMBeanpublic long getDownloadTime()
getDownloadTime in interface CopyOnReadStatsMBeanpublic int getDownloadCount()
getDownloadCount in interface CopyOnReadStatsMBeanpublic int getUploadCount()
getUploadCount in interface CopyOnReadStatsMBeanpublic String getUploadSize()
getUploadSize in interface CopyOnReadStatsMBeanpublic long getUploadTime()
getUploadTime in interface CopyOnReadStatsMBeanpublic String getLocalIndexSize()
getLocalIndexSize in interface CopyOnReadStatsMBeanpublic String[] getGarbageDetails()
getGarbageDetails in interface CopyOnReadStatsMBeanpublic String getGarbageSize()
getGarbageSize in interface CopyOnReadStatsMBeanpublic int getScheduledForCopyCount()
getScheduledForCopyCount in interface CopyOnReadStatsMBeanpublic int getCopyInProgressCount()
getCopyInProgressCount in interface CopyOnReadStatsMBeanpublic String getCopyInProgressSize()
getCopyInProgressSize in interface CopyOnReadStatsMBeanpublic int getMaxCopyInProgressCount()
getMaxCopyInProgressCount in interface CopyOnReadStatsMBeanpublic int getMaxScheduledForCopyCount()
getMaxScheduledForCopyCount in interface CopyOnReadStatsMBeanpublic String getSkippedFromUploadSize()
getSkippedFromUploadSize in interface CopyOnReadStatsMBeanpublic String[] getCopyInProgressDetails()
getCopyInProgressDetails in interface CopyOnReadStatsMBeanpublic int getDeletedFilesCount()
getDeletedFilesCount in interface CopyOnReadStatsMBeanpublic String getGarbageCollectedSize()
getGarbageCollectedSize in interface CopyOnReadStatsMBeanCopyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.