public class ServiceInfo extends Object
Constructor and Description |
---|
ServiceInfo() |
public boolean isDeleted()
public void setDeleted(boolean deleted)
public String getName()
public void setName(String name)
public String getVersion()
public void setVersion(String version)
public String getUser()
public void setUser(String user)
public String getComment()
public void setComment(String comment)
public List<PropertyInfo> getProperties()
public List<ComponentInfo> getComponents()
public boolean isClientOnlyService()
public ComponentInfo getClientComponent()
public StackServiceResponse convertToResponse()
public boolean hasConfigType(String type)
type
- the config typetrue
if the service defines the supplied typepublic boolean hasPropertyFor(String type, Collection<String> keyNames)
type
- the config typekeyNames
- the names of all the config keys for the given typetrue
if the config is stalepublic String getSchemaVersion()
public void setSchemaVersion(String schemaVersion)
public String getServicePackageFolder()
public void setServicePackageFolder(String servicePackageFolder)
public Map<String,ServiceOsSpecific> getOsSpecifics()
public void setOsSpecifics(Map<String,ServiceOsSpecific> serviceOsSpecificsMap)
public List<CustomCommandDefinition> getCustomCommands()
public void setCustomCommands(List<CustomCommandDefinition> customCommands)
public CommandScriptDefinition getCommandScript()
public void setCommandScript(CommandScriptDefinition commandScript)
public void setMetricsFile(File file)
file
- the file containing the metrics definitionspublic File getMetricsFile()
null
if none existspublic Map<String,Map<String,List<MetricDefinition>>> getMetrics()
public void setMetrics(Map<String,Map<String,List<MetricDefinition>>> map)
map
- the metrics for this servicepublic String getConfigDir()
Copyright © 2015. All rights reserved.