Class Job

  • All Implemented Interfaces:
    io.deephaven.base.log.LogOutputAppendable
    Direct Known Subclasses:
    TimedJob

    public abstract class Job
    extends java.lang.Object
    implements io.deephaven.base.log.LogOutputAppendable
    This is the base class for jobs that can be invoked by the scheduler.
    • Constructor Summary

      Constructors 
      Constructor Description
      Job()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      io.deephaven.base.log.LogOutput append​(io.deephaven.base.log.LogOutput logOutput)  
      abstract void cancelled()
      This method is called if the job is explicitly cancelled before it becomes ready or times out.
      abstract int invoke​(java.nio.channels.SelectableChannel channel, int readyOps, io.deephaven.base.Procedure.Nullary handoff)
      This method is invoked by the scheduler when the job's channel becomes ready.
      abstract void timedOut()
      This method is invoked if the job times out.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Job

        public Job()
    • Method Detail

      • invoke

        public abstract int invoke​(java.nio.channels.SelectableChannel channel,
                                   int readyOps,
                                   io.deephaven.base.Procedure.Nullary handoff)
                            throws java.io.IOException
        This method is invoked by the scheduler when the job's channel becomes ready.
        Parameters:
        channel - the channel which has become ready
        readyOps - the operations which can be performed on this channel without blocking
        Throws:
        java.io.IOException - - if something bad happens
      • timedOut

        public abstract void timedOut()
        This method is invoked if the job times out.
      • cancelled

        public abstract void cancelled()
        This method is called if the job is explicitly cancelled before it becomes ready or times out.
      • append

        public io.deephaven.base.log.LogOutput append​(io.deephaven.base.log.LogOutput logOutput)
        Specified by:
        append in interface io.deephaven.base.log.LogOutputAppendable