org.gcube.vremanagement.resourcemanager.impl.brokerage
Class ServiceBroker
java.lang.Object
org.gcube.vremanagement.resourcemanager.impl.brokerage.ServiceBroker
- All Implemented Interfaces:
- Broker
public final class ServiceBroker
- extends Object
- implements Broker
Broker that exploits the gCube Resource Broker service
- Author:
- Manuele Simi (ISTI-CNR)
|
Field Summary |
protected org.gcube.common.core.utils.logging.GCUBELog |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.gcube.common.core.utils.logging.GCUBELog logger
ServiceBroker
public ServiceBroker()
initialize
public void initialize(ScopeState scopeState)
throws Exception
- Initializes the Broker instance
- Specified by:
initialize in interface Broker
- Parameters:
scopeState - the state where the broker will act
- Throws:
Exception - if the initialization fails (depends on the broker's nature)
makePlan
public void makePlan(Session session,
Set<ScopedDeployedSoftware> services,
String[] suggestedGHNs)
throws Exception
- Description copied from interface:
Broker
- Creates a deployment plan for the given services
- Specified by:
makePlan in interface Broker
- Parameters:
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 planner
- Throws:
Exception - if the preparation of the plan fails
sendFeedback
public void sendFeedback(Session session)
throws Exception
- Sends feedback to the broker about the execution of the plan for the given session
- Specified by:
sendFeedback in interface Broker
- Parameters:
session - the current active session on the state
- Throws:
Exception - if the broker is not able to manage the feedback
Copyright © 2012. All Rights Reserved.