Class JobsList


public final class JobsList extends Command
Evaluates the 'jobs list' command.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • JobsList

      public JobsList()
      Default constructor.
  • Method Details

    • run

      protected boolean run() throws IOException
      Description copied from class: Command
      Executes the command and serializes the result (internal call).
      Specified by:
      run in class Command
      Returns:
      success of operation
      Throws:
      IOException - I/O exception
    • ids

      public static TokenList ids(Context ctx)
      Returns all registered ids.
      Parameters:
      ctx - database context
      Returns:
      id list
    • entry

      public static TokenList entry(byte[] key, JobPool jobs, int max)
      Creates a table entry.
      Parameters:
      key - job id
      jobs - job pool
      max - maximum length of text entry
      Returns:
      table entry, or null if the job does not exist
    • addLocks

      public void addLocks()
      Description copied from class: Job
      Adds the strings (databases, special identifiers) for which locks need to be acquired.
      Overrides:
      addLocks in class Job
    • build

      public void build(CmdBuilder cb)
      Description copied from class: Command
      Builds a string representation from the command. This string must be correctly built, as commands are sent to the server as strings.
      Overrides:
      build in class Command
      Parameters:
      cb - command builder