Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/ILocatorModelUpdateService.java')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/ILocatorModelUpdateService.java19
1 files changed, 16 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/ILocatorModelUpdateService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/ILocatorModelUpdateService.java
index 694ec98c4..6ea9d78d4 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/ILocatorModelUpdateService.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/ILocatorModelUpdateService.java
@@ -10,6 +10,7 @@
package org.eclipse.tcf.te.tcf.locator.interfaces.services;
import org.eclipse.tcf.protocol.IPeer;
+import org.eclipse.tcf.te.tcf.locator.interfaces.nodes.ILocatorNode;
/**
* The service to update the properties of given locator node.
@@ -20,20 +21,32 @@ public interface ILocatorModelUpdateService extends ILocatorModelService {
* Adds the given peer to the list of know peers.
*
* @param peer The peer to add. Must not be <code>null</code>.
+ * @return The new created or existing locator node.
*/
- public void add(IPeer peer);
+ public ILocatorNode add(IPeer peer);
+
+ /**
+ * Adds the given static peer to the list of know peers.
+ *
+ * @param peer The static peer to add. Must not be <code>null</code>.
+ * @param isStatic <code>true</code> if this node is a manually added static peer.
+ * @return The new created or existing locator node.
+ */
+ public ILocatorNode add(IPeer peer, boolean isStatic);
/**
* Removes the given peer from the list of known peers.
*
* @param peer The peer to remove. Must not be <code>null</code.
+ * @return The deleted locator node.
*/
- public void remove(IPeer peer);
+ public ILocatorNode remove(IPeer peer);
/**
* Update an old peer with the given new one.
* @param oldPeer The old peer to update. Must not be <code>null</code.
* @param newPeer The new peer. Must not be <code>null</code.
+ * @return The updated locator node.
*/
- public void update(IPeer oldPeer, IPeer newPeer);
+ public ILocatorNode update(IPeer oldPeer, IPeer newPeer);
}

Back to the top