Package org.apache.storm.security.auth

## 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 Summary

    Constructors
    Constructor | Description
    --- | ---
    `MultiThriftServer​(String name)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `add​(T thriftServer)` |
    `T` | `get​(ThriftConnectionType type)` |
    `void` | `serve()` |
    `void` | `stop()` |
    `void` | `stopTlsServer​(ThriftConnectionType tlsConnectionType)` |
    `boolean` | `supportsWorkerTokens()` | Check if worker tokens are supported by any one of the thrift servers.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MultiThriftServer

          public MultiThriftServer​(String name)

  - ### Method Detail

    - #### 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)