|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Broker
Models the expected behavior of a Broker.
A Broker is an entity that can create Deployment Plans for a set of ScopedDeployedServices to be deployed
| Method Summary | |
|---|---|
void |
initialize(GCUBEScope scope)
Initializes the Broker instance |
void |
makePlan(Session session,
java.util.Set<ScopedDeployedService> services,
java.lang.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 |
| Method Detail |
|---|
void initialize(GCUBEScope scope)
throws java.lang.Exception
scope - the scope where the broker will act
java.lang.Exception - if the initialization fails (depends on the broker's nature)
void makePlan(Session session,
java.util.Set<ScopedDeployedService> services,
java.lang.String[] suggestedGHNs)
throws java.lang.Exception
session - the current sessionservices - the services to deploysuggestedGHNs - the (eventually) GHNs suggested for the deployment, if specified, only these nodes will be used by the planner
java.lang.Exception - if the preparation of the plan fails
void sendFeedback(Session session)
throws java.lang.Exception
session - the current session
java.lang.Exception - if the broker is not able to manage the feedback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||