Class MultiThriftServer<T extends ThriftServer>

java.lang.Object
org.apache.storm.security.auth.MultiThriftServer<T>

public class MultiThriftServer<T extends ThriftServer> extends Object
Manage a collection of ThriftServer. This class itself is not thread-safe.
  • Constructor Details

    • MultiThriftServer

      public MultiThriftServer(String name)
  • Method Details

    • add

      public void add(T thriftServer)
    • serve

      public void serve()
    • stop

      public void stop()
    • stopTlsServer

      public void stopTlsServer(ThriftConnectionType tlsConnectionType)
    • supportsWorkerTokens

      public boolean supportsWorkerTokens()
      Check if worker tokens are supported by any one of the thrift servers.
      Returns:
      true if any thrift server supports Worker Tokens.
    • get

      public T get(ThriftConnectionType type)