public final class BasicPceccHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
IDENTIFIER_SET |
static int |
IN_LABEL_TYPE |
static int |
OUT_LABEL_TYPE |
static long |
SET |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allocateLabel(Tunnel tunnel)
Allocates labels from local resource pool and configure these (IN and OUT) labels into devices.
|
static BasicPceccHandler |
getInstance()
Returns single instance of this class.
|
void |
initialize(LabelResourceService labelRsrcService,
org.onosproject.net.device.DeviceService deviceService,
PceLabelStore pceStore,
PcepClientController clientController)
Initialization of label manager and pce store.
|
void |
releaseLabel(Tunnel tunnel)
Deallocates unused labels to device pools.
|
void |
updatePceccTunnelInfoInStore(org.onosproject.net.DeviceId srcDeviceId,
org.onosproject.net.DeviceId dstDeviceId,
LabelResourceId labelId,
org.onosproject.net.PortNumber dstPort,
Tunnel tunnel)
Updates list of local labels of PCECC tunnel info in pce store.
|
public static final int OUT_LABEL_TYPE
public static final int IN_LABEL_TYPE
public static final long IDENTIFIER_SET
public static final long SET
public static BasicPceccHandler getInstance()
public void initialize(LabelResourceService labelRsrcService, org.onosproject.net.device.DeviceService deviceService, PceLabelStore pceStore, PcepClientController clientController)
labelRsrcService - label resource servicedeviceService - device servicepceStore - pce label storeclientController - client controllerpublic boolean allocateLabel(Tunnel tunnel)
tunnel - tunnel between ingress to egresspublic void updatePceccTunnelInfoInStore(org.onosproject.net.DeviceId srcDeviceId,
org.onosproject.net.DeviceId dstDeviceId,
LabelResourceId labelId,
org.onosproject.net.PortNumber dstPort,
Tunnel tunnel)
srcDeviceId - source device in a linkdstDeviceId - destination device in a linklabelId - label id of a linkdstPort - destination device port number of a linktunnel - tunnelpublic void releaseLabel(Tunnel tunnel)
tunnel - tunnel between ingress to egress