All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.nosqlbench.nb.api.metadata.ScenarioMetadata Maven / Gradle / Ivy

Go to download

The top level API module for NoSQLBench. This module should have no internal module dependencies other than the mvn-default module. All modules within NoSQLBench can safely depend on this module with circular dependencies. This module provides cross-cutting code infrastracture, such as path utilities and ways of describing services used between modules. It is also the transitive aggregation point for system-wide library dependencies for logging and testing or similar needs.

There is a newer version: 5.17.0
Show newest version
package io.nosqlbench.nb.api.metadata;

import java.util.Map;

/**
 * If an object is ScenarioMetadata, then they will be updated with a map of
 * scenario metadata. Supported types are:
 * 
    *
  • ScriptingPluginInfo
  • *
*/ public class ScenarioMetadata { private final long startedAt; private final String sessionName; private final String systemId; private final String systemFingerprint; public ScenarioMetadata(long startedAt, String sessionName, String systemId, String systemFingerprint) { this.startedAt = startedAt; this.sessionName = sessionName; this.systemId = systemId; this.systemFingerprint = systemFingerprint; } public long getStartedAt() { return startedAt; } public String getSessionName() { return sessionName; } public String getSystemId() { return systemId; } public String getSystemFingerprint() { return systemFingerprint; } public Map asMap() { return Map.of("STARTED_AT",String.valueOf(startedAt), "SESSION_NAME",sessionName, "SYSTEM_ID",systemId, "SYSTEM_FINGERPRINT", systemFingerprint); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy