Class SomQmgrAssociation

    • Constructor Detail

      • SomQmgrAssociation

        public SomQmgrAssociation​(SomSession session)
        Create a new SomQmgrAssociation object for a specified channel and MTA
        Parameters:
        session - Session object for association which may not be null
      • SomQmgrAssociation

        public SomQmgrAssociation​(SomSession session,
                                  java.lang.String[] pairs)
        Create a new SomQmgrAssociation object for a specified channel and MTA, populating it with data from type/value pairs
        Parameters:
        session - Session object for association which may not be null
        pairs - Array of data pairs which may not be null
    • Method Detail

      • applIndex

        public java.lang.Integer applIndex()
                                    throws SomException
        Get the application index value for the association
        Returns:
        application index
        Throws:
        SomException - on error
      • association

        public java.lang.Integer association()
                                      throws SomException
        Get the association id
        Returns:
        association id
        Throws:
        SomException - on error
      • associationType

        public java.lang.Integer associationType()
                                          throws SomException
        Get the association type
        Returns:
        association type
        Throws:
        SomException - on error
      • startTime

        public java.lang.String startTime()
                                   throws SomException
        Get the time at which the association started
        Returns:
        Association start time (UTC Time String)
        Throws:
        SomException - on error
      • handleResponse

        public void handleResponse​(SomCommand command,
                                   int status,
                                   java.lang.String detail)
        Description copied from interface: SomQmgrHandler
        Handles the response to control commands which return an OK/error response plus an info string
        Specified by:
        handleResponse in interface SomHandler
        Specified by:
        handleResponse in interface SomQmgrHandler
        Parameters:
        command - the SOM command
        status - operation status
        detail - detail on error
      • handleResponse

        public void handleResponse​(SomCommand command,
                                   int status,
                                   SomQmgrChannel object)
        Description copied from interface: SomQmgrHandler
        Handles the response to commands which return a list of channel objects
        Specified by:
        handleResponse in interface SomQmgrHandler
        Parameters:
        command - the SOM command
        status - operation status
        object - a channel object
      • handleResponse

        public void handleResponse​(SomCommand command,
                                   int status,
                                   SomQmgrMta object)
        Description copied from interface: SomQmgrHandler
        Handles the response to commands which return a list of MTA objects
        Specified by:
        handleResponse in interface SomQmgrHandler
        Parameters:
        command - the SOM command
        status - operation status
        object - a SOM Qmgr MTA object
      • handleResponse

        public void handleResponse​(SomCommand command,
                                   int status,
                                   SomQmgrMessage object)
        Description copied from interface: SomQmgrHandler
        Handles the response to commands which return a list of message objects
        Specified by:
        handleResponse in interface SomQmgrHandler
        Parameters:
        command - the SOM command
        status - operation status
        object - a qmgr message object
      • handleBindResponse

        public void handleBindResponse​(int status,
                                       java.lang.String detail)
        Description copied from interface: SomHandler
        Handle the response to a Bind operation
        Specified by:
        handleBindResponse in interface SomHandler
        Parameters:
        status - operation status
        detail - error detail on failure
      • handleResponse

        public void handleResponse​(SomCommand obj,
                                   int status,
                                   SomMessage msg)
        Description copied from interface: SomQmgrHandler
        Handles the response to commands which return a SomMessage object (i.e. read from the Queue or Archive).
        Specified by:
        handleResponse in interface SomQmgrHandler
        Parameters:
        obj - the SOM command
        status - operation status
        msg - a message object
      • handleResponse

        public void handleResponse​(SomCommand command,
                                   int status,
                                   java.lang.String[] pairs)
        Description copied from interface: SomQmgrHandler
        Handles the response to commands which return data about the current object - i.e. we are refreshing an existing object.
        Specified by:
        handleResponse in interface SomQmgrHandler
        Parameters:
        command - the SOM command
        status - operation status
        pairs - data pairs
      • buildInfoString

        public java.lang.String buildInfoString()