blob: 453dfeffe70185b3ddd2d4207850c0415ab63a86 (
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;
// Manual discovery request by client.
void discoveryRequest(String remoteUrl) 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;
}
|