コード例 #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);
 }