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/IScanner.java')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/IScanner.java49
1 files changed, 49 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/IScanner.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/IScanner.java
new file mode 100644
index 000000000..784dbedd5
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/interfaces/IScanner.java
@@ -0,0 +1,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