public interface PcepClient
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(PcepClient pc)
Adds PCEP device when session is successfully established.
|
void |
addSyncMsgToList(PccId pccId,
PcepStateReport rptMsg)
Adds report message received during LSPDB sync into temporary cache.
|
ClientCapability |
capability()
Obtains capability supported by client.
|
String |
channelId()
Identifies the channel used to communicate with the pcc.
|
Boolean |
delegationInfo(LspKey lspKey)
Returns delegation flag for the given LSP info.
|
void |
deleteNode(PccId pccId)
Removes PCEP device when session is disconnected.
|
void |
disconnectClient()
Disconnects the pcc by closing the TCP connection.
|
PcepFactory |
factory()
Provides the factory for this PCEP version.
|
PccId |
getPccId()
Gets the ipAddress of the client.
|
String |
getStringId()
Gets a string version of the ID for this pcc.
|
List<PcepStateReport> |
getSyncMsgList(PccId pccId)
Returns the list of report messages received during LSPDB sync.
|
void |
handleMessage(PcepMessage fromClient)
Handle a message from the pcc.
|
void |
initializeSyncMsgList(PccId pccId)
Creates a temporary cache to hold report messages received during LSPDB sync.
|
boolean |
isConnected()
Checks if the pcc is still connected.
|
boolean |
isOptical()
Indicates if this pcc is optical.
|
PcepSyncStatus |
labelDbSyncStatus()
Indicates the label DB synchronization status of this pcc.
|
PcepSyncStatus |
lspDbSyncStatus()
Indicates the LSP state synchronization status of this pcc.
|
void |
removeSyncMsgList(PccId pccId)
Removes the list of report messages received during LSPDB sync.
|
void |
sendMessage(List<PcepMessage> msgs)
Writes the PcepMessage list to the driver.
|
void |
sendMessage(PcepMessage msg)
Writes the message to the driver.
|
void |
setCapability(ClientCapability capability)
Sets capability negotiated during open message exchange.
|
void |
setLabelDbSyncStatus(PcepSyncStatus syncStatus)
Sets the status of label DB synchronization.
|
void |
setLspAndDelegationInfo(LspKey lspKey,
boolean dFlag)
Sets D flag for the given LSP and its LSP info.
|
void |
setLspDbSyncStatus(PcepSyncStatus syncStatus)
Sets the status of LSP state synchronization.
|
void sendMessage(PcepMessage msg)
msg - the message to writevoid sendMessage(List<PcepMessage> msgs)
msgs - the messages to be writtenvoid handleMessage(PcepMessage fromClient)
fromClient - the message to handlePcepFactory factory()
String getStringId()
PccId getPccId()
boolean isConnected()
void disconnectClient()
boolean isOptical()
String channelId()
void setLspDbSyncStatus(PcepSyncStatus syncStatus)
syncStatus - LSP synchronization status to be setPcepSyncStatus lspDbSyncStatus()
void setLabelDbSyncStatus(PcepSyncStatus syncStatus)
syncStatus - label DB synchronization status to be setPcepSyncStatus labelDbSyncStatus()
void setCapability(ClientCapability capability)
capability - supported by clientClientCapability capability()
void addNode(PcepClient pc)
pc - PCEP client detailsvoid deleteNode(PccId pccId)
pccId - PCEP client IDvoid setLspAndDelegationInfo(LspKey lspKey, boolean dFlag)
lspKey - contains LSP infodFlag - delegation flag in LSP objectBoolean delegationInfo(LspKey lspKey)
lspKey - contains LSP infovoid initializeSyncMsgList(PccId pccId)
pccId - PCC id which is the key to store report messagesList<PcepStateReport> getSyncMsgList(PccId pccId)
pccId - PCC id which is the key for all the report messagesvoid removeSyncMsgList(PccId pccId)
pccId - PCC id which is the key for all the report messagesvoid addSyncMsgToList(PccId pccId, PcepStateReport rptMsg)
pccId - PCC id which is the key to store report messagesrptMsg - the report message to be stored