Class TabletServerIdImpl
- java.lang.Object
-
- org.apache.accumulo.core.manager.balancer.TabletServerIdImpl
-
- All Implemented Interfaces:
Comparable<TabletServerId>
,TabletServerId
public class TabletServerIdImpl extends Object implements TabletServerId
- Since:
- 2.1.0
-
-
Constructor Summary
Constructors Constructor Description TabletServerIdImpl(String host, int port, String session)
TabletServerIdImpl(TServerInstance tServerInstance)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TabletServerId o)
boolean
equals(Object o)
static TabletServerIdImpl
fromThrift(TServerInstance tsi)
String
getHost()
int
getPort()
String
getSession()
int
hashCode()
String
toString()
TServerInstance
toThrift()
static TServerInstance
toThrift(TabletServerId tabletServerId)
-
-
-
Constructor Detail
-
TabletServerIdImpl
public TabletServerIdImpl(TServerInstance tServerInstance)
-
-
Method Detail
-
fromThrift
public static TabletServerIdImpl fromThrift(TServerInstance tsi)
-
getHost
public String getHost()
- Specified by:
getHost
in interfaceTabletServerId
-
getPort
public int getPort()
- Specified by:
getPort
in interfaceTabletServerId
-
getSession
public String getSession()
- Specified by:
getSession
in interfaceTabletServerId
-
compareTo
public int compareTo(TabletServerId o)
- Specified by:
compareTo
in interfaceComparable<TabletServerId>
-
toThrift
public TServerInstance toThrift()
-
toThrift
public static TServerInstance toThrift(TabletServerId tabletServerId)
-
-