Class WmFileMessageImpl

    • Constructor Detail

      • WmFileMessageImpl

        public WmFileMessageImpl()
                          throws javax.jms.JMSException
        Deprecated.
        Throws:
        javax.jms.JMSException
      • WmFileMessageImpl

        protected WmFileMessageImpl​(TransportMessage container)
        Deprecated.
    • Method Detail

      • setFilename

        public void setFilename​(java.lang.String filename)
                         throws java.io.FileNotFoundException,
                                javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Set the name of the file associated with the message.

        This method is used to specify which file is to be streamed when the message is sent.

        Specified by:
        setFilename in interface WmFileMessage
        Parameters:
        filename - The name of the file associated with the message.
        Throws:
        java.io.FileNotFoundException - If the file is invalid.
        javax.jms.JMSException - If unable to set the name of the file.
      • getFilename

        public java.lang.String getFilename()
                                     throws javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Get the name of the file associated with the message.

        If this message has been received by a message consumer then this method will return only the file's name without the path. Otherwise, this method will return the fully qualified file's name including the path.

        Specified by:
        getFilename in interface WmFileMessage
        Returns:
        The name of the file associated with the message.
        Throws:
        javax.jms.JMSException - If unable to get the name of the file.
      • saveFile

        public void saveFile​(java.lang.String filename)
                      throws java.io.FileNotFoundException,
                             javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Once the message has been received this method is used to save the contents to the specified file. This method will block until the transfer has completed.
        Specified by:
        saveFile in interface WmFileMessage
        Parameters:
        filename - The location to save the file.
        Throws:
        java.io.FileNotFoundException - If the file is invalid.
        javax.jms.JMSException - If unable to save the file.
      • setPacketSize

        public void setPacketSize​(int packetSize)
                           throws javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Set the maximum number of bytes to read from the file at one time and send.
        Specified by:
        setPacketSize in interface WmFileMessage
        Parameters:
        packetSize - The maximum number of bytes to read and send.
        Throws:
        javax.jms.JMSException - If unable to set the packet size.
      • getPacketSize

        public int getPacketSize()
                          throws javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Get the maximum number of bytes to read from the file at one time and send.
        Specified by:
        getPacketSize in interface WmFileMessage
        Returns:
        The maximum number of bytes to read and send.
        Throws:
        javax.jms.JMSException - If unable to get the packet size.
      • setTransferTimeout

        public void setTransferTimeout​(long timeout)
                                throws javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Set the transfer timeout value.

        The producer uses this timeout value to indicate how long to wait for a packet acknowledgement from the consumers.

        The consumer uses this timeout value to indicate how long to wait for the next packet from the producer.

        The default value is 15000 milliseconds. A timeout of zero never expires.

        Specified by:
        setTransferTimeout in interface WmFileMessage
        Parameters:
        timeout - The transfer timeout value in milliseconds.
        Throws:
        javax.jms.JMSException - If unable to set the timeout.
      • getTransferTimeout

        public long getTransferTimeout()
                                throws javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Get the transfer timeout value.
        Specified by:
        getTransferTimeout in interface WmFileMessage
        Returns:
        The transfer timeout value in milliseconds.
        Throws:
        javax.jms.JMSException - If unable to get the timeout.
      • setRequestTimeout

        public void setRequestTimeout​(long timeout)
                               throws javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Set the transfer request timeout value. The producer uses this timeout value to indicate how long to wait for transfer requests from consumers.

        The default value is 15000 milliseconds. A timeout of zero never expires.

        Specified by:
        setRequestTimeout in interface WmFileMessage
        Parameters:
        timeout - The request timeout value in milliseconds.
        Throws:
        javax.jms.JMSException - If unable to set the timeout
      • getRequestTimeout

        public long getRequestTimeout()
                               throws javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Get the transfer request timeout value.
        Specified by:
        getRequestTimeout in interface WmFileMessage
        Returns:
        The transfer request timeout value in milliseconds.
        Throws:
        javax.jms.JMSException - If unable to get the timeout.
      • setBytesTransferred

        public void setBytesTransferred​(long bytesTransferred)
                                 throws javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Sets the total number of bytes transferred.

        This value is set by the JMS provider once the transfer has completed.

        Specified by:
        setBytesTransferred in interface WmFileMessage
        Throws:
        javax.jms.JMSException
      • getBytesTransferred

        public long getBytesTransferred()
                                 throws javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Gets the total number of bytes transferred.
        Specified by:
        getBytesTransferred in interface WmFileMessage
        Returns:
        The total number of bytes transferred.
        Throws:
        javax.jms.JMSException - If unable to get the number of bytes transferred.
      • getFileSender

        protected FileSender getFileSender​(javax.jms.Session session)
                                    throws javax.jms.JMSException
        Deprecated.
        Throws:
        javax.jms.JMSException
      • setProducer

        public void setProducer​(WmMessageProducer producer)
                         throws javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Sets the producer with which the WmFileMessage is to be sent.
        Specified by:
        setProducer in interface WmFileMessage
        Throws:
        javax.jms.JMSException
      • getProducer

        public WmMessageProducer getProducer()
                                      throws javax.jms.JMSException
        Deprecated.
        Description copied from interface: WmFileMessage
        Gets the producer with which the WmFileMessage is to be sent.
        Specified by:
        getProducer in interface WmFileMessage
        Throws:
        javax.jms.JMSException