public class LinkDiscoveryProvider
extends org.onosproject.net.provider.AbstractProvider
implements org.onosproject.net.link.LinkProvider
LinkDiscovery behaviour.| Modifier and Type | Field and Description |
|---|---|
protected static String |
APP_NAME |
protected org.onosproject.cfg.ComponentConfigService |
cfgService |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected ScheduledExecutorService |
executor |
protected static int |
linkPollDelaySeconds |
protected static int |
linkPollFrequencySeconds |
protected org.onosproject.net.link.LinkService |
linkService |
protected org.onosproject.mastership.MastershipService |
mastershipService |
protected org.onosproject.net.link.LinkProviderRegistry |
providerRegistry |
protected org.onosproject.net.link.LinkProviderService |
providerService |
protected static String |
SCHEME_NAME |
| Constructor and Description |
|---|
LinkDiscoveryProvider()
Creates a provider with the supplied identifier.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext context) |
void |
deactivate() |
protected boolean |
isSupported(org.onosproject.net.Device device) |
void |
modified(org.osgi.service.component.ComponentContext context) |
protected static final String APP_NAME
protected static final String SCHEME_NAME
@Property(name="linkPollDelaySeconds",
intValue=20,
label="Initial delay (in seconds) for polling link discovery")
protected static int linkPollDelaySeconds
@Property(name="linkPollFrequencySeconds",
intValue=10,
label="Frequency (in seconds) for polling link discovery")
protected static int linkPollFrequencySeconds
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.link.LinkProviderRegistry providerRegistry
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.link.LinkService linkService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.mastership.MastershipService mastershipService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
protected ScheduledExecutorService executor
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cfg.ComponentConfigService cfgService
protected org.onosproject.net.link.LinkProviderService providerService
public LinkDiscoveryProvider()
@Activate public void activate(org.osgi.service.component.ComponentContext context)
@Deactivate public void deactivate()
@Modified public void modified(org.osgi.service.component.ComponentContext context)
protected boolean isSupported(org.onosproject.net.Device device)