public final class OptimizeAll extends ACreate
Constructor and Description |
---|
OptimizeAll()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
build(CmdBuilder cb)
Builds a string representation from the command.
|
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process.
|
String |
det()
Returns short information on this process.
|
boolean |
newData(Context ctx)
Closes an open data reference and returns
true if this command will change the
Context.data() reference. |
static void |
optimizeAll(Data data,
Context context,
MainOptions options,
OptimizeAll cmd)
Optimizes all data structures and closes the database.
|
double |
prog()
Returns a progress value (0 - 1).
|
protected boolean |
run()
Executes the command and serializes the result (internal call).
|
boolean |
stoppable()
Returns true if this command can be stopped.
|
supportsProg
close, databases, error, execute, execute, finish, finishUpdate, getOption, getOption, info, info, init, run, run, setInput, setInput, startUpdate, toString, toString, updated, updating
abort, checkStop, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title
protected boolean run()
Command
public boolean newData(Context ctx)
Command
true
if this command will change the
Context.data()
reference. This method is required by the progress dialog in the
frontend.public void databases(LockResult lr)
Proc
public double prog()
Proc
public boolean stoppable()
Command
public String det()
Proc
public void build(CmdBuilder cb)
Command
public static void optimizeAll(Data data, Context context, MainOptions options, OptimizeAll cmd) throws IOException
data
- disk datacontext
- database contextoptions
- main optionscmd
- command reference or null
IOException
- I/O Exception during index rebuildBaseXException
- database exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.