Git Product home page Git Product logo

Comments (6)

NicolasMassart avatar NicolasMassart commented on May 27, 2024

The method seems not to be called admin_reloadPlugin as indicated in #261 but looking at the code is seems to be plugins_reloadPluginConfig and have parameters. I think Parameters may be the name of the plugin that should be reloaded, but I still have to make sure as my last try was not working.

from besu-docs.

MadelineMurray avatar MadelineMurray commented on May 27, 2024

@NicolasMassart - once you get this working could you paste a working example into here Bryon can use.

from besu-docs.

MadelineMurray avatar MadelineMurray commented on May 27, 2024

Was there a CLI option related to this?

from besu-docs.

NicolasMassart avatar NicolasMassart commented on May 27, 2024

No, only the RPC. No need for a CLI as it would mean that you stop and start Besu to run it, and if you do so, it reloads plugins. SO the only reason you need to reload is when you don't want to restart Besu, hence the RPC method. Will provide the method syntax here asap.

from besu-docs.

NicolasMassart avatar NicolasMassart commented on May 27, 2024

In theory, a sample request to reload a Kafka plugin config using RPC would be :
{"jsonrpc":"2.0","method":"plugins_reloadPluginConfig","params":["tech.pegasys.plus.plugin.kafka.KafkaPlugin"],"id":1} with the plugin name being the fully qualified java name of the plugin class.
But I'm having issues with internal error when trying this so I will add more details once I'm sure it works.

from besu-docs.

NicolasMassart avatar NicolasMassart commented on May 27, 2024

The issue on this Kafka example is related to some changes in the Event stream plugin (see private Jira https://pegasys1.atlassian.net/browse/PIE-2292).
Also I wonder, as the Kafka plugin is not open source, if we should use it as an example. But we have no open source plugins, so we may use a fake plugin name in our example request.
It would then be something like: {"jsonrpc":"2.0","method":"plugins_reloadPluginConfig","params":["com.example.SamplePlugin"],"id":1}

from besu-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.