summaryrefslogtreecommitdiff
path: root/opendc-trace/opendc-trace-wfformat/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-trace/opendc-trace-wfformat/src/main')
-rw-r--r--opendc-trace/opendc-trace-wfformat/src/main/kotlin/org/opendc/trace/wfformat/WfFormatTraceFormat.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/opendc-trace/opendc-trace-wfformat/src/main/kotlin/org/opendc/trace/wfformat/WfFormatTraceFormat.kt b/opendc-trace/opendc-trace-wfformat/src/main/kotlin/org/opendc/trace/wfformat/WfFormatTraceFormat.kt
index 825c3d6d..c75e3cbb 100644
--- a/opendc-trace/opendc-trace-wfformat/src/main/kotlin/org/opendc/trace/wfformat/WfFormatTraceFormat.kt
+++ b/opendc-trace/opendc-trace-wfformat/src/main/kotlin/org/opendc/trace/wfformat/WfFormatTraceFormat.kt
@@ -39,6 +39,10 @@ public class WfFormatTraceFormat : TraceFormat {
override val name: String = "wfformat"
+ override fun create(path: Path) {
+ throw UnsupportedOperationException("Writing not supported for this format")
+ }
+
override fun getTables(path: Path): List<String> = listOf(TABLE_TASKS)
override fun getDetails(path: Path, table: String): TableDetails {
@@ -64,4 +68,8 @@ public class WfFormatTraceFormat : TraceFormat {
else -> throw IllegalArgumentException("Table $table not supported")
}
}
+
+ override fun newWriter(path: Path, table: String): TableWriter {
+ throw UnsupportedOperationException("Writing not supported for this format")
+ }
}