Class JobContext

java.lang.Object
org.basex.core.jobs.JobContext

public final class JobContext extends Object
Job context.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Field Details

    • locks

      public final Locks locks
      Registered locks.
    • time

      public final long time
      Time of creation.
    • performance

      public Performance performance
      Performance measurements.
    • tracer

      public QueryTracer tracer
      Query tracer.
    • context

      public Context context
      Database context.
  • Method Details

    • id

      public void id(String string)
      Sets a custom id.
      Parameters:
      string - custom id string
    • id

      public String id()
      Returns the id of the root job.
      Returns:
      id
    • type

      public void type(String type)
      Sets a job type.
      Parameters:
      type - type
    • description

      public void description(String description)
      Sets a job description.
      Parameters:
      description - description
    • type

      public String type()
      Returns the job type.
      Returns:
      name
    • toString

      public String toString()
      Overrides:
      toString in class Object