Class CreateDestinationRequest

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability
        See Also:
        Constant Field Values
      • serverId

        private int serverId
        Id of the server where deploying the destination.
      • name

        private String name
        Name attributed to the destination.
      • className

        private String className
        Name of the class to be instantiated.
      • props

        private Properties props
        Properties needed to create destination object.
      • expectedType

        private byte expectedType
    • Constructor Detail

      • CreateDestinationRequest

        public CreateDestinationRequest​(int serverId,
                                        String name,
                                        String className,
                                        Properties props,
                                        byte expectedType)
        Parameters:
        serverId - The id of the server where deploying the destination.
        name - Name attributed to the destination.
        className - Name of the class to be instantiated.
        props - Properties for the created destination.
        expectedType - Type of destination (Queue or Topic).
      • CreateDestinationRequest

        public CreateDestinationRequest()
    • Method Detail

      • getServerId

        public final int getServerId()
        Returns the id of the server where deploying the destination.
        Returns:
        the id of the server where deploying the destination.
      • getDestinationName

        public final String getDestinationName()
        Returns the name attributed to the destination.
        Returns:
        the name attributed to the destination.
      • getClassName

        public final String getClassName()
        Returns the class name of destination.
        Returns:
        the class name of destination.
      • getProperties

        public final Properties getProperties()
        Returns the destination properties.
        Returns:
        the properties of destination.
      • getExpectedType

        public final byte getExpectedType()
      • readFrom

        public void readFrom​(InputStream is)
                      throws IOException
        Description copied from interface: Streamable
        The object implements the readFrom method to restore its contents from the input stream.
        Parameters:
        is - the stream to read data from in order to restore the object
        Throws:
        IOException - an error occurs during IO operation.
      • writeTo

        public void writeTo​(OutputStream os)
                     throws IOException
        Description copied from interface: Streamable
        The object implements the writeTo method to write its contents to the output stream.
        Parameters:
        os - the stream to write the object to
        Throws:
        IOException - an error occurs during IO operation.