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
IOException
public org.apache.lucene.store.Directory[] all()
Distributor
all
in interface Distributor
public org.apache.lucene.store.Directory primary()
Distributor
primary
in interface Distributor
public org.apache.lucene.store.Directory any()
Distributor
any
in interface Distributor
protected long getUsableSpace(org.apache.lucene.store.Directory directory)
protected abstract org.apache.lucene.store.Directory doAny()
protected abstract String name()
Copyright © 2009–2015. All rights reserved.