Package org.drasyl.node.handler.plugin
Interface DrasylPlugin
- All Known Implementing Classes:
GroupsClientPlugin,GroupsManagerPlugin
This interface is implemented by all drasyl plugins.
Every drasyl plugin must implement a constructor with the
Every drasyl plugin must implement a constructor with the
Config as only
parameter.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonChildChannelActive(PluginEnvironment environment) default voidonChildChannelInactive(PluginEnvironment environment) default voidonChildChannelRegistered(PluginEnvironment environment) default voidonChildChannelUnregistered(PluginEnvironment environment) default voidonServerChannelActive(PluginEnvironment environment) This method gets called after the drasyl node was started.default voidonServerChannelInactive(PluginEnvironment environment) This method get called before the drasyl node is shut down.default voidonServerChannelRegistered(PluginEnvironment environment) This method gets called before the drasyl node is started.default voidonServerChannelUnregistered(PluginEnvironment environment) This method gets called after the drasyl node was shut down.
-
Method Details
-
onServerChannelRegistered
This method gets called before the drasyl node is started.
At this point, no communication channel is alive.- Parameters:
environment- the plugin environment
-
onServerChannelActive
This method gets called after the drasyl node was started.- Parameters:
environment- the plugin environment
-
onServerChannelInactive
This method get called before the drasyl node is shut down.- Parameters:
environment- the plugin environment
-
onServerChannelUnregistered
This method gets called after the drasyl node was shut down.
At this point, no communication channel is alive.- Parameters:
environment- the plugin environment
-
onChildChannelRegistered
-
onChildChannelActive
-
onChildChannelInactive
-
onChildChannelUnregistered
-