Servertec
Persistent Object Store
1.4.1 09/04/2005

stec.xpos
Class CheckIndex

java.lang.Object
  extended by stec.xpos.CheckIndex

public final class CheckIndex
extends java.lang.Object

Utility used to verify the integrity of the specified index.

Normally checks index and keys/values store file's existence, size and header fields. Includes check of free list, key and values. Optionally, performs disk intensive check of links and displays utilization.

Since:
1.1.0 09/01/2002

Constructor Summary
CheckIndex()
           
 
Method Summary
static boolean check(java.lang.String[] args)
          Normally called by main() to check the specified index.
static boolean check(java.lang.String[] indexes, java.lang.String[] options)
          Used to check one or more indexes.
static void main(java.lang.String[] args)
          Main entry point.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckIndex

public CheckIndex()
Method Detail

main

public static final 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
-l - check links
-u - display utilization
-v - verbose mode
index - the index's base file name.

Usage: javavm stec.xpos.CheckIndex {options} index

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

    -d - do not display progress
    -l - check links
    -u - display utilization
    -v - verbose mode
index - the index's base file name.
Throws:
java.lang.Throwable - if an exception or error occurs.

check

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

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

check

public static final boolean check(java.lang.String[] indexes,
                                  java.lang.String[] options)
Used to check one or more indexes.

For each index displays the index's name and PASSED if the index was successfully checked or displays the index's name, FAILED and any stack trace if the index fails.

Parameters:
indexes - String array containing names of indexes to check.
options - String array containing options to use. See main().
Returns:
whether check failed or succeeded.
Since:
1.3.1 11/26/2003

Servertec
Persistent Object Store
1.4.1 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.