public class ADefaultApplicationInfoProvider extends Object implements AApplicationInfoProvider
| Constructor and Description |
|---|
ADefaultApplicationInfoProvider(String applicationName,
String version) |
ADefaultApplicationInfoProvider(String applicationName,
String version,
String deployment,
String nodeId) |
| Modifier and Type | Method and Description |
|---|---|
static String |
calcDeployment()
provides a 'deployment' string based on machine and user
|
static String |
calcHtmlColor(AApplicationInfoProvider appInfo)
calculates an HTML color code based on the hash codes of the application info values.
|
String |
getApplicationName()
This is a high-level name of the application per se, regardless of version or deployment.
|
String |
getDeployment()
This string identifies one 'instance' of a system.
|
String |
getHtmlColorCode()
This color code is used in presentation to allows users to distinguish between different deployments at a glance, e.g.
|
String |
getNodeId()
This string is relevant only in a clustered deployment, where it distinguishes between different nodes of a
cluster.
|
String |
getVersion()
This is the logical name of the software version.
|
public ADefaultApplicationInfoProvider(String applicationName, String version) throws UnknownHostException
UnknownHostExceptionpublic String getApplicationName()
AApplicationInfoProvidergetApplicationName in interface AApplicationInfoProviderpublic String getVersion()
AApplicationInfoProvidergetVersion in interface AApplicationInfoProviderpublic String getDeployment()
AApplicationInfoProviderThis value is intended to allow aggregation (or comparison) of values from several JVMs in a central database.
This could be the name of a stage, e.g. 'prod' or 'qa-1', or for local developer deployments something like 'local-arno'.
getDeployment in interface AApplicationInfoProviderpublic String getNodeId()
AApplicationInfoProvidergetNodeId in interface AApplicationInfoProviderpublic String getHtmlColorCode()
AApplicationInfoProviderThere is a generic implementation that calculates the HTML color code from the other values.
getHtmlColorCode in interface AApplicationInfoProviderpublic static String calcDeployment() throws UnknownHostException
UnknownHostExceptionpublic static String calcHtmlColor(AApplicationInfoProvider appInfo)
Copyright © 2016. All rights reserved.