| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.common.core.utils.logging.GCUBELog |
logger |
| Constructor and Description |
|---|
ServiceBroker() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(ScopeState scopeState)
Initializes the Broker instance
|
void |
makePlan(Session session,
Set<ScopedDeployedSoftware> services,
String[] suggestedGHNs)
Creates a deployment plan for the given services
|
void |
sendFeedback(Session session)
Sends feedback to the broker about the execution of the plan for the given session
|
public void initialize(ScopeState scopeState) throws Exception
initialize in interface BrokerscopeState - the state where the broker will actException - if the initialization fails (depends on the broker's nature)public void makePlan(Session session, Set<ScopedDeployedSoftware> services, String[] suggestedGHNs) throws Exception
BrokermakePlan in interface Brokersession - the current active session on the stateservices - the services to deploysuggestedGHNs - the (eventually) GHNs suggested for the deployment, if specified, only these nodes will be used by the plannerException - if the preparation of the plan failspublic void sendFeedback(Session session) throws Exception
sendFeedback in interface Brokersession - the current active session on the stateException - if the broker is not able to manage the feedbackCopyright © 2014. All Rights Reserved.