Skip to content
Snippets Groups Projects
Commit 05f218b6 authored by Christian Wulf's avatar Christian Wulf
Browse files

improved package structure

parent f52a43f7
No related branches found
No related tags found
No related merge requests found
Showing
with 35 additions and 76 deletions
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker.className; package teetime.stage.className;
import java.util.HashMap; import java.util.HashMap;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker.className; package teetime.stage.className;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker.className; package teetime.stage.className;
import java.io.File; import java.io.File;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker.className; package teetime.stage.className;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.File; import java.io.File;
......
package teetime.stage.io;
import java.nio.ByteBuffer;
import kieker.common.record.IMonitoringRecord;
import kieker.common.util.registry.ILookup;
public interface IRecordFactoryMethod {
IMonitoringRecord create(ByteBuffer buffer, ILookup<String> stringRegistry);
}
package teetime.stage.io;
import java.nio.ByteBuffer;
import java.util.HashMap;
import java.util.Map;
import kieker.common.exception.MonitoringRecordException;
import kieker.common.record.IMonitoringRecord;
import kieker.common.util.registry.ILookup;
public final class RecordFactory {
private final Map<String, IRecordFactoryMethod> recordFactoryMethods = new HashMap<String, IRecordFactoryMethod>();
public IMonitoringRecord create(final int clazzId, final ByteBuffer buffer, final ILookup<String> stringRegistry) throws MonitoringRecordException {
String recordClassName = stringRegistry.get(clazzId);
IRecordFactoryMethod recordFactoryMethod = this.recordFactoryMethods.get(recordClassName);
if (recordFactoryMethod == null) {
throw new IllegalStateException("recordClassName: " + recordClassName);
}
return recordFactoryMethod.create(buffer, stringRegistry);
}
public void register(final String recordClassName, final IRecordFactoryMethod recordFactoryMethod) {
this.recordFactoryMethods.put(recordClassName, recordFactoryMethod);
}
}
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.io; package teetime.stage.io.database;
import java.sql.Connection; import java.sql.Connection;
import java.sql.DriverManager; import java.sql.DriverManager;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker; package teetime.stage.io.filesystem;
import java.io.File; import java.io.File;
...@@ -26,11 +26,11 @@ import teetime.framework.pipe.PipeFactoryRegistry.PipeOrdering; ...@@ -26,11 +26,11 @@ import teetime.framework.pipe.PipeFactoryRegistry.PipeOrdering;
import teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication; import teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication;
import teetime.stage.FileExtensionSwitch; import teetime.stage.FileExtensionSwitch;
import teetime.stage.basic.merger.Merger; import teetime.stage.basic.merger.Merger;
import teetime.stage.className.ClassNameRegistryCreationFilter;
import teetime.stage.className.ClassNameRegistryRepository;
import teetime.stage.io.Directory2FilesFilter; import teetime.stage.io.Directory2FilesFilter;
import teetime.stage.kieker.className.ClassNameRegistryCreationFilter; import teetime.stage.io.filesystem.format.binary.file.BinaryFile2RecordFilter;
import teetime.stage.kieker.className.ClassNameRegistryRepository; import teetime.stage.io.filesystem.format.text.file.DatFile2RecordFilter;
import teetime.stage.kieker.fileToRecord.BinaryFile2RecordFilter;
import teetime.stage.kieker.fileToRecord.DatFile2RecordFilter;
import kieker.common.record.IMonitoringRecord; import kieker.common.record.IMonitoringRecord;
import kieker.common.util.filesystem.BinaryCompressionMethod; import kieker.common.util.filesystem.BinaryCompressionMethod;
......
package teetime.stage.kieker; package teetime.stage.io.filesystem.format.binary;
import java.io.File; import java.io.File;
import teetime.framework.InputPort; import teetime.framework.InputPort;
import teetime.framework.OldPipeline; import teetime.framework.OldPipeline;
import teetime.framework.OutputPort; import teetime.framework.OutputPort;
import teetime.stage.kieker.className.ClassNameRegistryCreationFilter; import teetime.stage.className.ClassNameRegistryCreationFilter;
import teetime.stage.kieker.className.ClassNameRegistryRepository; import teetime.stage.className.ClassNameRegistryRepository;
import teetime.stage.kieker.fileToRecord.BinaryFile2RecordFilter; import teetime.stage.io.filesystem.format.binary.file.BinaryFile2RecordFilter;
import kieker.common.record.IMonitoringRecord; import kieker.common.record.IMonitoringRecord;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker.fileToRecord; package teetime.stage.io.filesystem.format.binary.file;
import java.io.DataInputStream; import java.io.DataInputStream;
import java.io.File; import java.io.File;
...@@ -22,7 +22,7 @@ import java.io.IOException; ...@@ -22,7 +22,7 @@ import java.io.IOException;
import teetime.framework.ConsumerStage; import teetime.framework.ConsumerStage;
import teetime.framework.OutputPort; import teetime.framework.OutputPort;
import teetime.framework.signal.OnStartingException; import teetime.framework.signal.OnStartingException;
import teetime.stage.kieker.className.ClassNameRegistryRepository; import teetime.stage.className.ClassNameRegistryRepository;
import kieker.common.exception.MonitoringRecordException; import kieker.common.exception.MonitoringRecordException;
import kieker.common.record.IMonitoringRecord; import kieker.common.record.IMonitoringRecord;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker.fileToRecord; package teetime.stage.io.filesystem.format.binary.file;
import java.io.DataInputStream; import java.io.DataInputStream;
import java.io.EOFException; import java.io.EOFException;
...@@ -22,8 +22,8 @@ import java.io.IOException; ...@@ -22,8 +22,8 @@ import java.io.IOException;
import org.slf4j.Logger; import org.slf4j.Logger;
import teetime.stage.kieker.className.ClassNameRegistry; import teetime.stage.className.ClassNameRegistry;
import teetime.stage.kieker.className.ClassNameRegistryRepository; import teetime.stage.className.ClassNameRegistryRepository;
import kieker.common.exception.MonitoringRecordException; import kieker.common.exception.MonitoringRecordException;
import kieker.common.record.AbstractMonitoringRecord; import kieker.common.record.AbstractMonitoringRecord;
......
package teetime.stage.kieker; package teetime.stage.io.filesystem.format.text;
import java.io.File; import java.io.File;
import teetime.framework.InputPort; import teetime.framework.InputPort;
import teetime.framework.OldPipeline; import teetime.framework.OldPipeline;
import teetime.framework.OutputPort; import teetime.framework.OutputPort;
import teetime.stage.kieker.className.ClassNameRegistryCreationFilter; import teetime.stage.className.ClassNameRegistryCreationFilter;
import teetime.stage.kieker.className.ClassNameRegistryRepository; import teetime.stage.className.ClassNameRegistryRepository;
import teetime.stage.kieker.fileToRecord.DatFile2RecordFilter; import teetime.stage.io.filesystem.format.text.file.DatFile2RecordFilter;
import kieker.common.record.IMonitoringRecord; import kieker.common.record.IMonitoringRecord;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker.fileToRecord; package teetime.stage.io.filesystem.format.text.file;
import java.io.File; import java.io.File;
...@@ -21,9 +21,8 @@ import teetime.framework.InputPort; ...@@ -21,9 +21,8 @@ import teetime.framework.InputPort;
import teetime.framework.OutputPort; import teetime.framework.OutputPort;
import teetime.framework.OldPipeline; import teetime.framework.OldPipeline;
import teetime.framework.pipe.SingleElementPipe; import teetime.framework.pipe.SingleElementPipe;
import teetime.stage.className.ClassNameRegistryRepository;
import teetime.stage.io.File2TextLinesFilter; import teetime.stage.io.File2TextLinesFilter;
import teetime.stage.kieker.className.ClassNameRegistryRepository;
import teetime.stage.kieker.fileToRecord.textLine.TextLine2RecordFilter;
import kieker.common.record.IMonitoringRecord; import kieker.common.record.IMonitoringRecord;
......
...@@ -13,12 +13,12 @@ ...@@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker.fileToRecord; package teetime.stage.io.filesystem.format.text.file;
import java.io.File; import java.io.File;
import teetime.stage.kieker.className.ClassNameRegistry; import teetime.stage.className.ClassNameRegistry;
import teetime.stage.kieker.className.ClassNameRegistryRepository; import teetime.stage.className.ClassNameRegistryRepository;
import teetime.stage.util.MappingException; import teetime.stage.util.MappingException;
import kieker.common.exception.IllegalRecordFormatException; import kieker.common.exception.IllegalRecordFormatException;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker.fileToRecord.textLine; package teetime.stage.io.filesystem.format.text.file;
import java.util.Map; import java.util.Map;
......
...@@ -14,15 +14,14 @@ ...@@ -14,15 +14,14 @@
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker.fileToRecord.textLine; package teetime.stage.io.filesystem.format.text.file;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
import teetime.framework.ConsumerStage; import teetime.framework.ConsumerStage;
import teetime.framework.OutputPort; import teetime.framework.OutputPort;
import teetime.stage.kieker.className.ClassNameRegistryRepository; import teetime.stage.className.ClassNameRegistryRepository;
import teetime.stage.kieker.fileToRecord.RecordFromTextLineCreator;
import teetime.stage.util.MappingException; import teetime.stage.util.MappingException;
import teetime.stage.util.TextLine; import teetime.stage.util.TextLine;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.io; package teetime.stage.io.network;
import java.io.IOException; import java.io.IOException;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
***************************************************************************/ ***************************************************************************/
package teetime.stage.kieker.traceReconstruction; package teetime.stage.trace.traceReconstruction;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
......
package teetime.stage.kieker.traceReduction; package teetime.stage.trace.traceReduction;
import kieker.analysis.plugin.filter.flow.TraceEventRecords; import kieker.analysis.plugin.filter.flow.TraceEventRecords;
......
package teetime.stage.kieker.traceReduction; package teetime.stage.trace.traceReduction;
import java.io.Serializable; import java.io.Serializable;
import java.util.Comparator; import java.util.Comparator;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment