Peer-to-peer network node aggregator extension

Peer-to-peer network node aggregator extension

Extension Description

Peer-to-peer network node aggregator.

Extension Interfaces

org.apache.dubbo.container.page.PageHandler

Extension Configuration

  1. <dubbo:protocol page="xxx,yyy" />
  2. <!-- Default value settings, when <dubbo:protocol> does not configure the page attribute, use this configuration -->
  3. <dubbo:provider page="xxx,yyy" />

Known Extensions

  • org.apache.dubbo.container.page.pages.HomePageHandler
  • org.apache.dubbo.container.page.pages.StatusPageHandler
  • org.apache.dubbo.container.page.pages.LogPageHandler
  • org.apache.dubbo.container.page.pages.SystemPageHandler

Extension Example

Maven project structure:

  1. src
  2. |-main
  3. |-java
  4. |-com
  5. |-xxx
  6. |-XxxPageHandler.java (implements PageHandler interface)
  7. |-resources
  8. |-META-INF
  9. |-dubbo
  10. |-org.apache.dubbo.container.page.PageHandler (plain text file with content: xxx=com.xxx.XxxPageHandler)

XxxPageHandler.java:

  1. package com.xxx;
  2. import org.apache.dubbo.container.page.PageHandler;
  3. public class XxxPageHandler implements PageHandler {
  4. public Group lookup(URL url) {
  5. // ...
  6. }
  7. }

META-INF/dubbo/org.apache.dubbo.container.page.PageHandler:

  1. xxx=com.xxx.XxxPageHandler

Feedback

Was this page helpful?

Yes No

Last modified September 30, 2024: Update & Translate Overview Docs (#3040) (d37ebceaea7)