Interface AMRegistrar

All Known Implementing Classes:
ZKClusterCoordinatorDriver

public interface AMRegistrar
Interface to register the AM. Registration prevents two AMs from running for the same Drill cluster. A normal return means that this AM now "owns" the cluster. An exception means this is a duplicate AM (or something went wrong.)

Although the interface contains a deregister call, the implementation should automatically deregister on death of the AM to prevent zombie registrations. (The production system, ZK, handles this via ephemeral znodes.)