Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/config/IConfigSource.java')
-rw-r--r--runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/config/IConfigSource.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/config/IConfigSource.java b/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/config/IConfigSource.java
new file mode 100644
index 000000000..022d76071
--- /dev/null
+++ b/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/config/IConfigSource.java
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
+ * 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:
+ * Juergen Haug
+ *
+ *******************************************************************************/
+
+package org.eclipse.etrice.runtime.java.config;
+
+import java.util.Map;
+
+public interface IConfigSource {
+
+ /**
+ * Polling interval [ms] <br>
+ * default case use <= 0
+ */
+ public int getPolling();
+
+ Map<String, Object> readValues();
+
+ void writeValues(Map<String, Object> values);
+
+ /**
+ * initial call to write values to config, without override of existing entries
+ * @param values
+ */
+ void createConfig(Map<String, Object> values);
+
+ /**
+ * called at shutdown
+ */
+ void close();
+}

Back to the top