Class GroupsClientPlugin
java.lang.Object
org.drasyl.node.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.
-
Constructor Summary
ConstructorDescriptionGroupsClientPlugin
(com.typesafe.config.Config config) This constructor is used byDrasylConfig
to initialize this plugin.GroupsClientPlugin
(GroupsClientConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
This method get called before the drasyl node is shut down.void
This method gets called before the drasyl node is started.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.drasyl.node.handler.plugin.DrasylPlugin
onChildChannelActive, onChildChannelUnregistered, onServerChannelActive, onServerChannelUnregistered
-
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
-
onServerChannelRegistered
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:
onServerChannelRegistered
in interfaceDrasylPlugin
- Parameters:
env
- the plugin environment
-
onServerChannelInactive
Description copied from interface:DrasylPlugin
This method get called before the drasyl node is shut down.- Specified by:
onServerChannelInactive
in interfaceDrasylPlugin
- Parameters:
env
- the plugin environment
-
onChildChannelRegistered
- Specified by:
onChildChannelRegistered
in interfaceDrasylPlugin
-
onChildChannelInactive
- Specified by:
onChildChannelInactive
in interfaceDrasylPlugin
-