public interface PcepClientController
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(PcepEventListener listener)
Register a listener for PCEP msg events.
|
void |
addListener(PcepClientListener listener)
Register a listener for meta events that occur to pcep
devices.
|
void |
addNodeListener(PcepNodeListener listener)
Register a listener for PCEP msg events[carrying node descriptor details].
|
boolean |
allocateLocalLabel(Tunnel tunnel)
Allocates and downloads local labels for the given LSP.
|
void |
closeConnectedClients()
Close all connected PCC clients.
|
LabelStack |
computeLabelStack(org.onosproject.net.Path path)
Create label stack from the given path.
|
LinkedList<PcepValueType> |
createPcepLabelStack(DefaultLabelStack labelStack,
org.onosproject.net.Path path)
Creates label stack for ERO object from network resource.
|
PcepClient |
getClient(PccId pccId)
Returns the actual pcc client for the given ip address.
|
Collection<PcepClient> |
getClients()
Returns list of pcc clients connected to this Pcep controller.
|
void |
processClientMessage(PccId pccId,
PcepMessage msg)
Process a message and notify the appropriate listeners.
|
void |
removeEventListener(PcepEventListener listener)
Unregister a listener.
|
void |
removeListener(PcepClientListener listener)
Unregister a listener.
|
void |
removeNodeListener(PcepNodeListener listener)
Unregister a listener.
|
void |
writeMessage(PccId pccId,
PcepMessage msg)
Send a message to a particular pcc client.
|
Collection<PcepClient> getClients()
PcepClient getClient(PccId pccId)
pccId - the id of the pcc client to fetchvoid addListener(PcepClientListener listener)
listener - the listener to notifyvoid removeListener(PcepClientListener listener)
listener - the listener to unregistervoid addEventListener(PcepEventListener listener)
listener - the listener to notifyvoid removeEventListener(PcepEventListener listener)
listener - the listener to unregistervoid addNodeListener(PcepNodeListener listener)
listener - the listener to notifyvoid removeNodeListener(PcepNodeListener listener)
listener - the listener to be unregisteredvoid writeMessage(PccId pccId, PcepMessage msg)
pccId - the id of the client to send message.msg - the message to sendvoid processClientMessage(PccId pccId, PcepMessage msg)
pccId - id of the client the message arrived onmsg - the message to process.void closeConnectedClients()
LabelStack computeLabelStack(org.onosproject.net.Path path)
path - from which label stack is to be computedboolean allocateLocalLabel(Tunnel tunnel)
tunnel - for which local labels have to be assigned and downloadedLinkedList<PcepValueType> createPcepLabelStack(DefaultLabelStack labelStack, org.onosproject.net.Path path)
labelStack - label stackpath - (hop list)