org.gcube.vremanagement.resourcemanager.impl.reporting
Class DeployerReport

java.lang.Object
  extended by 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)

Nested Class Summary
 class DeployerReport.DeployedRunningInstance
           
 
Field Summary
protected  InstanceState instanceState
           
protected  org.gcube.common.core.utils.logging.GCUBELog logger
           
protected  String report
           
protected  org.gcube.common.core.scope.GCUBEScope targetScope
           
 
Constructor Summary
DeployerReport(InstanceState instanceState, org.gcube.common.core.scope.GCUBEScope targetScope, String report)
           
 
Method Summary
 List<DeployedDependency> getDependencies()
           
 String getGHNName()
          Gets the GHN ID
 String getHost()
           
 Set<DeployerReport.DeployedRunningInstance> getInstances()
           
 Date getLastUpdate()
           
 String getStatus()
           
 String getType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

DeployerReport

public DeployerReport(InstanceState instanceState,
                      org.gcube.common.core.scope.GCUBEScope targetScope,
                      String report)
               throws Exception
Parameters:
instanceState - the current instance state
targetScope -
report - the string representation of the report as sent by a Deployer Service
Throws:
Exception
Method Detail

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.