Package org.apache.storm.security.auth
Class SimpleTransportPlugin
java.lang.Object
org.apache.storm.security.auth.SimpleTransportPlugin
- All Implemented Interfaces:
- ITransportPlugin
- Direct Known Subclasses:
- SingleUserSimpleTransport
Simple transport for Thrift plugin.
 
This plugin is designed to be backward compatible with existing Storm code.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.storm.thrift.transport.TTransportConnect to the specified server via framed transport.protected SubjectGet default subject.intgetPort()Get port.org.apache.storm.thrift.server.TServergetServer(org.apache.storm.thrift.TProcessor processor) Create a server associated with a given port, service handler, and purpose.voidprepare(ThriftConnectionType type, Map<String, Object> topoConf) Invoked once immediately after construction.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.storm.security.auth.ITransportPluginareWorkerTokensSupported
- 
Field Details- 
type
- 
topoConf
 
- 
- 
Constructor Details- 
SimpleTransportPluginpublic SimpleTransportPlugin()
 
- 
- 
Method Details- 
prepareDescription copied from interface:ITransportPluginInvoked once immediately after construction.- Specified by:
- preparein interface- ITransportPlugin
- Parameters:
- type- the type of connection this will process.
- topoConf- Storm configuration
 
- 
getServerpublic org.apache.storm.thrift.server.TServer getServer(org.apache.storm.thrift.TProcessor processor) throws IOException, org.apache.storm.thrift.transport.TTransportException Description copied from interface:ITransportPluginCreate a server associated with a given port, service handler, and purpose.- Specified by:
- getServerin interface- ITransportPlugin
- Parameters:
- processor- service handler
- Returns:
- server
- Throws:
- IOException
- org.apache.storm.thrift.transport.TTransportException
 
- 
connectpublic org.apache.storm.thrift.transport.TTransport connect(org.apache.storm.thrift.transport.TTransport transport, String serverHost, String asUser) throws org.apache.storm.thrift.transport.TTransportException Connect to the specified server via framed transport.- Specified by:
- connectin interface- ITransportPlugin
- Parameters:
- transport- The underlying Thrift transport
- serverHost- unused
- asUser- unused
- Throws:
- org.apache.storm.thrift.transport.TTransportException
 
- 
getDefaultSubjectGet default subject.- Returns:
- the subject that will be used for all connections
 
- 
getPortpublic int getPort()Description copied from interface:ITransportPluginGet port.- Specified by:
- getPortin interface- ITransportPlugin
- Returns:
- The port this transport is using. This is not known until
 ITransportPlugin.getServer(org.apache.storm.thrift.TProcessor)has been called
 
 
-