public class ApplicationMetaData extends Object
Modifier and Type | Field and Description |
---|---|
private String |
appName |
private String |
checkSum |
private String |
deployedByUser |
private String |
deployedFromDir |
private long |
deployTimestamp |
private long |
generation |
private long |
previousActiveGeneration |
Constructor and Description |
---|
ApplicationMetaData(File appDir,
String deployedByUser,
String deployedFromDir,
Long deployTimestamp,
String checkSum,
Long generation,
long previousActiveGeneration) |
ApplicationMetaData(String deployedByUser,
String deployedFromDir,
Long deployTimestamp,
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() |
String |
toString() |
private final String deployedByUser
private final String deployedFromDir
private final long deployTimestamp
private final long generation
private final long previousActiveGeneration
private final String checkSum
private final String appName
public ApplicationMetaData(File appDir, String deployedByUser, String deployedFromDir, Long deployTimestamp, String checkSum, Long generation, long previousActiveGeneration)
public String getApplicationName()
public String getDeployedByUser()
public String getDeployPath()
public Long getDeployTimestamp()
public Long getGeneration()
public String getCheckSum()
public long getPreviousActiveGeneration()
public static ApplicationMetaData fromJsonString(String jsonString)
public com.yahoo.slime.Slime getSlime()
public String asJsonString()
Copyright © 2017. All rights reserved.