|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.vremanagement.resourcemanager.impl.state.Session
public class Session
Session for each service operation. It holds all the information related to the activities performed to satisfy the caller's request.
Nested Class Summary | |
---|---|
static class |
Session.DEPSTATUS
Status of a dependency resolver request |
static class |
Session.OPERATION
|
Constructor Summary | |
---|---|
Session(java.lang.String id,
Session.OPERATION operation,
GCUBEScope... scope)
Builds a new empty report |
Method Summary | |
---|---|
void |
addDeployedInstances(java.util.Set<DeployerReport.DeployedRunningInstance> instances)
Adds newly deployed instances to the report. |
void |
addGHNReport(DeployerReport report)
Adds a Deployer Report to the Resource Report |
void |
addResource(ScopedResource resource)
|
void |
addService(ScopedDeployedService service)
|
java.util.Map<java.lang.String,DeployerReport> |
getAllGHNReports()
Gets all the GHN reports received |
java.lang.String |
getDeploymentPlan()
|
java.lang.String |
getId()
|
java.util.Calendar |
getLastUpdate()
|
Session.OPERATION |
getOperation()
|
GCUBEScope |
getScope()
|
java.util.Set<ScopedDeployedService> |
getServices()
|
boolean |
isReportClosed()
Checks whether the report is closed or no |
void |
reportBrokerWork(boolean wasSuccessful,
java.lang.String brokerMessage)
|
void |
save()
Saves the report on the local file system |
void |
setDeploymentPlan(java.lang.String plan)
|
java.lang.String |
toXML()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Session(java.lang.String id, Session.OPERATION operation, GCUBEScope... scope)
id
- the session ID assigned to the operationMethod Detail |
---|
public void addGHNReport(DeployerReport report) throws java.lang.Exception
report
- the string representation of the report, as sent by a Deployer service
java.lang.Exception
- if a problem in the report parsing occurspublic void addResource(ScopedResource resource)
public void addService(ScopedDeployedService service)
public java.lang.String toXML() throws java.io.IOException
java.io.IOException
public java.util.Calendar getLastUpdate()
public java.lang.String getId()
public GCUBEScope getScope()
public void save() throws java.io.IOException
java.io.IOException
- if the saving failspublic void reportBrokerWork(boolean wasSuccessful, java.lang.String brokerMessage)
public void addDeployedInstances(java.util.Set<DeployerReport.DeployedRunningInstance> instances)
instances
- the new instancespublic boolean isReportClosed()
public java.util.Set<ScopedDeployedService> getServices()
public java.util.Map<java.lang.String,DeployerReport> getAllGHNReports()
public Session.OPERATION getOperation()
Session.OPERATION
related to this reportpublic void setDeploymentPlan(java.lang.String plan)
public java.lang.String getDeploymentPlan() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |