Class IntraVmDiscovery
- java.lang.Object
-
- org.drasyl.peer.connection.intravm.IntraVmDiscovery
-
- All Implemented Interfaces:
AutoCloseable
,DrasylNodeComponent
public class IntraVmDiscovery extends Object implements DrasylNodeComponent
Uses shared memory to discover other drasyl nodes running on same JVM.Inspired by: https://github.com/actoron/jadex/blob/10e464b230d7695dfd9bf2b36f736f93d69ee314/platform/base/src/main/java/jadex/platform/service/awareness/IntraVMAwarenessAgent.java
-
-
Field Summary
Fields Modifier and Type Field Description static String
INTRA_VM_SINK_HANDLER
-
Constructor Summary
Constructors Constructor Description IntraVmDiscovery(CompressedPublicKey publicKey, PeersManager peersManager, Pipeline pipeline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Stops the component.void
open()
Starts the component.
-
-
-
Field Detail
-
INTRA_VM_SINK_HANDLER
public static final String INTRA_VM_SINK_HANDLER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IntraVmDiscovery
public IntraVmDiscovery(CompressedPublicKey publicKey, PeersManager peersManager, Pipeline pipeline)
-
-
Method Detail
-
open
public void open()
Description copied from interface:DrasylNodeComponent
Starts the component.- Specified by:
open
in interfaceDrasylNodeComponent
-
close
public void close()
Description copied from interface:DrasylNodeComponent
Stops the component.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDrasylNodeComponent
-
-