|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.vremanagement.resourcemanager.impl.brokerage.InternalBroker
public class InternalBroker
Trivial default Broker that assigns the target gHNs to services with a round robin policy
| Constructor Summary | |
|---|---|
InternalBroker()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InternalBroker()
| Method Detail |
|---|
public void initialize(GCUBEScope scope)
throws java.lang.Exception
initialize in interface Brokerscope - the scope where the broker will act
java.lang.Exception - if the initialization fails (depends on the broker's nature)
public void makePlan(Session session,
java.util.Set<ScopedDeployedService> services,
java.lang.String[] suggestedGHNs)
throws java.lang.Exception
makePlan in interface Brokersession - 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
public void sendFeedback(Session session)
throws java.lang.Exception
sendFeedback in interface Brokersession - 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 | |||||||||