com.twitter.common.zookeeper
Interface ServerSet.EndpointStatus

Enclosing interface:
ServerSet

public static interface ServerSet.EndpointStatus

A handle to a service endpoint's status data that allows updating it to track current events.


Method Summary
 void update(Status status)
          Attempts to update the status of the service endpoint associated with this endpoint.
 

Method Detail

update

void update(Status status)
            throws ServerSet.UpdateException
Attempts to update the status of the service endpoint associated with this endpoint. If the status is Status#DEAD then the endpoint will be removed from the server set.

Parameters:
status - the current status of the endpoint
Throws:
ServerSet.UpdateException - if there was a problem writing the update