Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-12-13 09:22:07 +0000
committerTobias Schwarz2014-01-09 05:51:33 +0000
commit5271285e0ab605e589963b553785fd102d3f70d7 (patch)
tree0f60c5ca03e79c87b46334be251f56df5b4045ab /target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/IPeerModelRefreshService.java
parent90c9d157577333df9b9fdff9b1ff52ff63d2e813 (diff)
downloadorg.eclipse.tcf-5271285e0ab605e589963b553785fd102d3f70d7.tar.gz
org.eclipse.tcf-5271285e0ab605e589963b553785fd102d3f70d7.tar.xz
org.eclipse.tcf-5271285e0ab605e589963b553785fd102d3f70d7.zip
Target Explorer: rework peer model
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/IPeerModelRefreshService.java')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/IPeerModelRefreshService.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/IPeerModelRefreshService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/IPeerModelRefreshService.java
new file mode 100644
index 000000000..dc683ea76
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/IPeerModelRefreshService.java
@@ -0,0 +1,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.IPeerNode;
+
+/**
+ * The service to refresh the parent locator model from remote.
+ */
+public interface IPeerModelRefreshService extends IPeerModelService {
+
+ /**
+ * 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(IPeerNode[] nodes, ICallback callback);
+}

Back to the top