Package org.basex.core.cmd
Class JobsList
java.lang.Object
org.basex.core.jobs.Job
org.basex.core.Command
org.basex.core.cmd.JobsList
Evaluates the 'jobs list' command.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocks()Adds the strings (databases, special identifiers) for which locks need to be acquired.voidbuild(CmdBuilder cb) Builds a string representation from the command.static TokenListCreates a table entry.static TokenListReturns all registered ids.protected booleanrun()Executes the command and serializes the result (internal call).Methods inherited from class org.basex.core.Command
addLocks, baseURI, baseURI, close, error, exception, execute, execute, getOption, getOption, info, info, init, maxResults, newData, result, run, run, setInput, setInput, stoppable, supportsProg, toString, toString, updated, updating
-
Constructor Details
-
JobsList
public JobsList()Default constructor.
-
-
Method Details
-
run
Description copied from class:CommandExecutes the command and serializes the result (internal call).- Specified by:
runin classCommand- Returns:
- success of operation
- Throws:
IOException- I/O exception
-
ids
Returns all registered ids.- Parameters:
ctx- database context- Returns:
- id list
-
entry
Creates a table entry.- Parameters:
key- job idjobs- job poolmax- maximum length of text entry- Returns:
- table entry, or
nullif the job does not exist
-
addLocks
public void addLocks()Description copied from class:JobAdds the strings (databases, special identifiers) for which locks need to be acquired. -
build
Description copied from class:CommandBuilds a string representation from the command. This string must be correctly built, as commands are sent to the server as strings.
-