blob: 97215e0006f5091bb9cf843f2a018f223558fc44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package com.orbekk.same;
public interface ClientService {
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;
}
|