Servertec
Persistent Object Store
1.4.1 09/04/2005

stec.pos
Class RecoverIndex

java.lang.Object
  extended by stec.pos.RecoverIndex

public class RecoverIndex
extends java.lang.Object

RecoverIndex is used to recover key, value pairs from the specified damaged index to the named recovery index.

RecoverIndex only recovers complete key, value paris and skips over damaged key, value pairs.

Since:
1.2.0 12/03/2002
See Also:
Index

Constructor Summary
RecoverIndex()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main entry point.
static boolean recover(java.lang.String[] args)
          Normally called by main() to recover the specified index.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecoverIndex

public RecoverIndex()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Throwable
Main entry point.

Parameters:
args - String array containing parameters to use.

Parameters::

-d - do not display progress
-v - verbose mode
damaged_index - the damaged index's base file name.
recovery_index - the recovery index's base file name.

Usage: javavm stec.pos.RecoverIndex {options} damaged_index recovery_index

javavm - the Java VM, normally java.
options - one or more of the following optional parameters.

    -d - do not display progress
    -v - verbose mode
damaged_index - the damaged index's base file name.
recovery_index - the recovery index's base file name.

The recovery index must already exist, will be cleared before it is used and must be large enough or must be able to grow to contain all the key, value pairs in the damaged index.

Throws:
java.lang.Throwable - if an exception or error occurs.

recover

public static final boolean recover(java.lang.String[] args)
                             throws java.lang.Throwable
Normally called by main() to recover the specified index.

Parameters:
args - String array containing parameters to use. See main().
Returns:
whether recovered failed or succeeded.
Throws:
java.lang.Throwable - if an exception or error occurs.
Since:
1.2.1 12/22/2002

Servertec
Persistent Object Store
1.4.1 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.