2 * Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.raft;
10 import javax.annotation.Nullable;
13 * Interface to resolve raft actor peer addresses.
15 * @author Thomas Pantelis
17 public interface PeerAddressResolver {
19 * Resolves a raft actor peer id to it's remote actor address.
21 * @param peerId the id of the peer to resolve
22 * @return the peer's actor path string or null if not found
24 @Nullable String resolve(String peerId);