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
All Methods Static Methods Instance Methods Concrete Methods 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()
-
-
-
Method Detail
-
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()
-
-