org.apache.accumulo.server.master.state
Class TServerInstance

java.lang.Object
  extended by 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
TServerInstance(InetSocketAddress address, long session)
           
TServerInstance(InetSocketAddress address, String session)
           
TServerInstance(String address, long session)
           
TServerInstance(Value address, org.apache.hadoop.io.Text session)
           
 
Method Summary
 org.apache.hadoop.io.Text asColumnQualifier()
           
 Value asMutationValue()
           
 void clearLastLocation(Mutation m)
           
 int compareTo(TServerInstance other)
           
 boolean equals(Object obj)
           
 InetSocketAddress getLocation()
           
 String getSession()
           
 int hashCode()
           
 String host()
           
 String hostPort()
           
 int port()
           
 void putFutureLocation(Mutation m)
           
 void putLastLocation(Mutation m)
           
 void putLocation(Mutation m)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TServerInstance

public TServerInstance(InetSocketAddress address,
                       String session)

TServerInstance

public TServerInstance(InetSocketAddress address,
                       long session)

TServerInstance

public TServerInstance(String address,
                       long session)

TServerInstance

public TServerInstance(Value address,
                       org.apache.hadoop.io.Text session)
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)

compareTo

public int compareTo(TServerInstance other)
Specified by:
compareTo in interface Comparable<TServerInstance>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

port

public int port()

host

public String host()

hostPort

public String hostPort()

asColumnQualifier

public org.apache.hadoop.io.Text asColumnQualifier()

asMutationValue

public Value asMutationValue()

getLocation

public InetSocketAddress getLocation()

getSession

public String getSession()


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.