예제 #1
0
  @Override
  public boolean removeFailedPathInfo(PcePathInfo failedPathInfo) {
    checkNotNull(failedPathInfo, PATH_INFO_NULL);

    if (!failedPathSet.remove(failedPathInfo)) {
      log.error("Failed path info {} deletion has failed.", failedPathInfo.toString());
      return false;
    }
    return true;
  }
예제 #2
0
 @Override
 public int getFailedPathInfoCount() {
   return failedPathSet.size();
 }
예제 #3
0
 @Override
 public void addFailedPathInfo(PcePathInfo failedPathInfo) {
   checkNotNull(failedPathInfo, PATH_INFO_NULL);
   failedPathSet.add(failedPathInfo);
 }
예제 #4
0
 @Override
 public boolean existsFailedPathInfo(PcePathInfo failedPathInfo) {
   checkNotNull(failedPathInfo, PATH_INFO_NULL);
   return failedPathSet.contains(failedPathInfo);
 }