Class CommandMap

java.lang.Object
com.illumon.iris.web.server.CommandMap

public class CommandMap extends Object
This map is used to track what commands are registered / running for a given TableHandle, as well as what TableHandle's are derived from what other handles. This will allow us to figure out when the active table changes, so we can unhook subscriptions / commands that are no longer relevant. This class is dedicated to managing commands related to TableHandles, but should likely be simplified and make more generic.
  • Constructor Details

  • Method Details

    • registerCmd

      public void registerCmd(TableHandle handle, int cmdId, boolean autoClean)
    • requestComplete

      public void requestComplete(int commandId)
    • registerDerivation

      public CommandMap registerDerivation(TableHandle handle, TableHandle newHandle)
    • cancel

      public void cancel(TableHandle oldHandle)
      Indicates that the handle is being released, and that any work pending on it to create that handle should be canceled, since it will no longer be used. Historically, this also used to allow tasks to be registered so that when the given table handle was either released or canceled, so that running tasks could be canceled as well. Instead, that now goes through the onResolved mechanism - any handle which fails or is canceled has its onResolved handlers called, any handle which is released with ongoing work doesn't interrupt the work proceeding on it except as registered through registerCmd.
      Parameters:
      oldHandle -