public class IndexCopier extends java.lang.Object implements CopyOnReadStatsMBean, java.io.Closeable
TYPE| Constructor and Description |
|---|
IndexCopier(java.util.concurrent.Executor executor,
java.io.File indexRootDir) |
IndexCopier(java.util.concurrent.Executor executor,
java.io.File indexRootDir,
boolean prefetchEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCopyInProgressCount() |
java.lang.String[] |
getCopyInProgressDetails() |
java.lang.String |
getCopyInProgressSize() |
int |
getDeletedFilesCount() |
int |
getDownloadCount() |
java.lang.String |
getDownloadSize() |
long |
getDownloadTime() |
java.lang.String |
getGarbageCollectedSize() |
java.lang.String[] |
getGarbageDetails() |
java.lang.String |
getGarbageSize() |
java.io.File |
getIndexDir(java.lang.String indexPath) |
javax.management.openmbean.TabularData |
getIndexPathMapping() |
int |
getInvalidFileCount() |
java.lang.String |
getLocalIndexSize() |
int |
getMaxCopyInProgressCount() |
int |
getMaxScheduledForCopyCount() |
int |
getReaderLocalReadCount() |
int |
getReaderRemoteReadCount() |
int |
getScheduledForCopyCount() |
java.lang.String |
getSkippedFromUploadSize() |
int |
getUploadCount() |
java.lang.String |
getUploadSize() |
long |
getUploadTime() |
int |
getWriterLocalReadCount() |
int |
getWriterRemoteReadCount() |
boolean |
isPrefetchEnabled() |
Directory |
wrapForRead(java.lang.String indexPath,
org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition,
Directory remote) |
Directory |
wrapForWrite(org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition,
Directory remote,
boolean reindexMode) |
public IndexCopier(java.util.concurrent.Executor executor,
java.io.File indexRootDir)
throws java.io.IOException
java.io.IOExceptionpublic IndexCopier(java.util.concurrent.Executor executor,
java.io.File indexRootDir,
boolean prefetchEnabled)
throws java.io.IOException
java.io.IOExceptionpublic Directory wrapForRead(java.lang.String indexPath,
org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition,
Directory remote)
throws java.io.IOException
java.io.IOExceptionpublic Directory wrapForWrite(org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition definition,
Directory remote,
boolean reindexMode)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic java.io.File getIndexDir(java.lang.String indexPath)
public javax.management.openmbean.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 java.lang.String getDownloadSize()
getDownloadSize in interface CopyOnReadStatsMBeanpublic long getDownloadTime()
getDownloadTime in interface CopyOnReadStatsMBeanpublic int getDownloadCount()
getDownloadCount in interface CopyOnReadStatsMBeanpublic int getUploadCount()
getUploadCount in interface CopyOnReadStatsMBeanpublic java.lang.String getUploadSize()
getUploadSize in interface CopyOnReadStatsMBeanpublic long getUploadTime()
getUploadTime in interface CopyOnReadStatsMBeanpublic java.lang.String getLocalIndexSize()
getLocalIndexSize in interface CopyOnReadStatsMBeanpublic java.lang.String[] getGarbageDetails()
getGarbageDetails in interface CopyOnReadStatsMBeanpublic java.lang.String getGarbageSize()
getGarbageSize in interface CopyOnReadStatsMBeanpublic int getScheduledForCopyCount()
getScheduledForCopyCount in interface CopyOnReadStatsMBeanpublic int getCopyInProgressCount()
getCopyInProgressCount in interface CopyOnReadStatsMBeanpublic java.lang.String getCopyInProgressSize()
getCopyInProgressSize in interface CopyOnReadStatsMBeanpublic int getMaxCopyInProgressCount()
getMaxCopyInProgressCount in interface CopyOnReadStatsMBeanpublic int getMaxScheduledForCopyCount()
getMaxScheduledForCopyCount in interface CopyOnReadStatsMBeanpublic java.lang.String getSkippedFromUploadSize()
getSkippedFromUploadSize in interface CopyOnReadStatsMBeanpublic java.lang.String[] getCopyInProgressDetails()
getCopyInProgressDetails in interface CopyOnReadStatsMBeanpublic int getDeletedFilesCount()
getDeletedFilesCount in interface CopyOnReadStatsMBeanpublic java.lang.String getGarbageCollectedSize()
getGarbageCollectedSize in interface CopyOnReadStatsMBean"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"