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
    • Constructor Detail

      • 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 Detail

      • 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​(java.lang.String r)
        Set the reason string for the SOM_MTA_NONDELIVER_MESSAGES command
        Parameters:
        r - Reason string, which may not be null
      • addSelector

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