public class PlanBuilderElem
extends java.lang.Object
A class containing all the information needed to a
PlanBuilderTask to receive the request to make a new
plan and for representing the corresponding decision.
Encapsulates a org.gcube.vremanagement.resourcebroker.utils.serialization.types.PlanRequest, a PlanResponse and
a list of gHN ids (strings).
At each stage of decision planning, implemented through
PlanBuilderTask elements, the elements can be removed
from the request (once they are supposed to have reached a satisfying
condition to deploy) and the response is incrementally built.
The list of selected gHNs is used to avoid multiple usage of the same
gHN when overloaded.
PlanBuilderTask| Constructor and Description |
|---|
PlanBuilderElem(PlanRequest request)
Creates a new
PlanBuilderElem. |
PlanBuilderElem(PlanRequest request,
PlanResponse response)
Creates a new
PlanBuilderElem. |
| Modifier and Type | Method and Description |
|---|---|
PlanBuilderIdentifier |
getID() |
PlanRequest |
getRequest() |
PlanResponse |
getResponse() |
public PlanBuilderElem(PlanRequest request)
PlanBuilderElem.request - the org.gcube.vremanagement.resourcebroker.utils.serialization.types.PlanRequest to handle.public PlanBuilderElem(PlanRequest request,
PlanResponse response)
PlanBuilderElem.request - the org.gcube.vremanagement.resourcebroker.utils.serialization.types.PlanRequest to handle.response - if null a new one will be assigned.