public class ApplicationMetaData extends Object
Constructor and Description |
---|
ApplicationMetaData(File appDir,
String deployedByUser,
String deployedFromDir,
Long deployTimestamp,
boolean internalRedeploy,
String checkSum,
Long generation,
long previousActiveGeneration) |
ApplicationMetaData(String deployedByUser,
String deployedFromDir,
Long deployTimestamp,
boolean internalRedeploy,
String applicationName,
String checkSum,
Long generation,
long previousActiveGeneration) |
Modifier and Type | Method and Description |
---|---|
String |
asJsonString() |
static ApplicationMetaData |
fromJsonString(String jsonString) |
String |
getApplicationName()
Gets the name of the application (name of the directory from which application was deployed.
|
String |
getCheckSum()
Returns an md5 hash of the contents of the application package
|
String |
getDeployedByUser()
Gets the user who deployed the application.
|
String |
getDeployPath()
Gets the directory where the application was deployed from.
|
Long |
getDeployTimestamp()
Gets the time the application was deployed
Will return null if a problem occurred while getting metadata
|
Long |
getGeneration()
Gets the time the application was deployed
Will return null if a problem occurred while getting metadata
|
long |
getPreviousActiveGeneration()
Returns the previously active generation at the point when this application was created.
|
com.yahoo.slime.Slime |
getSlime() |
boolean |
isInternalRedeploy()
Returns whether this application generation was produced by a system internal redeployment,
not an application package change
|
String |
toString() |
public ApplicationMetaData(File appDir, String deployedByUser, String deployedFromDir, Long deployTimestamp, boolean internalRedeploy, String checkSum, Long generation, long previousActiveGeneration)
public String getApplicationName()
public String getDeployedByUser()
public String getDeployPath()
public Long getDeployTimestamp()
public Long getGeneration()
public boolean isInternalRedeploy()
public String getCheckSum()
public long getPreviousActiveGeneration()
public static ApplicationMetaData fromJsonString(String jsonString)
public com.yahoo.slime.Slime getSlime()
public String asJsonString()
Copyright © 2018. All rights reserved.