public interface DeviceProviderService extends ProviderService<DeviceProvider>
Modifier and Type | Method and Description |
---|---|
default void |
deletePort(DeviceId deviceId,
PortDescription portDescription)
Delete information about a single port of a device.
|
void |
deviceConnected(DeviceId deviceId,
DeviceDescription deviceDescription)
Signals the core that a device has connected or has been detected somehow.
|
void |
deviceDisconnected(DeviceId deviceId)
Signals the core that a device has disconnected or is no longer reachable.
|
void |
portStatusChanged(DeviceId deviceId,
PortDescription portDescription)
Notifies the core about port status change of a single port.
|
void |
receivedRoleReply(DeviceId deviceId,
MastershipRole requested,
MastershipRole response)
Notifies the core about the result of a RoleRequest sent to a device.
|
void |
updatePorts(DeviceId deviceId,
java.util.List<PortDescription> portDescriptions)
Updates information about all ports of a device.
|
void |
updatePortStatistics(DeviceId deviceId,
java.util.Collection<PortStatistics> portStatistics)
Updates statistics about all ports of a device.
|
provider
void deviceConnected(DeviceId deviceId, DeviceDescription deviceDescription)
deviceId
- device identifierdeviceDescription
- information about network devicevoid deviceDisconnected(DeviceId deviceId)
deviceId
- identity of the device to be removedvoid updatePorts(DeviceId deviceId, java.util.List<PortDescription> portDescriptions)
deviceId
- identity of the deviceportDescriptions
- list of device portsdefault void deletePort(DeviceId deviceId, PortDescription portDescription)
deviceId
- identity of the deviceportDescription
- device port descriptionvoid portStatusChanged(DeviceId deviceId, PortDescription portDescription)
deviceId
- identity of the deviceportDescription
- description of the port that changedvoid receivedRoleReply(DeviceId deviceId, MastershipRole requested, MastershipRole response)
deviceId
- identity of the devicerequested
- mastership role that was requested by the noderesponse
- mastership role the switch acceptedvoid updatePortStatistics(DeviceId deviceId, java.util.Collection<PortStatistics> portStatistics)
deviceId
- identity of the deviceportStatistics
- list of device port statistics