blob: 85e655f97966c566c23c5c9654df80bbb58c75d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*******************************************************************************
* Copyright (c) 2011, 2013 Wind River Systems, Inc. and others. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.tcf.te.tcf.locator.interfaces.services;
import org.eclipse.tcf.te.runtime.interfaces.callback.ICallback;
import org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel;
/**
* The service to refresh the parent locator model from remote.
*/
public interface ILocatorModelRefreshService extends ILocatorModelService {
/**
* Refreshes the list of known peers from the local locator service
* and update the locator model.
*
* @param callback The callback to invoke once the refresh operation finished, or <code>null</code>.
*/
public void refresh(ICallback callback);
/**
* Refreshes the list of static peers only and merge them with the peers
* already known to the locator model via the dynamic discovery.
*/
public void refreshStaticPeers();
/**
* Refresh the agent ID's of the given or all reachable static peers.
*
* @param nodes The list of nodes to refresh or <code>null</code> to refresh all.
* @param callback The callback to invoke once the refresh operation finished, or <code>null</code>.
*/
public void refreshAgentIDs(IPeerModel[] nodes, ICallback callback);
}
|