backtype.storm.security.auth
Interface ITransportPlugin

All Known Implementing Classes:
DigestSaslTransportPlugin, SaslTransportPlugin, SimpleTransportPlugin

public interface ITransportPlugin

Interface for Thrift Transport plugin


Method Summary
 org.apache.thrift.transport.TTransport connect(org.apache.thrift.transport.TTransport transport, String serverHost)
          Connect to the specified server via framed transport
 org.apache.thrift.server.TServer getServer(int port, org.apache.thrift.TProcessor processor)
          Create a server associated with a given port and service handler
 void prepare(Map storm_conf, Configuration login_conf)
          Invoked once immediately after construction
 

Method Detail

prepare

void prepare(Map storm_conf,
             Configuration login_conf)
Invoked once immediately after construction

Parameters:
storm_conf - Storm configuration
login_conf - login configuration

getServer

org.apache.thrift.server.TServer getServer(int port,
                                           org.apache.thrift.TProcessor processor)
                                           throws IOException,
                                                  org.apache.thrift.transport.TTransportException
Create a server associated with a given port and service handler

Parameters:
port - listening port
processor - service handler
Returns:
server to be binded
Throws:
IOException
org.apache.thrift.transport.TTransportException

connect

org.apache.thrift.transport.TTransport connect(org.apache.thrift.transport.TTransport transport,
                                               String serverHost)
                                               throws IOException,
                                                      org.apache.thrift.transport.TTransportException
Connect to the specified server via framed transport

Parameters:
transport - The underlying Thrift transport.
serverHost - server host
Throws:
IOException
org.apache.thrift.transport.TTransportException


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.