summaryrefslogtreecommitdiff
path: root/same/src/main/java/com/orbekk/same/ConnectionManager.java
blob: 8a6d3a076942b7bdb5652d1057d09a4f9c9f536f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.orbekk.same;

import com.orbekk.paxos.PaxosService;

/**
 * An interface that returns a connection for a participant.
 *
 * When testing, this interface can be mocked to use local participants only.
 */
public interface ConnectionManager {
    ClientService getClient(String url);
    MasterService getMaster(String url);
    PaxosService getPaxos(String url);
    Services.Directory getDirectory(String location);
}