Commit 11e3bb53 authored by Joerg Domaschka's avatar Joerg Domaschka

add version string.

parent 4fdb0d65
......@@ -24,6 +24,7 @@ import org.slf4j.LoggerFactory;
import de.uniulm.omi.cloudiator.lance.LcaConstants;
import de.uniulm.omi.cloudiator.lance.lca.LifecycleAgent;
import de.uniulm.omi.cloudiator.lance.util.Registrator;
import de.uniulm.omi.cloudiator.lance.util.Version;
public final class LifecycleAgentBooter {
......@@ -32,7 +33,7 @@ public final class LifecycleAgentBooter {
private static volatile LifecycleAgentImpl lca;
public static void main(String[] args) {
LOGGER.info("LifecycleAgentBooter: starting.");
LOGGER.info("LifecycleAgentBooter: starting. running version: " + Version.getVersionString());
lca = createAgentImplementation();
LifecycleAgent stub = reg.export(lca, LcaConstants.AGENT_RMI_PORT);
......
package de.uniulm.omi.cloudiator.lance.util;
public final class Version {
public static final String LANCE_VERSION_NUMBER = "v0.3";
public static final String LANCE_VERSION_BRANCH = "main";
public static final String getVersionString() {
return LANCE_VERSION_NUMBER + "@" + LANCE_VERSION_BRANCH;
}
private Version() {
// no instances of this class //
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment