blob: 8d460db6d0032785354058deee292d5a51e7e1c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package com.orbekk.same;
public interface ClientService {
void notifyNetwork(String networkName, String masterUrl) throws Exception;
void setState(String component, String data, long revision) throws Exception;
/** A new master takes over.
*
* @param masterUrl The new master URL.
* @param masterId The ID of the new master. Only accept if this is higher
* than the current master.
*/
void masterTakeover(String masterUrl, String networkName,
int masterId) throws Exception;
/** The master is down, so start a new master election. */
void masterDown(int masterId) throws Exception;
}
|