Package org.drasyl.example.groups
Class GroupsClientNode
- java.lang.Object
-
- org.drasyl.node.DrasylNode
-
- org.drasyl.example.groups.GroupsClientNode
-
public class GroupsClientNode extends DrasylNode
This example starts a drasyl node with activatedGroupsClientNode
. The node joins a given group and then tracks the members of the group.
-
-
Field Summary
-
Fields inherited from class org.drasyl.node.DrasylNode
bootstrap, channels, identity
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GroupsClientNode(org.drasyl.node.plugin.groups.client.GroupUri group)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
void
onEvent(Event event)
-
Methods inherited from class org.drasyl.node.DrasylNode
generateIdentity, getVersion, identity, pipeline, resolve, resolve, send, send, shutdown, start
-
-
-
-
Constructor Detail
-
GroupsClientNode
protected GroupsClientNode(org.drasyl.node.plugin.groups.client.GroupUri group) throws DrasylException
- Throws:
DrasylException
-
-
Method Detail
-
onEvent
public void onEvent(@NonNull Event event)
- Specified by:
onEvent
in classDrasylNode
-
main
public static void main(String[] args) throws DrasylException
- Throws:
DrasylException
-
-