public abstract class AbstractDistributor extends Object implements Distributor
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.lucene.store.Directory[] |
delegates |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDistributor(DirectoryService directoryService) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.store.Directory[] |
all()
Returns all directories
|
org.apache.lucene.store.Directory |
any()
Selects one of the directories based on distribution strategy
|
protected abstract org.apache.lucene.store.Directory |
doAny() |
protected long |
getUsableSpace(org.apache.lucene.store.Directory directory) |
protected abstract String |
name() |
org.apache.lucene.store.Directory |
primary()
Returns primary directory (typically first directory in the list)
|
String |
toString() |
protected AbstractDistributor(DirectoryService directoryService) throws IOException
IOExceptionpublic org.apache.lucene.store.Directory[] all()
Distributorall in interface Distributorpublic org.apache.lucene.store.Directory primary()
Distributorprimary in interface Distributorpublic org.apache.lucene.store.Directory any()
Distributorany in interface Distributorprotected long getUsableSpace(org.apache.lucene.store.Directory directory)
protected abstract org.apache.lucene.store.Directory doAny()
protected abstract String name()
Copyright © 2009–2016. All rights reserved.