Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-16097

Add plugin cache to the Sensor API

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.4
    • Component/s: Plugin API, Scanner
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Experimental

      The new API will be marked as experimental, meaning that changes can be done without respecting deprecation policies.

      API

      Plugins can access the cache through the sensor API.

      Tentative signature:

      SensorContext
      	ReadCache previousAnalysisCache()
                  WriteCache nextCache();
                  Boolean isCacheEnabled()
      
      ReadCache
      	@CheckForNull
      	InputStream get(String key);
      WriteCache
      void write(String key, @Nullable InputStream data);
      void write(String key, @Nullable byte[] data);
      void copyFromPrevious(String key);
      

        Attachments

          Activity

            People

            Assignee:
            duarte.meneses Duarte Meneses
            Reporter:
            duarte.meneses Duarte Meneses
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: