Class TServerInstance
- java.lang.Object
-
- org.apache.accumulo.server.master.state.TServerInstance
-
- All Implemented Interfaces:
Serializable
,Comparable<TServerInstance>
public class TServerInstance extends Object implements Comparable<TServerInstance>, Serializable
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TServerInstance(String formattedString)
TServerInstance(String address, long session)
TServerInstance(Value address, org.apache.hadoop.io.Text session)
TServerInstance(TabletMetadata.Location location)
TServerInstance(HostAndPort address, long session)
TServerInstance(HostAndPort address, String session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearFutureLocation(Mutation m)
void
clearLastLocation(Mutation m)
void
clearLocation(Mutation m)
int
compareTo(TServerInstance other)
boolean
equals(Object obj)
HostAndPort
getLocation()
String
getSession()
int
hashCode()
String
host()
String
hostPort()
void
putFutureLocation(Mutation m)
void
putLastLocation(Mutation m)
void
putLocation(Mutation m)
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)
-
TServerInstance
public TServerInstance(TabletMetadata.Location location)
-
-
Method Detail
-
putLocation
public void putLocation(Mutation m)
-
putFutureLocation
public void putFutureLocation(Mutation m)
-
putLastLocation
public void putLastLocation(Mutation m)
-
clearLastLocation
public void clearLastLocation(Mutation m)
-
clearFutureLocation
public void clearFutureLocation(Mutation m)
-
clearLocation
public void clearLocation(Mutation m)
-
compareTo
public int compareTo(TServerInstance other)
- Specified by:
compareTo
in interfaceComparable<TServerInstance>
-
host
public String host()
-
hostPort
public String hostPort()
-
getLocation
public HostAndPort getLocation()
-
getSession
public String getSession()
-
-