Class SomQmgrControlCommand

All Implemented Interfaces:
SomResponseProcessor

public class SomQmgrControlCommand extends SomQmgrCommand
Class which implements the commands which provide control of the Queue Manager itself. The control command available are: DECREASE_MAX_CHANS INCREASE_MAX_CHANS DISABLE_ALL DISABLE_SUBMISSION ENABLE_ALL ENABLE_SUBMISSION REREAD_QUEUE RESTART SHUTDOWN MINIMISE LOAD_CONFIG
Author:
tc
  • Field Details

  • Constructor Details

    • SomQmgrControlCommand

      public SomQmgrControlCommand(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener)
      Create a new SomQmgrControlCommand object
      Parameters:
      session - Session for command
      op - Operation code
      object - Result handler object
      listener - Listener to be alerted when operation complete
  • Method Details

    • setMinimiseStart

      public void setMinimiseStart(SomUtcTime time)
      Set the start time for the MINIMISE operation
      Parameters:
      time - at which MIMIMISE operation should come in to force
    • setMinimiseStop

      public void setMinimiseStop(SomUtcTime time)
      Set the stop time for the MINIMISE operation
      Parameters:
      time - at which MIMIMISE operation should stop
    • setMinimisePriority

      public void setMinimisePriority(int max)
      Set the maximum priority to which the MINIMISE operation should apply
      Parameters:
      max - priority for MINIMISE operation
    • getCommandString

      public String getCommandString() throws SomException
      Generate the command string
      Overrides:
      getCommandString in class SomCommand
      Returns:
      command string
      Throws:
      SomException - Indicating a problem with the command