org.gcube.vremanagement.resourcemanager.impl.reporting
Class DeployerReport
java.lang.Object
org.gcube.vremanagement.resourcemanager.impl.reporting.DeployerReport
public class DeployerReport
- extends Object
Parser for the report sent by the Deployer Service
- Author:
- Manuele Simi (ISTI-CNR)
logger
protected org.gcube.common.core.utils.logging.GCUBELog logger
instanceState
protected InstanceState instanceState
targetScope
protected org.gcube.common.core.scope.GCUBEScope targetScope
report
protected String report
DeployerReport
public DeployerReport(InstanceState instanceState,
org.gcube.common.core.scope.GCUBEScope targetScope,
String report)
throws Exception
- Parameters:
instanceState - the current instance statetargetScope - report - the string representation of the report as sent by a Deployer Service
- Throws:
Exception
getGHNName
public String getGHNName()
- Gets the GHN ID
- Returns:
- the id
- Throws:
Exception - if it is impossible to parse the Deployer Report or the GHNID element is not found
toString
public String toString()
- Overrides:
toString in class Object
getType
public String getType()
- Returns:
- the type
getLastUpdate
public Date getLastUpdate()
- Returns:
- the lastUpdate
getDependencies
public List<DeployedDependency> getDependencies()
- Returns:
- the dependencies
getHost
public String getHost()
- Returns:
- the hostname from which the report was sent
getStatus
public String getStatus()
- Returns:
- the status
getInstances
public Set<DeployerReport.DeployedRunningInstance> getInstances()
- Returns:
- the instances
Copyright © 2013. All Rights Reserved.