Package com.yahoo.config.application.api
Class ApplicationMetaData
java.lang.Object
com.yahoo.config.application.api.ApplicationMetaData
Metadata about an application package.
- Author:
- hmusum
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationMetaData(Long deployTimestamp, boolean internalRedeploy, com.yahoo.config.provision.ApplicationId applicationId, String checksum, Long generation, long previousActiveGeneration) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]static ApplicationMetaDatafromJsonString(String jsonString) com.yahoo.config.provision.ApplicationIdReturns an MD5 hash of the contents of the application packageGets the time the application was deployed (in milliseconds since epoch).Returns the config generation of this application instance.longReturns the previously active generation at the point when this application was created.com.yahoo.slime.SlimegetSlime()booleanReturns whether this application generation was produced by a system internal redeployment, not an application package changetoString()
-
Constructor Details
-
ApplicationMetaData
-
-
Method Details
-
getApplicationId
public com.yahoo.config.provision.ApplicationId getApplicationId() -
getDeployTimestamp
Gets the time the application was deployed (in milliseconds since epoch). Will return null if a problem occurred while getting metadata.- Returns:
- when this application version was deployed in epoch ms
-
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
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. -
toString
-
fromJsonString
-
getSlime
public com.yahoo.slime.Slime getSlime() -
asJsonBytes
public byte[] asJsonBytes()
-