Skip to content

Commit fb9c254

Browse files
committed
Create monitoring package
The `monitoring` package contains modules for monitoring and debugging a Metafacture pipeline.
1 parent 5308ef4 commit fb9c254

File tree

11 files changed

+16
-19
lines changed

11 files changed

+16
-19
lines changed

src/main/java/org/culturegraph/mf/stream/pipe/ObjectBatchLogger.java renamed to src/main/java/org/culturegraph/mf/monitoring/ObjectBatchLogger.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Copyright 2016 Christoph Böhme
3-
* Copyright 2013, 2014 Deutsche Nationalbibliothek
43
*
54
* Licensed under the Apache License, Version 2.0 the "License";
65
* you may not use this file except in compliance with the License.
@@ -14,7 +13,7 @@
1413
* See the License for the specific language governing permissions and
1514
* limitations under the License.
1615
*/
17-
package org.culturegraph.mf.stream.pipe;
16+
package org.culturegraph.mf.monitoring;
1817

1918
import java.util.HashMap;
2019
import java.util.Map;

src/main/java/org/culturegraph/mf/stream/pipe/ObjectLogger.java renamed to src/main/java/org/culturegraph/mf/monitoring/ObjectLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.pipe;
16+
package org.culturegraph.mf.monitoring;
1717

1818
import org.culturegraph.mf.framework.FluxCommand;
1919
import org.culturegraph.mf.framework.ObjectReceiver;

src/main/java/org/culturegraph/mf/stream/pipe/ObjectTimer.java renamed to src/main/java/org/culturegraph/mf/monitoring/ObjectTimer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.pipe;
16+
package org.culturegraph.mf.monitoring;
1717

1818
import org.culturegraph.mf.framework.FluxCommand;
1919
import org.culturegraph.mf.framework.ObjectPipe;

src/main/java/org/culturegraph/mf/stream/pipe/StreamBatchLogger.java renamed to src/main/java/org/culturegraph/mf/monitoring/StreamBatchLogger.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Copyright 2016 Christoph Böhme
3-
* Copyright 2013, 2014 Deutsche Nationalbibliothek
43
*
54
* Licensed under the Apache License, Version 2.0 the "License";
65
* you may not use this file except in compliance with the License.
@@ -14,7 +13,7 @@
1413
* See the License for the specific language governing permissions and
1514
* limitations under the License.
1615
*/
17-
package org.culturegraph.mf.stream.pipe;
16+
package org.culturegraph.mf.monitoring;
1817

1918
import java.util.HashMap;
2019
import java.util.Map;

src/main/java/org/culturegraph/mf/stream/pipe/StreamLogger.java renamed to src/main/java/org/culturegraph/mf/monitoring/StreamLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.pipe;
16+
package org.culturegraph.mf.monitoring;
1717

1818
import org.culturegraph.mf.framework.FluxCommand;
1919
import org.culturegraph.mf.framework.StreamReceiver;

src/main/java/org/culturegraph/mf/stream/pipe/StreamTimer.java renamed to src/main/java/org/culturegraph/mf/monitoring/StreamTimer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.pipe;
16+
package org.culturegraph.mf.monitoring;
1717

1818
import org.culturegraph.mf.framework.FluxCommand;
1919
import org.culturegraph.mf.framework.StreamPipe;

src/main/java/org/culturegraph/mf/stream/pipe/TimerBase.java renamed to src/main/java/org/culturegraph/mf/monitoring/TimerBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.pipe;
16+
package org.culturegraph.mf.monitoring;
1717

1818
import org.culturegraph.mf.commons.TimeUtil;
1919
import org.culturegraph.mf.framework.Receiver;

src/main/resources/flux-commands.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ write-xml-files org.culturegraph.mf.xml.XmlFilenameWriter
7676
write-files org.culturegraph.mf.io.ObjectFileWriter
7777
print org.culturegraph.mf.io.ObjectStdoutWriter
7878

79-
log-stream org.culturegraph.mf.stream.pipe.StreamLogger
80-
log-object org.culturegraph.mf.stream.pipe.ObjectLogger
81-
log-time org.culturegraph.mf.stream.pipe.ObjectTimer
82-
log-stream-time org.culturegraph.mf.stream.pipe.StreamTimer
79+
log-stream org.culturegraph.mf.monitoring.StreamLogger
80+
log-object org.culturegraph.mf.monitoring.ObjectLogger
81+
log-time org.culturegraph.mf.monitoring.ObjectTimer
82+
log-stream-time org.culturegraph.mf.monitoring.StreamTimer
8383

8484
change-id org.culturegraph.mf.mangling.RecordIdChanger
8585
flatten org.culturegraph.mf.mangling.StreamFlattener
@@ -99,8 +99,8 @@ xml-tee org.culturegraph.mf.plumbing.XmlTee
9999
stream-to-xml org.culturegraph.mf.xml.SimpleXmlEncoder
100100
rdf-macros org.culturegraph.mf.stream.pipe.RdfMacroPipe
101101

102-
batch-log org.culturegraph.mf.stream.pipe.StreamBatchLogger
103-
object-batch-log org.culturegraph.mf.stream.pipe.ObjectBatchLogger
102+
batch-log org.culturegraph.mf.monitoring.StreamBatchLogger
103+
object-batch-log org.culturegraph.mf.monitoring.ObjectBatchLogger
104104
batch-reset org.culturegraph.mf.flowcontrol.StreamBatchResetter
105105

106106
pass-through org.culturegraph.mf.plumbing.IdentityStreamPipe

src/test/java/org/culturegraph/mf/stream/pipe/ObjectTimerTest.java renamed to src/test/java/org/culturegraph/mf/monitoring/ObjectTimerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.pipe;
16+
package org.culturegraph.mf.monitoring;
1717

1818
import org.culturegraph.mf.framework.helpers.DefaultObjectReceiver;
1919
import org.junit.Before;

src/test/java/org/culturegraph/mf/stream/pipe/StreamLoggerTest.java renamed to src/test/java/org/culturegraph/mf/monitoring/StreamLoggerTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Copyright 2016 Christoph Böhme
3-
* Copyright 2013, 2014 Deutsche Nationalbibliothek
43
*
54
* Licensed under the Apache License, Version 2.0 the "License";
65
* you may not use this file except in compliance with the License.
@@ -14,7 +13,7 @@
1413
* See the License for the specific language governing permissions and
1514
* limitations under the License.
1615
*/
17-
package org.culturegraph.mf.stream.pipe;
16+
package org.culturegraph.mf.monitoring;
1817

1918
import static org.mockito.Mockito.inOrder;
2019

0 commit comments

Comments
 (0)