org.ozoneDB.tools
Class Install
java.lang.Object
org.ozoneDB.tools.Install
- public class Install
- extends java.lang.Object
- Author:
- SMB, Per Nyfelt
Field Summary |
protected static java.lang.String |
dirName
|
protected static java.io.PrintWriter |
log
|
Method Summary |
static void |
createDB(java.lang.String _dirName,
org.ozoneDB.Setup _defaults,
java.io.PrintWriter _log)
|
static boolean |
dbExists(java.lang.String dbDir)
|
static void |
deleteDir(java.lang.String path,
boolean recursive)
|
static void |
main(java.lang.String[] args)
|
static void |
makeDataDir()
Create the cluster directory. |
static void |
makeIdTableDir()
|
static void |
mkDir()
Create the ozone database directory. |
static org.ozoneDB.Setup |
resetConfigFile(org.ozoneDB.Setup _defaults)
|
static void |
resetStateFile(org.ozoneDB.Setup config)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dirName
protected static java.lang.String dirName
log
protected static java.io.PrintWriter log
Install
public Install()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
createDB
public static void createDB(java.lang.String _dirName,
org.ozoneDB.Setup _defaults,
java.io.PrintWriter _log)
throws java.lang.Exception
- Throws:
java.lang.Exception
mkDir
public static void mkDir()
throws java.lang.Exception
- Create the ozone database directory.
- Throws:
java.lang.Exception
resetStateFile
public static void resetStateFile(org.ozoneDB.Setup config)
throws java.io.IOException
- Throws:
java.io.IOException
resetConfigFile
public static org.ozoneDB.Setup resetConfigFile(org.ozoneDB.Setup _defaults)
throws java.io.IOException
- Throws:
java.io.IOException
makeDataDir
public static void makeDataDir()
throws java.io.IOException
- Create the cluster directory.
- Throws:
java.io.IOException
makeIdTableDir
public static void makeIdTableDir()
throws java.io.IOException
- Throws:
java.io.IOException
deleteDir
public static void deleteDir(java.lang.String path,
boolean recursive)
throws java.io.IOException
- Throws:
java.io.IOException
dbExists
public static boolean dbExists(java.lang.String dbDir)
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.