/*******************************************************************************
* Copyright (c) 2011 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.tm.te.tcf.locator.interfaces.services;
import java.util.Collection;
import org.eclipse.tm.te.tcf.locator.interfaces.nodes.IPeerModel;
/**
* The service to update the properties of given locator model nodes.
*/
public interface ILocatorModelUpdateService extends ILocatorModelService {
/**
* Adds the given peer to the list of know peers. A previous
* mapping to a peer model with the same id as the given
* peer model is overwritten.
*
* @param peer The peer model object. Must not be null
.
*/
public void add(IPeerModel peer);
/**
* Removes the given peer from the list of known peers.
*
* @param peer The peer model object. Must not be nullnull
.
* @param localServices The list of local service names or null
.
* @param remoteServices The list of remote service names or null
.
*/
public void updatePeerServices(IPeerModel peerNode, Collection localServices, Collection remoteServices);
}