-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44fd5cd
commit 55fc0d1
Showing
15 changed files
with
66 additions
and
174 deletions.
There are no files selected for viewing
38 changes: 0 additions & 38 deletions
38
...-extensions/src/main/java/io/nosqlbench/engine/extensions/files/FileAccessPluginData.java
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
engine-extensions/src/main/java/io/nosqlbench/engine/extensions/files/files.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
...tensions/src/main/java/io/nosqlbench/engine/extensions/histologger/HdrHistoLogPlugin.java
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
...ions/src/main/java/io/nosqlbench/engine/extensions/histologger/HdrHistoLogPluginData.java
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
...nsions/src/main/java/io/nosqlbench/engine/extensions/histologger/histologger.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
nb-api/src/main/java/io/nosqlbench/api/histologger/HdrHistoLog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (c) 2022-2023 nosqlbench | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
package io.nosqlbench.api.histologger; | ||
|
||
import io.nosqlbench.api.engine.metrics.HistoIntervalLogger; | ||
import io.nosqlbench.api.engine.util.Unit; | ||
import io.nosqlbench.components.NBBaseComponent; | ||
import io.nosqlbench.components.NBComponent; | ||
|
||
import java.io.File; | ||
import java.util.regex.Pattern; | ||
|
||
public class HdrHistoLog extends NBBaseComponent { | ||
|
||
public HdrHistoLog(NBComponent baseComponent) { | ||
super(baseComponent); | ||
} | ||
|
||
public void logHistoIntervals(String session, String pattern, String filename, String interval) { | ||
if (filename.contains("_SESSION_")) { | ||
filename = filename.replace("_SESSION_", session); | ||
} | ||
Pattern compiledPattern = Pattern.compile(pattern); | ||
File logfile = new File(filename); | ||
long intervalMillis = Unit.msFor(interval).orElseThrow(() -> | ||
new RuntimeException("Unable to parse interval spec:'" + interval + '\'')); | ||
|
||
HistoIntervalLogger histoIntervalLogger = | ||
new HistoIntervalLogger(session, logfile, compiledPattern, intervalMillis); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters