diff options
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/ILocatorModelLookupService.java')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/ILocatorModelLookupService.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/ILocatorModelLookupService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/ILocatorModelLookupService.java new file mode 100644 index 000000000..4c46b9523 --- /dev/null +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/services/ILocatorModelLookupService.java @@ -0,0 +1,44 @@ +/******************************************************************************* + * 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.tcf.te.tcf.locator.interfaces.services; + +import org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel; + +/** + * The service to lookup/search in the parent locator model. + */ +public interface ILocatorModelLookupService extends ILocatorModelService { + + /** + * Lookup the peer model for the given peer id. + * + * @param id The peer id. Must not be <code>null</code>. + * @return The peer model instance, or <code>null</code> if the peer model cannot be found. + */ + public IPeerModel lkupPeerModelById(String id); + + /** + * Lookup matching peer model instances for the given agent id. + * + * @param agentId The agent id. Must not be <code>null</code>. + * @return The peer model instances, or an empty list if the given agent id could not be matched. + */ + public IPeerModel[] lkupPeerModelByAgentId(String agentId); + + /** + * Lookup matching peer model instances which supports the listed local and remote services. + * + * @param expectedLocalServices The list of local service names to be supported, or <code>null</code>. + * @param expectedRemoteServices The list of remote service names to be supported, or <code>null</code>. + * + * @return The peer model instances, or an empty list if the listed services are not supported by any of the peers. + */ + public IPeerModel[] lkupPeerModelBySupportedServices(String[] expectedLocalServices, String[] expectedRemoteServices); +} |