Uses of Interface
org.drasyl.pipeline.Handler
-
Packages that use Handler Package Description org.drasyl.intravm Automatic discovery of other running drasyl nodes in the same JVM.org.drasyl.localhost Uses the file system to discover other drasyl nodes running on the local computer.org.drasyl.loopback.handler org.drasyl.monitoring Monitors various states or events in the drasyl node.org.drasyl.pipeline Link between application and drasyl overlay network.org.drasyl.pipeline.handler Contains default implementations for some basic handlers.org.drasyl.pipeline.serialization Package contains classes that are used for serialisation of message to byte arrays and vice vera.org.drasyl.pipeline.skeleton Contains skeleton implementations for the most often used idioms (e.g., in- or outbound-only handlers).org.drasyl.remote.handler Handlers used to communicate with remote nodes.org.drasyl.remote.handler.portmapper ContainsPortMapper
that attempts to create port forwarding via PCP, NAT-PMP, UPnP-IDG. -
-
Uses of Handler in org.drasyl.intravm
Classes in org.drasyl.intravm that implement Handler Modifier and Type Class Description class
IntraVmDiscovery
Uses shared memory to discover other drasyl nodes running on same JVM. -
Uses of Handler in org.drasyl.localhost
Classes in org.drasyl.localhost that implement Handler Modifier and Type Class Description class
LocalHostDiscovery
Uses the file system to discover other drasyl nodes running on the local computer. -
Uses of Handler in org.drasyl.loopback.handler
Classes in org.drasyl.loopback.handler that implement Handler Modifier and Type Class Description class
InboundMessageGuard
This handler filters incoming messages not addressed to the local node.class
LoopbackMessageHandler
This handler converts outgoing messages addressed to the local node to incoming messages addressed to the local node. -
Uses of Handler in org.drasyl.monitoring
Classes in org.drasyl.monitoring that implement Handler Modifier and Type Class Description class
Monitoring
Monitors various states or events in the drasyl node. -
Uses of Handler in org.drasyl.pipeline
Methods in org.drasyl.pipeline that return Handler Modifier and Type Method Description Handler
AbstractPipeline. get(String name)
Handler
Pipeline. get(String name)
Returns theHandler
with the specified name in this pipeline.Handler
DefaultHandlerContext. handler()
Handler
HandlerContext. handler()
Returns the associatedHandler
.Methods in org.drasyl.pipeline with parameters of type Handler Modifier and Type Method Description Pipeline
AbstractPipeline. addAfter(String baseName, String name, Handler handler)
Pipeline
Pipeline. addAfter(String baseName, String name, Handler handler)
Inserts aHandler
after an existing handler of this pipeline.Pipeline
AbstractPipeline. addBefore(String baseName, String name, Handler handler)
Pipeline
Pipeline. addBefore(String baseName, String name, Handler handler)
Inserts aHandler
before an existing handler of this pipeline.Pipeline
AbstractPipeline. addFirst(String name, Handler handler)
Pipeline
Pipeline. addFirst(String name, Handler handler)
Inserts aHandler
at the first position of this pipeline.Pipeline
AbstractPipeline. addLast(String name, Handler handler)
Pipeline
Pipeline. addLast(String name, Handler handler)
Appends aHandler
at the last position of this pipeline.Pipeline
AbstractPipeline. replace(String oldName, String newName, Handler newHandler)
Pipeline
Pipeline. replace(String oldName, String newName, Handler newHandler)
Replaces theHandler
of the specified name with a new handler in this pipeline.Method parameters in org.drasyl.pipeline with type arguments of type Handler Modifier and Type Method Description static int
HandlerMask. mask(Class<? extends Handler> handlerClass)
Returns the mask for a givenhandlerClass
.Constructors in org.drasyl.pipeline with parameters of type Handler Constructor Description DefaultHandlerContext(String name, Handler handler, DrasylConfig config, Pipeline pipeline, DrasylScheduler dependentScheduler, DrasylScheduler independentScheduler, Identity identity, PeersManager peersManager, Serialization inboundSerialization, Serialization outboundSerialization)
Generates a new default handler context for the givenhandler
.EmbeddedPipeline(DrasylConfig config, Identity identity, PeersManager peersManager, Handler... handlers)
Creates a new embedded pipeline and adds all given handler to it.EmbeddedPipeline(DrasylConfig config, Identity identity, PeersManager peersManager, DrasylScheduler dependentScheduler, DrasylScheduler independentScheduler, Handler... handlers)
-
Uses of Handler in org.drasyl.pipeline.handler
Classes in org.drasyl.pipeline.handler that implement Handler Modifier and Type Class Description class
AddressedEnvelopeHandler
This handler wraps all outgoing messages in anAddressedEnvelope
.class
MessagesThroughputHandler
Helper class to visualize the number of inbound and outbound messages per second.Fields in org.drasyl.pipeline.handler declared as Handler Modifier and Type Field Description static Handler
AddressedEnvelopeHandler. INSTANCE
-
Uses of Handler in org.drasyl.pipeline.serialization
Classes in org.drasyl.pipeline.serialization that implement Handler Modifier and Type Class Description class
MessageSerializer
This handler serializes messages to byte array an vice vera. -
Uses of Handler in org.drasyl.pipeline.skeleton
Classes in org.drasyl.pipeline.skeleton that implement Handler Modifier and Type Class Description class
AddressHandlerAdapter<A>
HandlerAdapter
which allows to explicit only handle a specific type of address.class
HandlerAdapter
Skeleton implementation of aHandler
.class
SimpleDuplexEventAwareHandler<I,E,O,A extends Address>
HandlerAdapter
which allows to explicit only handle a specific type of messages and events.class
SimpleDuplexHandler<I,O,A extends Address>
HandlerAdapter
which allows to explicit only handle a specific type of messages and events.class
SimpleInboundEventAwareHandler<I,E,A extends Address>
HandlerAdapter
which allows to explicit only handle a specific type of inbound messages and events.class
SimpleInboundHandler<I,A extends Address>
HandlerAdapter
which allows to explicit only handle a specific type of inbound messages.class
SimpleOutboundHandler<O,A extends Address>
HandlerAdapter
which allows to explicit only handle a specific type of messages. -
Uses of Handler in org.drasyl.remote.handler
Classes in org.drasyl.remote.handler that implement Handler Modifier and Type Class Description class
ArmHandler
Arms (sign/encrypt) outbound and disarms (verify/decrypt) inbound messages.class
ByteBuf2MessageHandler
Handler that converts a givenByteBuf
to aAddressedIntermediateEnvelope
.class
ChunkingHandler
This handler is responsible for merging incoming message chunks into a single message as well as splitting outgoing too large messages into chunks.class
HopCountGuard
This handler ensures thatIntermediateEnvelope
s do not infinitely circulate in the network.class
InternetDiscoveryHandler
This handler performs the following tasks, which help to communicate with nodes located in other networks: Joins one or more super peers or acts itself as a super peer (super peers act as registries of available nodes on the network.class
InvalidProofOfWorkFilter
This handler filters out all messages received with invalid proof of work.class
Message2ByteBufHandler
Handler that converts a givenAddressedIntermediateEnvelope
to aByteBuf
.class
OtherNetworkFilter
This handler filters out all messages received from other networks.class
StaticRoutesHandler
This handler uses preconfigured static routes (DrasylConfig.getStaticRoutes(Config, String)
) to deliver messages.class
UdpServer
Binds to a udp port, sends outgoing messages via udp, and sends received udp packets to theDrasylPipeline
. -
Uses of Handler in org.drasyl.remote.handler.portmapper
Classes in org.drasyl.remote.handler.portmapper that implement Handler Modifier and Type Class Description class
PortMapper
This handler tries to create a port forwarding for the UDP server using different methods (PCP, NAT-PMP, UPnP-IGD, etc.).
-