Class SomQmgrUserEventCommand

All Implemented Interfaces:
SomResponseProcessor

public class SomQmgrUserEventCommand extends SomQmgrCommand
Class representing SOM command to audit user events. An instance of this class should be created and a type should be set using setType(String), followed by optional list of information parameters using setValue(String, String).
  • Constructor Details

    • SomQmgrUserEventCommand

      public SomQmgrUserEventCommand(SomSession session, SomQmgrHandler object, SomCommandListener listener)
      Create a new SOM Queue Manager user event command that could be used for audit logging from the UI
      Parameters:
      session - Session for command which may not be null
      object - Result handler object which may not be null
      listener - Listener object to be notified when command completes, which may be null
  • Method Details

    • setType

      public void setType(String type)
      Set the type of user event
      Parameters:
      type - type, not null
    • setValue

      public void setValue(String type, String value)
      Parameters:
      type - type of user event, not null
      value - value for user event, may be null
    • getSubcommand

      protected String getSubcommand()
    • 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