Package com.yahoo.config.application.api
Class ApplicationMetaData
- java.lang.Object
-
- com.yahoo.config.application.api.ApplicationMetaData
-
public class ApplicationMetaData extends Object
Metadata about an application package.- Author:
- hmusum
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
asJsonBytes()
String
asJsonString()
static ApplicationMetaData
fromJsonString(String jsonString)
com.yahoo.config.provision.ApplicationId
getApplicationId()
String
getChecksum()
Returns an md5 hash of the contents of the application packageString
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.Long
getGeneration()
Returns the config generation of this application instance.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 changeString
toString()
-
-
-
Method Detail
-
getDeployedByUser
public String getDeployedByUser()
Gets the user who deployed the application. Will return null if a problem occurred while getting metadata- Returns:
- user name for the user who ran "deploy-application"
-
getDeployPath
public String getDeployPath()
Gets the directory where the application was deployed from. Will return null if a problem occurred while getting metadata- Returns:
- path to raw deploy directory (for the original application)
-
getApplicationId
public com.yahoo.config.provision.ApplicationId getApplicationId()
-
getDeployTimestamp
public Long getDeployTimestamp()
Gets the time the application was deployed. Will return null if a problem occurred while getting metadata.- Returns:
- when this application version was deployed in epoch ms
-
getGeneration
public Long getGeneration()
Returns the config generation of this application instance. Will return null if a problem occurred while getting metadata.
-
isInternalRedeploy
public boolean isInternalRedeploy()
Returns whether this application generation was produced by a system internal redeployment, not an application package change
-
getChecksum
public String getChecksum()
Returns an md5 hash of the contents of the application package
-
getPreviousActiveGeneration
public long getPreviousActiveGeneration()
Returns the previously active generation at the point when this application was created.
-
fromJsonString
public static ApplicationMetaData fromJsonString(String jsonString)
-
getSlime
public com.yahoo.slime.Slime getSlime()
-
asJsonString
public String asJsonString()
-
asJsonBytes
public byte[] asJsonBytes()
-
-