public class SimpleTransportPlugin extends Object implements ITransportPlugin
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
login_conf |
protected Map |
storm_conf |
protected ThriftConnectionType |
type |
| Constructor and Description |
|---|
SimpleTransportPlugin() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.thrift.transport.TTransport |
connect(org.apache.thrift.transport.TTransport transport,
String serverHost,
String asUser)
Connect to the specified server via framed transport
|
protected Subject |
getDefaultSubject() |
org.apache.thrift.server.TServer |
getServer(org.apache.thrift.TProcessor processor)
Create a server associated with a given port, service handler, and purpose
|
void |
prepare(ThriftConnectionType type,
Map storm_conf,
Configuration login_conf)
Invoked once immediately after construction
|
protected ThriftConnectionType type
protected Map storm_conf
protected Configuration login_conf
public void prepare(ThriftConnectionType type, Map storm_conf, Configuration login_conf)
ITransportPluginprepare in interface ITransportPlugintype - the type of connection this will process.storm_conf - Storm configurationlogin_conf - login configurationpublic org.apache.thrift.server.TServer getServer(org.apache.thrift.TProcessor processor)
throws IOException,
org.apache.thrift.transport.TTransportException
ITransportPlugingetServer in interface ITransportPluginprocessor - service handlerIOExceptionorg.apache.thrift.transport.TTransportExceptionpublic org.apache.thrift.transport.TTransport connect(org.apache.thrift.transport.TTransport transport,
String serverHost,
String asUser)
throws org.apache.thrift.transport.TTransportException
connect in interface ITransportPlugintransport - The underlying Thrift transport.serverHost - unused.asUser - unused.org.apache.thrift.transport.TTransportExceptionprotected Subject getDefaultSubject()
Copyright © 2015. All rights reserved.