public final class CommandLineUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Class<? extends Directory> |
loadDirectoryClass(java.lang.String clazzName)
Loads a specific Directory implementation
|
static java.lang.Class<? extends FSDirectory> |
loadFSDirectoryClass(java.lang.String clazzName)
Loads a specific FSDirectory implementation
|
static FSDirectory |
newFSDirectory(java.lang.Class<? extends FSDirectory> clazz,
java.io.File file)
Creates a new specific FSDirectory instance
|
static FSDirectory |
newFSDirectory(java.lang.String clazzName,
java.io.File file)
Creates a specific FSDirectory instance starting from its class name
|
public static FSDirectory newFSDirectory(java.lang.String clazzName, java.io.File file)
clazzName - The name of the FSDirectory class to loadfile - The file to be used as parameter constructorpublic static java.lang.Class<? extends Directory> loadDirectoryClass(java.lang.String clazzName) throws java.lang.ClassNotFoundException
clazzName - The name of the Directory class to loadjava.lang.ClassNotFoundExceptionpublic static java.lang.Class<? extends FSDirectory> loadFSDirectoryClass(java.lang.String clazzName) throws java.lang.ClassNotFoundException
clazzName - The name of the FSDirectory class to loadjava.lang.ClassNotFoundExceptionpublic static FSDirectory newFSDirectory(java.lang.Class<? extends FSDirectory> clazz, java.io.File file) throws java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
clazz - The class of the object to be createdfile - The file to be used as parameter constructorjava.lang.NoSuchMethodExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.