public class RestDeviceProvider
extends org.onosproject.net.provider.AbstractProvider
implements org.onosproject.net.device.DeviceProvider
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.config.NetworkConfigRegistry |
cfgService |
protected RestSBController |
controller |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected static String |
ISNOTNULL |
protected org.onosproject.net.device.DeviceProviderRegistry |
providerRegistry |
| Constructor and Description |
|---|
RestDeviceProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
changePortState(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
boolean enable) |
void |
deactivate() |
boolean |
isReachable(org.onosproject.net.DeviceId deviceId) |
void |
roleChanged(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.MastershipRole newRole) |
void |
triggerProbe(org.onosproject.net.DeviceId deviceId) |
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceProviderRegistry providerRegistry
@Reference(cardinality=MANDATORY_UNARY) protected RestSBController controller
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigRegistry cfgService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
protected static final String ISNOTNULL
@Activate public void activate()
@Deactivate public void deactivate()
public void triggerProbe(org.onosproject.net.DeviceId deviceId)
triggerProbe in interface org.onosproject.net.device.DeviceProviderpublic void roleChanged(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.MastershipRole newRole)
roleChanged in interface org.onosproject.net.device.DeviceProviderpublic boolean isReachable(org.onosproject.net.DeviceId deviceId)
isReachable in interface org.onosproject.net.device.DeviceProviderpublic void changePortState(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
boolean enable)
changePortState in interface org.onosproject.net.device.DeviceProvider