Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-6832

Read from local cache of the ConsistentMap

    XMLWordPrintable

    Details

      Description

      The containsKey method of ConsisentMap is not implemented in CachingAsyncConsistentMap. That will indeed cause it make a remote call for containsKey, which would consume a lot of time. We shoud make read operations from the local cache.

      For DistributedVirtualNetworkStore it should include:
      V get(Object key);
      boolean containsKey(Object key);

      Other read operation could also be implemented in CachingAsyncConsistentMap:
      boolean containsValue(Object value);
      boolean isEmpty();
      int size();
      Set<K> keySet();
      Collection<V> values();
      Set<Map.Entry<K, V>> entrySet();

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kuujo Jordan Halterman
            Reporter:
            baymax Phil Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: