Class SomQmgrSelector


  • public class SomQmgrSelector
    extends java.lang.Object
    Class which implements the Selector object which is used to select particular Channel/MTA/Message combinations when performing various SOM commands.
    Author:
    tc
    • Constructor Summary

      Constructors 
      Constructor Description
      SomQmgrSelector()
      Create a new empty Selector object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addChannelName​(java.lang.String value)
      Add a channel name specification to a Selector
      void addChannelRegexp​(java.lang.String value)
      Add a channel name regular expression specification to a Selector
      void addMessageName​(java.lang.String value)
      Add a message name (queueid) specification to a Selector
      void addMessageRegexp​(java.lang.String value)
      Add a message id (queueid) regular expression specification to a Selector
      void addMtaName​(java.lang.String value)
      Add an MTA name specification to a Selector
      void addMtaRegexp​(java.lang.String value)
      Add an MTA name regular expression specification to a Selector
      void addParam​(java.lang.String type, java.lang.Integer value)
      Add an arbitrary attribute specification to a selector
      void addRecipientNumber​(java.lang.Integer value)
      Add a recipient number specification to a Selector
      void addSizeLimit​(java.lang.Integer value)
      Add a sizelimit constraint to a Selector
      java.lang.String print​(int context)
      Generate the string representation of the Selector, for use in a command
      • Methods inherited from class java.lang.Object

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

      • SomQmgrSelector

        public SomQmgrSelector()
        Create a new empty Selector object
    • Method Detail

      • addSizeLimit

        public void addSizeLimit​(java.lang.Integer value)
        Add a sizelimit constraint to a Selector
        Parameters:
        value - sizelimit value in bytes
      • addChannelName

        public void addChannelName​(java.lang.String value)
        Add a channel name specification to a Selector
        Parameters:
        value - channel name which may not be null
      • addMtaName

        public void addMtaName​(java.lang.String value)
        Add an MTA name specification to a Selector
        Parameters:
        value - MTA name which may not be null
      • addMessageName

        public void addMessageName​(java.lang.String value)
        Add a message name (queueid) specification to a Selector
        Parameters:
        value - Message name which may not be null
      • addRecipientNumber

        public void addRecipientNumber​(java.lang.Integer value)
        Add a recipient number specification to a Selector
        Parameters:
        value - Recipient number
      • addChannelRegexp

        public void addChannelRegexp​(java.lang.String value)
        Add a channel name regular expression specification to a Selector
        Parameters:
        value - channel name regexp which may not be null
      • addMtaRegexp

        public void addMtaRegexp​(java.lang.String value)
        Add an MTA name regular expression specification to a Selector
        Parameters:
        value - MTA name regexp which may not be null
      • addMessageRegexp

        public void addMessageRegexp​(java.lang.String value)
        Add a message id (queueid) regular expression specification to a Selector
        Parameters:
        value - message name regexp which may not be null
      • addParam

        public void addParam​(java.lang.String type,
                             java.lang.Integer value)
        Add an arbitrary attribute specification to a selector
        Parameters:
        type - Attribute type name which may not be null
        value - Attribute value which may not be null
      • print

        public java.lang.String print​(int context)
                               throws SomException
        Generate the string representation of the Selector, for use in a command
        Parameters:
        context - Context in which to print the Selector
        Returns:
        String representation of Selector
        Throws:
        SomException - on error