@Service public class DependencyManager extends AbstractInstanceHandler implements DependencyService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.group.GroupService |
groupService |
protected org.slf4j.Logger |
log |
protected CordVtnNodeManager |
nodeManager |
protected CordVtnPipeline |
pipeline |
appId, configListener, configRegistry, coreService, hostListener, hostService, mastershipService, serviceType, xosClient| Constructor and Description |
|---|
DependencyManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
void |
createDependency(org.onosproject.xosclient.api.VtnServiceId tServiceId,
org.onosproject.xosclient.api.VtnServiceId pServiceId,
boolean isBidirectional)
Creates dependencies for a given tenant service.
|
protected void |
deactivate() |
void |
instanceDetected(Instance instance)
Handles newly detected instance.
|
void |
instanceRemoved(Instance instance)
Handles removed instance.
|
void |
removeDependency(org.onosproject.xosclient.api.VtnServiceId tServiceId,
org.onosproject.xosclient.api.VtnServiceId pServiceId)
Removes all dependencies from a given tenant service.
|
getInstances, getVtnPort, getVtnService, readConfigurationprotected final org.slf4j.Logger log
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.group.GroupService groupService
@Reference(cardinality=MANDATORY_UNARY) protected CordVtnPipeline pipeline
@Reference(cardinality=MANDATORY_UNARY) protected CordVtnNodeManager nodeManager
@Activate protected void activate()
activate in class AbstractInstanceHandler@Deactivate protected void deactivate()
deactivate in class AbstractInstanceHandlerpublic void createDependency(org.onosproject.xosclient.api.VtnServiceId tServiceId,
org.onosproject.xosclient.api.VtnServiceId pServiceId,
boolean isBidirectional)
DependencyServicecreateDependency in interface DependencyServicetServiceId - id of the service which has a dependencypServiceId - id of the service which provide dependencyisBidirectional - true to enable bidirectional connectivity between two servicespublic void removeDependency(org.onosproject.xosclient.api.VtnServiceId tServiceId,
org.onosproject.xosclient.api.VtnServiceId pServiceId)
DependencyServiceremoveDependency in interface DependencyServicetServiceId - id of the service which has a dependencypServiceId - id of the service which provide dependencypublic void instanceDetected(Instance instance)
InstanceHandlerinstanceDetected in interface InstanceHandlerinstance - instancepublic void instanceRemoved(Instance instance)
InstanceHandlerinstanceRemoved in interface InstanceHandlerinstance - instanceCopyright © 2016. All rights reserved.