Package org.apache.storm.security.auth
Class ThriftServer
java.lang.Object
org.apache.storm.security.auth.ThriftServer
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionThriftServer(Map<String, Object> conf, org.apache.storm.thrift.TProcessor processor, ThriftConnectionType type) 
- 
Method Summary
- 
Field Details- 
processorprotected final org.apache.storm.thrift.TProcessor processor
 
- 
- 
Constructor Details- 
ThriftServerpublic ThriftServer(Map<String, Object> conf, org.apache.storm.thrift.TProcessor processor, ThriftConnectionType type) 
 
- 
- 
Method Details- 
stoppublic void stop()
- 
isServingpublic boolean isServing()Check whether serving.- Returns:
- true if ThriftServer is listening to requests?
 
- 
servepublic void serve()
- 
getPortpublic int getPort()Get port.- Returns:
- The port this server is/will be listening on
 
- 
getTypeGet type.- Returns:
- The type of server
 
- 
supportsWorkerTokenspublic boolean supportsWorkerTokens()Check if worker tokens are supported by this thrift server.- Returns:
- true if they are else false.
 
- 
getConf
- 
getProcessorpublic org.apache.storm.thrift.TProcessor getProcessor()
 
-