backtype.storm.security.auth
Class SimpleTransportPlugin
java.lang.Object
backtype.storm.security.auth.SimpleTransportPlugin
- All Implemented Interfaces:
- ITransportPlugin
public class SimpleTransportPlugin
- extends Object
- implements ITransportPlugin
Simple transport for Thrift plugin.
This plugin is designed to be backward compatible with existing Storm code.
|
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)
We will let Thrift to apply default transport factory |
void |
prepare(Map storm_conf,
Configuration login_conf)
Invoked once immediately after construction |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
login_conf
protected Configuration login_conf
SimpleTransportPlugin
public SimpleTransportPlugin()
prepare
public void prepare(Map storm_conf,
Configuration login_conf)
- Invoked once immediately after construction
- Specified by:
prepare in interface ITransportPlugin
- Parameters:
conf - Storm configurationlogin_conf - login configuration
getServer
public org.apache.thrift.server.TServer getServer(int port,
org.apache.thrift.TProcessor processor)
throws IOException,
org.apache.thrift.transport.TTransportException
- We will let Thrift to apply default transport factory
- Specified by:
getServer in interface ITransportPlugin
- Parameters:
port - listening portprocessor - service handler
- Returns:
- server to be binded
- Throws:
IOException
org.apache.thrift.transport.TTransportException
connect
public org.apache.thrift.transport.TTransport connect(org.apache.thrift.transport.TTransport transport,
String serverHost)
throws org.apache.thrift.transport.TTransportException
- Connect to the specified server via framed transport
- Specified by:
connect in interface ITransportPlugin
- Parameters:
transport - The underlying Thrift transport.serverHost - server host
- Throws:
org.apache.thrift.transport.TTransportException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.