public abstract class SaslTransportPlugin extends Object implements ITransportPlugin, Closeable
Modifier and Type | Class and Description |
---|---|
static class |
SaslTransportPlugin.User |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
conf |
protected ThriftConnectionType |
type |
Constructor and Description |
---|
SaslTransportPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getPort()
Get port.
|
org.apache.storm.thrift.server.TServer |
getServer(org.apache.storm.thrift.TProcessor processor)
Create a server associated with a given port, service handler, and purpose.
|
protected abstract org.apache.storm.thrift.transport.TTransportFactory |
getServerTransportFactory(boolean impersonationAllowed)
Create the transport factory needed for serving.
|
void |
prepare(ThriftConnectionType type,
Map<String,Object> conf)
Invoked once immediately after construction.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
areWorkerTokensSupported, connect
protected ThriftConnectionType type
public void prepare(ThriftConnectionType type, Map<String,Object> conf)
ITransportPlugin
prepare
in interface ITransportPlugin
type
- the type of connection this will process.conf
- Storm configurationpublic org.apache.storm.thrift.server.TServer getServer(org.apache.storm.thrift.TProcessor processor) throws IOException, org.apache.storm.thrift.transport.TTransportException
ITransportPlugin
getServer
in interface ITransportPlugin
processor
- service handlerIOException
org.apache.storm.thrift.transport.TTransportException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
protected abstract org.apache.storm.thrift.transport.TTransportFactory getServerTransportFactory(boolean impersonationAllowed) throws IOException
impersonationAllowed
- true if SASL impersonation should be allowed, else false.IOException
- on any error.public int getPort()
ITransportPlugin
getPort
in interface ITransportPlugin
ITransportPlugin.getServer(org.apache.storm.thrift.TProcessor)
has been calledCopyright © 2023 The Apache Software Foundation. All rights reserved.