Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 726f6eb09e9695000214e1efc1b66312da375be6 (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
42
43
44
45
46
47
48
49
/*******************************************************************************
 * 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;

import java.util.Map;

/**
 * Locator model scanner.
 */
public interface IScanner {

	/**
	 * Scanner configuration property: The time in millisecond between the scanner runs.
	 */
	public static String PROP_SCHEDULE = "schedule"; //$NON-NLS-1$

	/**
	 * Set or modify the current scanner configuration.
	 *
	 * @param configuration The new scanner configuration. Must not be <code>null</code>.
	 */
	public void setConfiguration(Map<String, Object> configuration);

	/**
	 * Returns the current scanner configuration.
	 *
	 * @return The current scanner configuration.
	 */
	public Map<String, Object> getConfiguration();

	/**
	 * Terminate the scanner.
	 */
	public void terminate();

	/**
	 * Returns if or if not the discovery model scanner has been terminated.
	 *
	 * @return <code>True</code> if the discovery model scanner is terminated, <code>false</code> if still active.
	 */
	public boolean isTerminated();
}

Back to the top