Class TServerInstance
- java.lang.Object
-
- org.apache.accumulo.core.metadata.TServerInstance
-
- All Implemented Interfaces:
Comparable<TServerInstance>
public class TServerInstance extends Object implements Comparable<TServerInstance>
A tablet is assigned to a tablet server at the given address as long as it is alive and well. When the tablet server is restarted, the instance information it advertises will change. Therefore tablet assignments can be considered out-of-date if the tablet server instance information has been changed.
-
-
Constructor Summary
Constructors Constructor Description TServerInstance(String formattedString)
TServerInstance(String address, long session)
TServerInstance(Value address, org.apache.hadoop.io.Text session)
TServerInstance(HostAndPort address, long session)
TServerInstance(HostAndPort address, String session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TServerInstance other)
boolean
equals(Object obj)
String
getHost()
HostAndPort
getHostAndPort()
String
getHostPort()
String
getHostPortSession()
String
getSession()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
TServerInstance
public TServerInstance(HostAndPort address, String session)
-
TServerInstance
public TServerInstance(String formattedString)
-
TServerInstance
public TServerInstance(HostAndPort address, long session)
-
TServerInstance
public TServerInstance(String address, long session)
-
TServerInstance
public TServerInstance(Value address, org.apache.hadoop.io.Text session)
-
-
Method Detail
-
compareTo
public int compareTo(TServerInstance other)
- Specified by:
compareTo
in interfaceComparable<TServerInstance>
-
getHostPortSession
public String getHostPortSession()
-
getHost
public String getHost()
-
getHostPort
public String getHostPort()
-
getHostAndPort
public HostAndPort getHostAndPort()
-
getSession
public String getSession()
-
-