Class SomQmgrSelector

java.lang.Object
com.isode.som.qmgr.SomQmgrSelector

public class SomQmgrSelector extends 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 Details

    • SomQmgrSelector

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

    • addSizeLimit

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

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

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

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

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

      public void addChannelRegexp(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(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(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(String type, 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 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