@Service public class IntentDomainManager extends org.onosproject.net.provider.AbstractListenerProviderRegistry<IntentDomainEvent,IntentDomainListener,IntentDomainProvider,IntentDomainProviderService> implements IntentDomainService, IntentDomainProviderRegistry
| Constructor and Description |
|---|
IntentDomainManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
protected IntentDomainProviderService |
createProviderService(IntentDomainProvider provider) |
protected void |
deactivate() |
IntentDomain |
getDomain(IntentDomainId id)
Returns the intent domain for the given id.
|
java.util.Set<IntentDomain> |
getDomains()
Returns a set of all intent domains.
|
java.util.Set<IntentDomain> |
getDomains(org.onosproject.net.DeviceId deviceId)
Returns any network domains associated with the given device id.
|
java.util.List<IntentResource> |
request(IntentDomainId domainId,
IntentPrimitive primitive)
Requests an intent primitive from the intent domain.
|
void |
submit(IntentDomainId domainId,
IntentResource resource)
Submits an intent resource to the intent domain for installation.
|
addListener, bindEventDispatcher, post, removeListener, unbindEventDispatcherdefaultProvider, getProvider, getProvider, getProvider, getProviders, register, unregister@Activate protected void activate()
@Deactivate protected void deactivate()
public IntentDomain getDomain(IntentDomainId id)
IntentDomainServicegetDomain in interface IntentDomainServiceid - id to look uppublic java.util.Set<IntentDomain> getDomains()
IntentDomainServicegetDomains in interface IntentDomainServicepublic java.util.Set<IntentDomain> getDomains(org.onosproject.net.DeviceId deviceId)
IntentDomainServicegetDomains in interface IntentDomainServicedeviceId - device id to look uppublic java.util.List<IntentResource> request(IntentDomainId domainId, IntentPrimitive primitive)
IntentDomainServicerequest in interface IntentDomainServicedomainId - id of target domainprimitive - intent primitivepublic void submit(IntentDomainId domainId, IntentResource resource)
IntentDomainServicesubmit in interface IntentDomainServicedomainId - id of target domainresource - intent resourceprotected IntentDomainProviderService createProviderService(IntentDomainProvider provider)
createProviderService in class org.onosproject.net.provider.AbstractProviderRegistry<IntentDomainProvider,IntentDomainProviderService>