| Modifier and Type | Field and Description |
|---|---|
protected StorageService |
storageService |
| Constructor and Description |
|---|
DistributedPceStore() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
void |
addFailedPathInfo(PcePathInfo failedPathInfo)
Stores path information into failed path info store.
|
void |
addTunnelInfo(TunnelId tunnelId,
ResourceConsumer tunnelConsumerId)
Stores local label info with tunnel consumer id into tunnel info store for specified tunnel id.
|
protected void |
deactivate() |
boolean |
existsFailedPathInfo(PcePathInfo failedPathInfo)
Checks whether path info is present in failed path info list.
|
boolean |
existsTunnelInfo(TunnelId tunnelId)
Checks whether tunnel id is present in tunnel info store.
|
int |
getFailedPathInfoCount()
Retrieves the failed path info count.
|
Iterable<PcePathInfo> |
getFailedPathInfos()
Retrieves path info collection from failed path info store.
|
ResourceConsumer |
getTunnelInfo(TunnelId tunnelId)
Retrieves local label info with tunnel consumer id from tunnel info store.
|
int |
getTunnelInfoCount()
Retrieves the tunnel info count.
|
Map<TunnelId,ResourceConsumer> |
getTunnelInfos()
Retrieves tunnel id and pcecc tunnel info pairs collection from tunnel info store.
|
List<ExplicitPathInfo> |
getTunnelNameExplicitPathInfoMap(String tunnelName)
Gets explicit path info based on tunnel name.
|
boolean |
removeFailedPathInfo(PcePathInfo failedPathInfo)
Removes path info from failed path info store.
|
boolean |
removeTunnelInfo(TunnelId tunnelId)
Removes local label info with tunnel consumer id from tunnel info store for specified tunnel id.
|
boolean |
tunnelNameExplicitPathInfoMap(String tunnelName,
List<ExplicitPathInfo> explicitPathInfo)
Adds explicit path info to the map with corresponding tunnel name.
|
@Reference(cardinality=MANDATORY_UNARY) protected StorageService storageService
@Activate protected void activate()
@Deactivate protected void deactivate()
public boolean existsTunnelInfo(TunnelId tunnelId)
PceStoreexistsTunnelInfo in interface PceStoretunnelId - tunnel idpublic boolean existsFailedPathInfo(PcePathInfo failedPathInfo)
PceStoreexistsFailedPathInfo in interface PceStorefailedPathInfo - failed path informationpublic int getTunnelInfoCount()
PceStoregetTunnelInfoCount in interface PceStorepublic int getFailedPathInfoCount()
PceStoregetFailedPathInfoCount in interface PceStorepublic Map<TunnelId,ResourceConsumer> getTunnelInfos()
PceStoregetTunnelInfos in interface PceStorepublic Iterable<PcePathInfo> getFailedPathInfos()
PceStoregetFailedPathInfos in interface PceStorepublic ResourceConsumer getTunnelInfo(TunnelId tunnelId)
PceStoregetTunnelInfo in interface PceStoretunnelId - tunnel idpublic void addTunnelInfo(TunnelId tunnelId, ResourceConsumer tunnelConsumerId)
PceStoreaddTunnelInfo in interface PceStoretunnelId - tunnel idtunnelConsumerId - tunnel consumer idpublic void addFailedPathInfo(PcePathInfo failedPathInfo)
PceStoreaddFailedPathInfo in interface PceStorefailedPathInfo - failed path informationpublic boolean removeTunnelInfo(TunnelId tunnelId)
PceStoreremoveTunnelInfo in interface PceStoretunnelId - tunnel idpublic boolean removeFailedPathInfo(PcePathInfo failedPathInfo)
PceStoreremoveFailedPathInfo in interface PceStorefailedPathInfo - failed path informationpublic boolean tunnelNameExplicitPathInfoMap(String tunnelName, List<ExplicitPathInfo> explicitPathInfo)
PceStoretunnelNameExplicitPathInfoMap in interface PceStoretunnelName - tunnel name as keyexplicitPathInfo - list of explicit path objectspublic List<ExplicitPathInfo> getTunnelNameExplicitPathInfoMap(String tunnelName)
PceStoregetTunnelNameExplicitPathInfoMap in interface PceStoretunnelName - tunnel name as key