Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.

Commit 4d99598

Browse files
author
Burak Akguel
committed
major refactoring
* monitor classes can call callback functions * cleanup * class hierarchy is cleaner (state, progress, monitor)
1 parent 2ae13fe commit 4d99598

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3906
-2132
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018 Heinrich-Heine-Universitaet Duesseldorf, Institute of Computer Science, Department Operating Systems
2+
* Copyright (C) 2017 Heinrich-Heine-Universitaet Duesseldorf, Institute of Computer Science, Department Operating Systems
33
*
44
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
55
* the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
@@ -11,19 +11,27 @@
1111
* along with this program. If not, see <http://www.gnu.org/licenses/>
1212
*/
1313

14-
package de.hhu.bsinfo.dxmonitor.error;
14+
package de.hhu.bsinfo.dxmonitor;
1515

1616
/**
17-
* @author Burak Akguel, [email protected], 23.11.17
17+
* Interface for generating CSV data strings from objects
18+
*
19+
* @author Stefan Nothaas, [email protected], 20.02.2018
1820
*/
19-
public class CantReadFileException extends Exception {
21+
public interface CSVPrinter {
22+
/**
23+
* Create the header which describes the data
24+
*
25+
* @param p_delim The delimiter to use to separate values
26+
* @return CSV header line which describes the data
27+
*/
28+
String generateCSVHeader(final char p_delim);
29+
2030
/**
21-
* Throws an Exception because the given path is invalid.
31+
* Print the object/data as a single CSV line
2232
*
23-
* @param p_file
24-
* Path of the file
33+
* @param p_delim The delimiter to use to separate values
34+
* @return CSV line which contains the data of the object
2535
*/
26-
public CantReadFileException(final String p_file) {
27-
super("Error: Couldn't read from file " + p_file + '!');
28-
}
36+
String toCSV(final char p_delim);
2937
}

src/main/java/de/hhu/bsinfo/dxmonitor/component/AbstractComponent.java

-62
This file was deleted.

src/main/java/de/hhu/bsinfo/dxmonitor/component/CpuComponent.java

-164
This file was deleted.

0 commit comments

Comments
 (0)