Package org.apache.storm.nimbus

# Class NimbusInfo

java.lang.Object
org.apache.storm.nimbus.NimbusInfo

All Implemented Interfaces:
  `Serializable`

public class NimbusInfo extends Object implements Serializable

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NimbusInfo(String host, int port, boolean isLeader)`
  `NimbusInfo(String host, int port, int tlsPort, boolean isLeader)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object o)`
  `static NimbusInfo`
  `fromConf(Map<String,Object> conf)`
  `String`
  `getHost()`
  `int`
  `getPort()`
  `int`
  `getTlsPort()`
  `int`
  `hashCode()`
  `boolean`
  `isLeader()`
  `static NimbusInfo`
  `parse(String nimbusInfo)`
  `void`
  `setLeader(boolean isLeader)`
  `String`
  `toHostPortString()`
  `String`
  `toString()`

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

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### NimbusInfo

    public NimbusInfo(String host, int port, boolean isLeader)

  - ### NimbusInfo

    public NimbusInfo(String host, int port, int tlsPort, boolean isLeader)

- ## Method Details

  - ### parse

    public static NimbusInfo parse(String nimbusInfo)

  - ### fromConf

    public static NimbusInfo fromConf(Map<String,Object> conf)

  - ### toHostPortString

    public String toHostPortString()

  - ### isLeader

    public boolean isLeader()

  - ### setLeader

    public void setLeader(boolean isLeader)

  - ### getPort

    public int getPort()

  - ### getTlsPort

    public int getTlsPort()

  - ### getHost

    public String getHost()

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`