public interface ITransportPlugin
Interface for Thrift Transport plugin
| 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
|
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
|
void prepare(ThriftConnectionType type, Map storm_conf, Configuration login_conf)
Invoked once immediately after construction
type - the type of connection this will process.storm_conf - Storm configurationlogin_conf - login configurationorg.apache.thrift.server.TServer getServer(org.apache.thrift.TProcessor processor)
throws IOException,
org.apache.thrift.transport.TTransportException
Create a server associated with a given port, service handler, and purpose
processor - service handlerIOExceptionorg.apache.thrift.transport.TTransportExceptionorg.apache.thrift.transport.TTransport connect(org.apache.thrift.transport.TTransport transport,
String serverHost,
String asUser)
throws IOException,
org.apache.thrift.transport.TTransportException
Connect to the specified server via framed transport
transport - The underlying Thrift transport.serverHost - server hostasUser - the user as which the connection should be established, and all the subsequent actions should be executed. Only applicable when using secure storm cluster. A null/blank value here will just indicate to use the logged in user.IOExceptionorg.apache.thrift.transport.TTransportExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.