@Component
public class Versions
extends com.marklogic.client.ext.helper.LoggingObject
Constructor and Description |
---|
Versions() |
Versions(com.marklogic.hub.HubClient hubClient) |
Versions(HubConfig hubConfig) |
Modifier and Type | Method and Description |
---|---|
static int |
compare(java.lang.String v1,
java.lang.String v2) |
protected java.lang.String |
determineVersionFromLocalProject(HubProject hubProject)
As of 5.3.0, the only time this is needed is when QuickStart tries to determine if an upgrade is needed, but
DH is not installed yet.
|
java.lang.String |
getInstalledVersion()
Depends on being able to obtain the version from an installed DH.
|
java.lang.String |
getInstalledVersion(boolean fallbackToLocalProject) |
java.lang.String |
getLocalProjectVersion() |
com.marklogic.hub.MarkLogicVersion |
getMarkLogicVersion() |
java.lang.String |
getMarkLogicVersionString() |
protected java.lang.String |
getVersionFromViaLegacyRestExtension(com.marklogic.client.DatabaseClient stagingClient) |
public Versions()
public Versions(com.marklogic.hub.HubClient hubClient)
public Versions(HubConfig hubConfig)
public java.lang.String getInstalledVersion()
public java.lang.String getInstalledVersion(boolean fallbackToLocalProject)
fallbackToLocalProject
- if true, and the version cannot be determined from the installed DH, will try to
determine the version of the local projectprotected java.lang.String getVersionFromViaLegacyRestExtension(com.marklogic.client.DatabaseClient stagingClient)
public java.lang.String getLocalProjectVersion()
protected java.lang.String determineVersionFromLocalProject(HubProject hubProject)
hubProject
- public java.lang.String getMarkLogicVersionString()
public com.marklogic.hub.MarkLogicVersion getMarkLogicVersion()
public static int compare(java.lang.String v1, java.lang.String v2)