public class DbSpace
extends java.lang.Object
usage: java { com.sleepycat.je.util.DbSpace | -jar je-<version>.jar DbSpace } -h <dir># environment home directory [-q] # quiet, print grand totals only [-u] # sort by utilization [-d] # dump file summary details [-r] # recalculate utilization (expensive) [-s] # start file number or LSN, in hex [-e] # end file number or LSN, in hex [-V] # print JE version number
Constructor and Description |
---|
DbSpace(Environment env,
boolean quiet,
boolean details,
boolean sorted)
Creates a DbSpace object for calculating utilization using an open
Environment.
|
DbSpace(com.sleepycat.je.dbi.EnvironmentImpl envImpl,
boolean quiet,
boolean details,
boolean sorted)
For internal use only.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv) |
void |
print(java.io.PrintStream out)
Calculates utilization and prints a report to the given output stream.
|
void |
setEndFile(long endFile)
Sets the ending file number, which is an upper bound on the range of
files for which utilization is reported and (optionally) recalculated.
|
void |
setRecalculate(boolean recalc)
Sets the recalculation property, which if true causes a more expensive
recalculation of utilization to be performed for debugging purposes.
|
void |
setStartFile(long startFile)
Sets the start file number, which is a lower bound on the range of
files for which utilization is reported and (optionally) recalculated.
|
public DbSpace(Environment env, boolean quiet, boolean details, boolean sorted)
public DbSpace(com.sleepycat.je.dbi.EnvironmentImpl envImpl, boolean quiet, boolean details, boolean sorted)
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
public void setRecalculate(boolean recalc)
public void setStartFile(long startFile)
public void setEndFile(long endFile)
public void print(java.io.PrintStream out) throws DatabaseException
DatabaseException
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.