Class SimpleTransportPlugin

    • Constructor Detail

      • SimpleTransportPlugin

        public SimpleTransportPlugin()
    • Method Detail

      • getServer

        public org.apache.storm.thrift.server.TServer getServer​(org.apache.storm.thrift.TProcessor processor)
                                                         throws IOException,
                                                                org.apache.storm.thrift.transport.TTransportException
        Description copied from interface: ITransportPlugin
        Create a server associated with a given port, service handler, and purpose.
        Specified by:
        getServer in interface ITransportPlugin
        Parameters:
        processor - service handler
        Returns:
        server
        Throws:
        IOException
        org.apache.storm.thrift.transport.TTransportException
      • connect

        public org.apache.storm.thrift.transport.TTransport connect​(org.apache.storm.thrift.transport.TTransport transport,
                                                                    String serverHost,
                                                                    String asUser)
                                                             throws org.apache.storm.thrift.transport.TTransportException
        Connect to the specified server via framed transport.
        Specified by:
        connect in interface ITransportPlugin
        Parameters:
        transport - The underlying Thrift transport
        serverHost - unused
        asUser - unused
        Throws:
        org.apache.storm.thrift.transport.TTransportException
      • getDefaultSubject

        protected Subject getDefaultSubject()
        Get default subject.
        Returns:
        the subject that will be used for all connections