public interface Broker
ScopedDeployedSoftwares to be deployed| 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
|
void initialize(ScopeState scopeState) throws Exception
scopeState - the state where the broker will actException - if the initialization fails (depends on the broker's nature)void makePlan(Session session, Set<ScopedDeployedSoftware> services, String[] suggestedGHNs) throws Exception
session - 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 failsCopyright © 2014. All Rights Reserved.