@Override public String toString() { return super.toString() + " lockFactory=" + lockFactory; } }
@Override public String toString() { return getClass().getSimpleName() + "(" + in.toString() + ")"; }
@Override public String toString() { return "store(" + in.toString() + ")"; } }
throw new IndexNotFoundException(dir.toString());
@Override public String toString() { return writer.getDirectory().toString(); } }
private void copy(Directory src, Directory to) throws IOException { for (String file : src.listAll()) { src.copyFrom(src, file, to.toString(), IOContext.DEFAULT); } }
@Override public String toString() { return "store(" + in.toString() + ")"; } }
@Override public String toString() { return super.toString() + " lockFactory=" + lockFactory; } }
public String toString() { return _directory.toString(); }
@Override public String toString() { return "store(" + in.toString() + ")"; } }
@Override public String toString() { return "store(" + in.toString() + ")"; } }
/** * Return a string identifier that uniquely differentiates * this Directory instance from other Directory instances. * This ID should be the same if two Directory instances * (even in different JVMs and/or on different machines) * are considered "the same index". This is how locking * "scopes" to the right index. */ public String getLockID() { return this.toString(); }
@Override public String toString() { return "TrackingDirectoryWrapper(" + other.toString() + ")"; }
@Override public String toString() { return super.toString() + " lockFactory=" + lockFactory; }
@Override public String toString() { return super.toString() + " lockFactory=" + lockFactory; }
@Override public String toString() { return getClass().getSimpleName() + "(" + in.toString() + ")"; }
@Override public String toString() { return getClass().getSimpleName() + "(" + in.toString() + ")"; }
private void checkIfClosed(boolean throwException) { if (indexCopier.isClosed()) { IndexCopierClosedException e = new IndexCopierClosedException("IndexCopier found to be closed " + "while processing" +remote.toString()); errorInCopy.set(e); copyDone.countDown(); if (throwException) { throw e; } } }
private void checkIfClosed(boolean throwException) { if (indexCopier.isClosed()) { IndexCopierClosedException e = new IndexCopierClosedException("IndexCopier found to be closed " + "while processing" +remote.toString()); errorInCopy.set(e); copyDone.countDown(); if (throwException) { throw e; } } }
@Test public void testGetIndexNameAndToString() throws IOException { Cache cache = cacheManager.getCache(); Directory dir = null; try { dir = DirectoryBuilder.newDirectoryInstance(cache, cache, cache, INDEX_NAME).chunkSize(BUFFER_SIZE).create(); AssertJUnit.assertEquals(INDEX_NAME, ((DirectoryLucene) dir).getIndexName()); AssertJUnit.assertEquals("InfinispanDirectory{indexName=\'" + INDEX_NAME + "\'}", dir.toString()); } finally { if (dir != null) dir.close(); } }