Package org.drasyl.plugin.groups.client
Class GroupsClientPlugin
java.lang.Object
org.drasyl.plugin.groups.client.GroupsClientPlugin
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGroupsClientPlugin
(com.typesafe.config.Config config) This constructor is used byDrasylConfig
to initialize this plugin.GroupsClientPlugin
(GroupsClientConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onAfterStart
(PluginEnvironment environment) This method gets called after the drasyl node was started.void
onBeforeShutdown
(PluginEnvironment environment) This method get called before the drasyl node is shut down.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.drasyl.plugins.DrasylPlugin
onAfterShutdown, onBeforeStart
-
Field Details
-
GROUPS_CLIENT_HANDLER
- See Also:
-
-
Constructor Details
-
GroupsClientPlugin
public GroupsClientPlugin(com.typesafe.config.Config config) This constructor is used byDrasylConfig
to initialize this plugin.- Parameters:
config
- the plugin's portion of the configuration
-
GroupsClientPlugin
-
-
Method Details
-
onAfterStart
Description copied from interface:DrasylPlugin
This method gets called after the drasyl node was started.- Specified by:
onAfterStart
in interfaceDrasylPlugin
- Parameters:
environment
- the plugin environment
-
onBeforeShutdown
Description copied from interface:DrasylPlugin
This method get called before the drasyl node is shut down.- Specified by:
onBeforeShutdown
in interfaceDrasylPlugin
- Parameters:
environment
- the plugin environment
-