Class SomQmgrMtaControlCommand

All Implemented Interfaces:
SomResponseProcessor

public class SomQmgrMtaControlCommand extends SomQmgrCommand
SOM Command which enables Control operations to be performed on MTAs. Commands are: SOM_MTA_STOP SOM_MTA_START SOM_MTA_DELAY_CLEAR SOM_MTA_DELAY_SET SOM_MMTA_DELETE SOM_MTA_CONNECT SOM_MTA_DISCONNECT SOM_MTA_ENABLE_INBOUND SOM_MTA_DISABLE_INBOUND SOM_MTA_DELETE_MESSAGES SOM_MTA_NONDELIVER_MESSAGES SOM_MTA_TIMEOUT_MESSAGES SOM_MTA_REPROCESS
Author:
tc
  • Field Details

  • Constructor Details

    • SomQmgrMtaControlCommand

      public SomQmgrMtaControlCommand(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener)
      Create a new SomQmgrMtaControlCommand object.
      Parameters:
      session - Session for command which may not be null
      op - Operation code
      object - Handler object for result which may not be null
      listener - Listener for command completion which may be null
    • SomQmgrMtaControlCommand

      public SomQmgrMtaControlCommand(SomSession session, int op, SomQmgrSelector sel, SomQmgrHandler object, SomCommandListener listener)
      Create a new SomQmgrMtaControlCommand object with a Selector
      Parameters:
      session - Session for command which may not be null
      op - Operation code
      sel - Selector which may be null
      object - Handler object for result which may not be null
      listener - Listener for command completion which may be null
  • Method Details

    • setDelay

      public void setDelay(SomUtcTime delay)
      Set the delay value for the SOM_MTA_DELAY_SET command
      Parameters:
      delay - Time to delay until (UTC Time String) which may not be null
    • setReason

      public void setReason(String r)
      Set the reason string for the SOM_MTA_NONDELIVER_MESSAGES command
      Parameters:
      r - Reason string, which may not be null
    • getSubcommand

      public String getSubcommand() throws SomException
      Throws:
      SomException
    • addSelector

      public void addSelector(SomQmgrSelector sel)
      Add a Selector to the command
      Parameters:
      sel - Selector which may be null
    • getCommandString

      public String getCommandString() throws SomException
      Overrides:
      getCommandString in class SomCommand
      Returns:
      The command string to be sent over the wire.
      Throws:
      SomException - Indicating a problem with the command