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 average utilization [-d] # dump file summary details [-r] # recalculate utilization (expensive) [-R] # recalculate expired data (expensive) [-s] # start file number or LSN, in hex [-e] # end file number or LSN, in hex [-t] # time for calculating expired data # format: yyyy-MM-dd'T'HHZ # example: 2016-03-09T22-0800 [-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.
|
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.
|
void |
setTime(long time)
Sets the time for calculating expired data.
|
public DbSpace(Environment env, 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 setTime(long time)
public void print(java.io.PrintStream out) throws DatabaseException
DatabaseException
Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.