Class GroupsClientPlugin

java.lang.Object
org.drasyl.node.plugin.groups.client.GroupsClientPlugin
All Implemented Interfaces:
DrasylPlugin

public class GroupsClientPlugin extends Object implements DrasylPlugin
The Groups Membership Client Plugin allows drasyl nodes to connect to membership managers at startup to join groups. The manager can then inform the node about existing memberships as well as leaving and joining nodes.
  • Field Details

  • Constructor Details

    • GroupsClientPlugin

      public GroupsClientPlugin(com.typesafe.config.Config config)
      This constructor is used by DrasylConfig to initialize this plugin.
      Parameters:
      config - the plugin's portion of the configuration
    • GroupsClientPlugin

      public GroupsClientPlugin(GroupsClientConfig config)
  • Method Details

    • onBeforeStart

      public void onBeforeStart(PluginEnvironment environment)
      Description copied from interface: DrasylPlugin
      This method gets called before the drasyl node is started.
      At this point, no communication channel is alive.
      Specified by:
      onBeforeStart in interface DrasylPlugin
      Parameters:
      environment - the plugin environment
    • onBeforeShutdown

      public void onBeforeShutdown(PluginEnvironment environment)
      Description copied from interface: DrasylPlugin
      This method get called before the drasyl node is shut down.
      Specified by:
      onBeforeShutdown in interface DrasylPlugin
      Parameters:
      environment - the plugin environment