A B C D E F G H I J L M N O P Q R S T U V W 
All Classes All Packages

A

accept(T) - Method in interface org.drasyl.util.DrasylConsumer
Performs this operation on the given argument.
acceptAddress(Address) - Method in class org.drasyl.pipeline.AddressHandlerAdapter
Returns true if the given address should be handled, false otherwise.
acceptEvent(Event) - Method in class org.drasyl.pipeline.SimpleInboundHandler
Returns true if the given event should be handled.
acceptInbound(Object) - Method in class org.drasyl.pipeline.SimpleInboundHandler
Returns true if the given message should be handled.
acceptOutbound(Object) - Method in class org.drasyl.pipeline.SimpleDuplexHandler
Returns true if the given message should be handled.
acceptOutbound(Object) - Method in class org.drasyl.pipeline.SimpleOutboundHandler
Returns true if the given message should be handled.
acceptOutboundMessage(Object) - Method in class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
Returns true if the given message should be handled.
acceptOutboundMessage(Object) - Method in class org.drasyl.peer.connection.handler.SimpleChannelOutboundHandler
Returns true if the given message should be handled.
add(Channel) - Method in class org.drasyl.peer.connection.PeerChannelGroup
 
add(CompressedPublicKey) - Method in class org.drasyl.peer.connection.direct.DirectConnectionDemandsCache
Adds publicKey to the cache.
add(CompressedPublicKey) - Method in class org.drasyl.peer.connection.direct.RequestPeerInformationCache
Adds publicKey to the cache if it is not already cached.
add(CompressedPublicKey, Channel) - Method in class org.drasyl.peer.connection.PeerChannelGroup
 
addAfter(String, String, Handler) - Method in class org.drasyl.pipeline.DefaultPipeline
 
addAfter(String, String, Handler) - Method in interface org.drasyl.pipeline.Pipeline
Inserts a Handler after an existing handler of this pipeline.
addBefore(String, String, Handler) - Method in class org.drasyl.pipeline.DefaultPipeline
 
addBefore(String, String, Handler) - Method in interface org.drasyl.pipeline.Pipeline
Inserts a Handler before an existing handler of this pipeline.
addClass(Class<?>...) - Method in class org.drasyl.pipeline.codec.TypeValidator
Adds a class to the list.
addFirst(String, Handler) - Method in class org.drasyl.pipeline.DefaultPipeline
 
addFirst(String, Handler) - Method in interface org.drasyl.pipeline.Pipeline
Inserts a Handler at the first position of this pipeline.
addLast(String, Handler) - Method in class org.drasyl.pipeline.DefaultPipeline
 
addLast(String, Handler) - Method in interface org.drasyl.pipeline.Pipeline
Appends a Handler at the last position of this pipeline.
addPackage(String) - Method in class org.drasyl.pipeline.codec.TypeValidator
Adds a package to the list.
addPeer(CompressedPublicKey) - Method in class org.drasyl.peer.PeersManager
 
Address - Interface in org.drasyl.pipeline.address
This class models an address, that can be used inside the Pipeline by Handlers, to know an application/protocol specific endpoint of a sender or recipient.
AddressHandlerAdapter<A> - Class in org.drasyl.pipeline
HandlerAdapter which allows to explicit only handle a specific type of address.
AddressHandlerAdapter() - Constructor for class org.drasyl.pipeline.AddressHandlerAdapter
Create a new instance which will try to detect the types to match out of the type parameter of the class.
AddressHandlerAdapter(Class<? extends A>) - Constructor for class org.drasyl.pipeline.AddressHandlerAdapter
Create a new instance
afterBufferStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
afterExceptionStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
Adds ChannelHandler to the ChannelPipeline, after the default ExceptionHandler has taken place.
afterFilterStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
afterIdleStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
afterMarshalStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
afterPojoMarshalStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.client.DefaultClientChannelInitializer
 
afterPojoMarshalStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
afterPojoMarshalStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.server.DefaultServerChannelInitializer
 
afterShutdown() - Method in class org.drasyl.plugins.PluginManager
This method get called last when the DrasylNode is shut down.
afterSslStage(SocketChannel) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
afterStart() - Method in class org.drasyl.plugins.PluginManager
This method is called last when the DrasylNode is started.
alive(String, int) - Static method in class org.drasyl.util.NetworkUtil
Checks to see if a specific host:port is available.
APP_MSG2OBJECT_HOLDER - Static variable in class org.drasyl.pipeline.codec.ApplicationMessage2ObjectHolderHandler
 
ApplicationMessage - Class in org.drasyl.peer.connection.message
A message that is sent by an application running on drasyl.
ApplicationMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, byte[]) - Constructor for class org.drasyl.peer.connection.message.ApplicationMessage
Creates a new message.
ApplicationMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, Map<String, String>, byte[]) - Constructor for class org.drasyl.peer.connection.message.ApplicationMessage
Creates a new message.
ApplicationMessage(MessageId, int, String, CompressedPublicKey, ProofOfWork, CompressedPublicKey, short, byte[]) - Constructor for class org.drasyl.peer.connection.message.ApplicationMessage
 
ApplicationMessage(MessageId, int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, short, byte[]) - Constructor for class org.drasyl.peer.connection.message.ApplicationMessage
 
ApplicationMessage2ObjectHolderHandler - Class in org.drasyl.pipeline.codec
Handler that converts a given ApplicationMessage to an ObjectHolder.
apply(T) - Method in interface org.drasyl.util.DrasylFunction
Applies this function to the given argument.
apply(T, U) - Method in interface org.drasyl.util.DrasylBiFunction
Applies this function to the given arguments.
areDirectConnectionsEnabled() - Method in class org.drasyl.DrasylConfig
 
ATTRIBUTE_PUBLIC_KEY - Static variable in class org.drasyl.peer.connection.handler.ThreeWayHandshakeClientHandler
 
AutoSwallow - Interface in org.drasyl.pipeline
All classes that implement this interface will be silent and automatically swallowed at the end of the pipeline.
available(int) - Static method in class org.drasyl.util.NetworkUtil
Checks to see if a specific port is available.

B

beforeBufferStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
beforeExceptionStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
beforeFilterStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
beforeIdleStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
beforeMarshalStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.client.ClientChannelInitializer
 
beforeMarshalStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
beforeMarshalStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.server.DefaultServerChannelInitializer
 
beforePojoMarshalStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
beforeShutdown() - Method in class org.drasyl.plugins.PluginManager
This method get called first when the DrasylNode is shut down.
beforeSslStage(SocketChannel) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
beforeStart() - Method in class org.drasyl.plugins.PluginManager
This method is called first when the DrasylNode is started.
bind(ChannelHandlerContext, SocketAddress, ChannelPromise) - Method in class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
 
bufferStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
Adds ChannelHandler for buffer strategies to the ChannelPipeline.
build() - Method in class org.drasyl.DrasylConfig.Builder
Creates a DrasylConfig from the builder.
bytesToHex(byte[]) - Static method in class org.drasyl.crypto.HexUtil
Converts an array of bytes into a string.

C

channelRead0(ChannelHandlerContext, I) - Method in class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
Is called for each message of type SimpleChannelDuplexHandler on inbound channel.
channelRead0(ChannelHandlerContext, FullHttpRequest) - Method in class org.drasyl.peer.connection.server.handler.ServerHttpHandler
 
channelRead0(ChannelHandlerContext, Message) - Method in class org.drasyl.peer.connection.handler.PingPongHandler
 
channelRead0(ChannelHandlerContext, Message) - Method in class org.drasyl.peer.connection.handler.SignatureHandler
 
channelRead0(ChannelHandlerContext, Message) - Method in class org.drasyl.peer.connection.server.handler.ServerNewConnectionsGuard
 
channelWrite0(ChannelHandlerContext, Message, ChannelPromise) - Method in class org.drasyl.peer.connection.handler.RelayableMessageGuard
 
channelWrite0(ChannelHandlerContext, Message, ChannelPromise) - Method in class org.drasyl.peer.connection.handler.SignatureHandler
 
channelWrite0(ChannelHandlerContext, O, ChannelPromise) - Method in class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
Is called for each message of type SimpleChannelDuplexHandler on the outbound channel.
channelWrite0(ChannelHandlerContext, O, ChannelPromise) - Method in class org.drasyl.peer.connection.handler.SimpleChannelOutboundHandler
Is called for each message of type SimpleChannelOutboundHandler on the outbound channel.
cidr2Netmask(short, int) - Static method in class org.drasyl.util.NetworkUtil
Converts a given CIDR mask to valid IPv4 or IPv6 network mask.
CLASS_KEY_NAME - Static variable in class org.drasyl.pipeline.codec.ObjectHolder
 
clear() - Method in class org.drasyl.peer.connection.direct.DirectConnectionDemandsCache
Clears the cache.
CLIENT_CONNECTION_HANDLER - Static variable in class org.drasyl.peer.connection.client.ClientConnectionHandler
 
ClientChannelInitializer - Class in org.drasyl.peer.connection.client
Creates a newly configured ChannelPipeline for a connection to a node server.
ClientChannelInitializer(int, Identity, int, Duration, short, Endpoint) - Constructor for class org.drasyl.peer.connection.client.ClientChannelInitializer
Initialize a netty Channel for an outbound connection to a node server.
ClientConnectionHandler - Class in org.drasyl.peer.connection.client
This handler performs the handshake with the server and processes incoming messages during the session.
ClientConnectionHandler(ClientEnvironment) - Constructor for class org.drasyl.peer.connection.client.ClientConnectionHandler
 
ClientEnvironment - Class in org.drasyl.peer.connection.client
This class encapsulates all information needed by a ClientChannelInitializer.
ClientEnvironment(DrasylConfig, Identity, Endpoint, Pipeline, PeerChannelGroup, PeersManager, boolean, short, Duration, Duration) - Constructor for class org.drasyl.peer.connection.client.ClientEnvironment
 
ClientException - Exception in org.drasyl.peer.connection.client
A ClientException is thrown by clients when errors occur.
ClientException(String) - Constructor for exception org.drasyl.peer.connection.client.ClientException
 
ClientException(Throwable) - Constructor for exception org.drasyl.peer.connection.client.ClientException
 
close() - Method in interface org.drasyl.DrasylNodeComponent
Stops the component.
close() - Method in class org.drasyl.monitoring.Monitoring
 
close() - Method in class org.drasyl.peer.connection.direct.DirectConnectionsManager
 
close() - Method in class org.drasyl.peer.connection.intravm.IntraVmDiscovery
 
close() - Method in class org.drasyl.peer.connection.localhost.LocalHostDiscovery
 
close() - Method in class org.drasyl.peer.connection.server.Server
Closes the server socket and all open client sockets.
close() - Method in class org.drasyl.util.PortMappingUtil.PortMapping
Closes this port mapping.
close(ChannelHandlerContext, ChannelPromise) - Method in class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
 
Codec<E,​D,​A extends Address> - Class in org.drasyl.pipeline.codec
Standard interface for all codecs of the Pipeline.
Codec() - Constructor for class org.drasyl.pipeline.codec.Codec
 
compareTo(Endpoint) - Method in class org.drasyl.peer.Endpoint
Compares this Endpoint to another object, which must be a Endpoint.
completeOnAllOf(CompletableFuture<Void>, Collection<CompletableFuture<?>>) - Static method in class org.drasyl.util.FutureUtil
Completes future if all of the given futures are completed.
completeOnAllOf(CompletableFuture<Void>, CompletableFuture<?>...) - Static method in class org.drasyl.util.FutureUtil
Completes future if all of the given futures are completed.
completeOnAnyOfExceptionally(CompletableFuture<?>, Collection<CompletableFuture<?>>) - Static method in class org.drasyl.util.FutureUtil
Completes future exceptionally if one of the given futures are completed exceptionally.
completeOnAnyOfExceptionally(CompletableFuture<?>, CompletableFuture<?>...) - Static method in class org.drasyl.util.FutureUtil
Completes future exceptionally if one of the given futures are completed exceptionally.
compressedKey(PrivateKey) - Static method in class org.drasyl.crypto.Crypto
Generates an asymmetric, compressed curve private key from the given private key.
compressedKey(PublicKey) - Static method in class org.drasyl.crypto.Crypto
Generates an asymmetric, compressed curve public key from the given public key.
CompressedKeyPair - Class in org.drasyl.identity
This class is a simple holder for a compressed key pair (a CompressedPublicKey and a CompressedPrivateKey).
CompressedPrivateKey - Class in org.drasyl.identity
This interface models a compressed key that can be converted into a string and vice versa.
CompressedPrivateKey(String) - Constructor for class org.drasyl.identity.CompressedPrivateKey
Creates a new compressed private key from the given string.
CompressedPrivateKey(PrivateKey) - Constructor for class org.drasyl.identity.CompressedPrivateKey
Creates a new compressed private key from the given private key.
CompressedPublicKey - Class in org.drasyl.identity
This interface models a compressed key that can be converted into a string and vice versa.
CompressedPublicKey(String) - Constructor for class org.drasyl.identity.CompressedPublicKey
Creates a new compressed public key from the given string.
CompressedPublicKey(PublicKey) - Constructor for class org.drasyl.identity.CompressedPublicKey
Creates a new compressed public key from the given public key.
config - Variable in class org.drasyl.pipeline.DefaultPipeline
 
config() - Method in interface org.drasyl.pipeline.HandlerContext
Returns the corresponding DrasylConfig.
confirmSession(ChannelHandlerContext, O) - Method in class org.drasyl.peer.connection.handler.ThreeWayHandshakeClientHandler
 
connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise) - Method in class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
 
CONNECTION_GUARD - Static variable in class org.drasyl.peer.connection.server.handler.ServerNewConnectionsGuard
 
contains(CompressedPublicKey) - Method in class org.drasyl.peer.connection.direct.DirectConnectionDemandsCache
 
context(String) - Method in class org.drasyl.pipeline.DefaultPipeline
 
context(String) - Method in interface org.drasyl.pipeline.Pipeline
Returns the context object of the Handler with the specified name in this pipeline.
createConnection(ChannelHandlerContext, O) - Method in class org.drasyl.peer.connection.handler.ThreeWayHandshakeClientHandler
 
createConnection(ChannelHandlerContext, JoinMessage) - Method in class org.drasyl.peer.connection.server.ServerConnectionHandler
 
createConnection(ChannelHandlerContext, WelcomeMessage) - Method in class org.drasyl.peer.connection.client.ClientConnectionHandler
 
createConnection(ChannelHandlerContext, R) - Method in class org.drasyl.peer.connection.handler.ThreeWayHandshakeServerHandler
 
createInetAddress(String) - Static method in class org.drasyl.util.NetworkUtil
Creates a InetAddress by parsing the given string.
createUri(String, String, int) - Static method in class org.drasyl.util.UriUtil
Creates a URI by parsing the given components.
createUri(String, String, String, int, String, String) - Static method in class org.drasyl.util.UriUtil
Creates a URI by parsing the given components.
createUrl(String) - Static method in class org.drasyl.util.UrlUtil
Creates a URL by parsing the given string.
Crypto - Class in org.drasyl.crypto
Util class that provides cryptography functions for drasyl.
CryptoException - Exception in org.drasyl.crypto
A CryptoException is thrown by Crypto when errors occur.
CryptoException(Exception) - Constructor for exception org.drasyl.crypto.CryptoException
 
CryptoException(String, Exception) - Constructor for exception org.drasyl.crypto.CryptoException
 
currentExternalAddress() - Method in class org.drasyl.util.PortMappingUtil.PortMapping
Returns the external address of the port mapping.
customStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.client.DefaultClientChannelInitializer
 
customStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
Adds ChannelHandler to the ChannelPipeline, after the default initialization has taken place.
customStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.server.DefaultServerChannelInitializer
 

D

decode(ChannelHandlerContext, BinaryWebSocketFrame, List<Object>) - Method in class org.drasyl.peer.connection.handler.MessageDecoder
 
DEFAULT_CODEC - Static variable in class org.drasyl.pipeline.codec.DefaultCodec
 
DefaultClientChannelInitializer - Class in org.drasyl.peer.connection.client
Creates a newly configured ChannelPipeline for a ClientConnection to a node server.
DefaultClientChannelInitializer(ClientEnvironment) - Constructor for class org.drasyl.peer.connection.client.DefaultClientChannelInitializer
 
DefaultCodec - Class in org.drasyl.pipeline.codec
This default codec allows to encode/decode all supported objects by Jackson.
DefaultHandlerContext - Class in org.drasyl.pipeline
The default handler context implementation.
DefaultHandlerContext(String, Handler, DrasylConfig, Pipeline, Scheduler, Identity, TypeValidator, TypeValidator) - Constructor for class org.drasyl.pipeline.DefaultHandlerContext
Generates a new default handler context for the given handler.
DefaultPipeline - Class in org.drasyl.pipeline
Abstract Pipeline implementation, that needs head and tail.
DefaultPipeline() - Constructor for class org.drasyl.pipeline.DefaultPipeline
 
DefaultServerChannelInitializer - Class in org.drasyl.peer.connection.server
Creates a newly configured ChannelPipeline for the node server.
DefaultServerChannelInitializer(ServerEnvironment) - Constructor for class org.drasyl.peer.connection.server.DefaultServerChannelInitializer
 
DefaultSessionInitializer - Class in org.drasyl.peer.connection
Creates a newly configured ChannelPipeline for a new channel for a connection to or from a the Server.
DefaultSessionInitializer(int, Identity, int, Duration, short) - Constructor for class org.drasyl.peer.connection.DefaultSessionInitializer
 
deleteIdentityFile(Path) - Static method in class org.drasyl.identity.IdentityManager
Deletes the identity file specified in the configuration.
deregister(ChannelHandlerContext, ChannelPromise) - Method in class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
 
difference(Set<E>, E...) - Static method in class org.drasyl.util.SetUtil
Returns a set containing all elements from set a that are not b.
difference(Set<E>, Collection<E>) - Static method in class org.drasyl.util.SetUtil
Returns a set containing all elements from set a that are not in set b.
DIRECT_CONNECTION_MESSAGE_SINK_HANDLER - Static variable in class org.drasyl.peer.connection.pipeline.DirectConnectionMessageSinkHandler
 
DirectClient - Class in org.drasyl.peer.connection.client
Used by DirectConnectionsManager to establish a direct connection to another peer.
DirectClient(DrasylConfig, Identity, PeersManager, Pipeline, PeerChannelGroup, EventLoopGroup, Supplier<Set<Endpoint>>, BooleanSupplier, Runnable, BooleanSupplier) - Constructor for class org.drasyl.peer.connection.client.DirectClient
 
DirectConnectionDemandsCache - Class in org.drasyl.peer.connection.direct
This class caches all peers for a direct connection has been demanded.
DirectConnectionDemandsCache(int, Duration) - Constructor for class org.drasyl.peer.connection.direct.DirectConnectionDemandsCache
Creates a new cache which automatically removes any entry after the duration specified in expireTime.
DirectConnectionMessageSinkHandler - Class in org.drasyl.peer.connection.pipeline
This handler tries to send outgoing messages via TCP-based direct connection to another peers.
DirectConnectionMessageSinkHandler(PeerChannelGroup) - Constructor for class org.drasyl.peer.connection.pipeline.DirectConnectionMessageSinkHandler
 
directConnectionsChannelInitializer(Class<? extends ChannelInitializer<SocketChannel>>) - Method in class org.drasyl.DrasylConfig.Builder
 
directConnectionsEnabled(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
directConnectionsHandshakeTimeout(Duration) - Method in class org.drasyl.DrasylConfig.Builder
 
directConnectionsIdleRetries(short) - Method in class org.drasyl.DrasylConfig.Builder
 
directConnectionsIdleTimeout(Duration) - Method in class org.drasyl.DrasylConfig.Builder
 
DirectConnectionsManager - Class in org.drasyl.peer.connection.direct
This class is responsible for establishing and managing direct connections with other drasyl nodes.
DirectConnectionsManager(DrasylConfig, Identity, PeersManager, Pipeline, PeerChannelGroup, EventLoopGroup, BooleanSupplier, Set<Endpoint>) - Constructor for class org.drasyl.peer.connection.direct.DirectConnectionsManager
 
directConnectionsMaxConcurrentConnections(int) - Method in class org.drasyl.DrasylConfig.Builder
 
directConnectionsRetryDelays(List<Duration>) - Method in class org.drasyl.DrasylConfig.Builder
 
disconnect(ChannelHandlerContext, ChannelPromise) - Method in class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
 
doHandshake(ChannelHandlerContext, Message) - Method in class org.drasyl.peer.connection.handler.ThreeWayHandshakeClientHandler
 
doHandshake(ChannelHandlerContext, Message) - Method in class org.drasyl.peer.connection.handler.ThreeWayHandshakeServerHandler
 
DRASYL_HANDSHAKE_AFTER_WEBSOCKET_HANDSHAKE - Static variable in class org.drasyl.peer.connection.client.DefaultClientChannelInitializer
 
DrasylBiFunction<T,​U,​R,​E extends Exception> - Interface in org.drasyl.util
BiFunction that can throw a Exception.
DrasylConfig - Class in org.drasyl
This class represents the configuration for a DrasylNode.
DrasylConfig() - Constructor for class org.drasyl.DrasylConfig
 
DrasylConfig(Config) - Constructor for class org.drasyl.DrasylConfig
Creates a new config for a drasyl node.
DrasylConfig.Builder - Class in org.drasyl
Builder class to create a DrasylConfig with custom values.
DrasylConsumer<T,​E extends DrasylException> - Interface in org.drasyl.util
Consumer that can throw a DrasylException.
DrasylException - Exception in org.drasyl
All checked exceptions in drasyl inherit from this exception class.
DrasylException(String) - Constructor for exception org.drasyl.DrasylException
 
DrasylException(String, Throwable) - Constructor for exception org.drasyl.DrasylException
 
DrasylException(Throwable) - Constructor for exception org.drasyl.DrasylException
 
DrasylFunction<T,​R,​E extends Exception> - Interface in org.drasyl.util
Function that can throw a Exception.
DrasylNode - Class in org.drasyl
Represents a node in the drasyl Overlay Network.
DrasylNode() - Constructor for class org.drasyl.DrasylNode
Creates a new drasyl Node.
DrasylNode(DrasylConfig) - Constructor for class org.drasyl.DrasylNode
Creates a new drasyl Node with the given config.
DrasylNode(DrasylConfig, Identity, PeersManager, PeerChannelGroup, Set<Endpoint>, AtomicBoolean, Pipeline, List<DrasylNodeComponent>, PluginManager, AtomicBoolean, CompletableFuture<Void>, CompletableFuture<Void>) - Constructor for class org.drasyl.DrasylNode
 
DrasylNodeComponent - Interface in org.drasyl
This interface describes components of the DrasylNode.
DrasylPipeline - Class in org.drasyl.pipeline
The default Pipeline implementation.
DrasylPipeline(Consumer<Event>, DrasylConfig, Identity) - Constructor for class org.drasyl.pipeline.DrasylPipeline
 
DrasylPlugin - Interface in org.drasyl.plugins
This interface is implemented by all drasyl plugins.
DrasylRuntimeException - Exception in org.drasyl
All unchecked exceptions in drasyl inherit from this exception class.
DrasylRuntimeException(String) - Constructor for exception org.drasyl.DrasylRuntimeException
 
DrasylRuntimeException(Throwable) - Constructor for exception org.drasyl.DrasylRuntimeException
 
DrasylScheduler - Class in org.drasyl.util
It is an intentional behavior that this scheduler ensures that the JVM is not automatically terminated once all sequential program flows have been processed.
DrasylSupplier<T,​E extends DrasylException> - Interface in org.drasyl.util
Supplier that can throw a DrasylException.

E

EmbeddedPipeline - Class in org.drasyl.pipeline
Embedded Pipeline implementation, that allows easy testing of Handlers.
EmbeddedPipeline(Identity, TypeValidator, TypeValidator) - Constructor for class org.drasyl.pipeline.EmbeddedPipeline
 
EmbeddedPipeline(Identity, TypeValidator, TypeValidator, Handler...) - Constructor for class org.drasyl.pipeline.EmbeddedPipeline
Creates a new embedded pipeline and adds all given handler to it.
encode(ChannelHandlerContext, Message, List<Object>) - Method in class org.drasyl.peer.connection.handler.MessageEncoder
 
Endpoint - Class in org.drasyl.peer
Represents an endpoint of a drasyl node.
endpoints - Variable in class org.drasyl.peer.PeerInformation
 
environment - Variable in class org.drasyl.peer.connection.server.DefaultServerChannelInitializer
 
equals(Object) - Method in class org.drasyl.crypto.Signature
 
equals(Object) - Method in class org.drasyl.DrasylConfig
 
equals(Object) - Method in exception org.drasyl.DrasylException
 
equals(Object) - Method in exception org.drasyl.DrasylRuntimeException
 
equals(Object) - Method in class org.drasyl.event.MessageEvent
 
equals(Object) - Method in class org.drasyl.event.Node
 
equals(Object) - Method in class org.drasyl.event.NodeUnrecoverableErrorEvent
 
equals(Object) - Method in class org.drasyl.event.Peer
 
equals(Object) - Method in class org.drasyl.identity.CompressedKeyPair
 
equals(Object) - Method in class org.drasyl.identity.Identity
 
equals(Object) - Method in class org.drasyl.identity.ProofOfWork
 
equals(Object) - Method in class org.drasyl.peer.connection.message.ApplicationMessage
 
equals(Object) - Method in class org.drasyl.peer.connection.message.ErrorMessage
 
equals(Object) - Method in class org.drasyl.peer.connection.message.IdentityMessage
 
equals(Object) - Method in class org.drasyl.peer.connection.message.JoinMessage
 
equals(Object) - Method in class org.drasyl.peer.connection.message.MessageId
 
equals(Object) - Method in class org.drasyl.peer.connection.message.PingMessage
 
equals(Object) - Method in class org.drasyl.peer.connection.message.PongMessage
 
equals(Object) - Method in class org.drasyl.peer.connection.message.QuitMessage
 
equals(Object) - Method in class org.drasyl.peer.connection.message.SignedMessage
 
equals(Object) - Method in class org.drasyl.peer.connection.message.SuccessMessage
 
equals(Object) - Method in class org.drasyl.peer.connection.message.WelcomeMessage
 
equals(Object) - Method in class org.drasyl.peer.connection.message.WhoisMessage
 
equals(Object) - Method in class org.drasyl.peer.connection.PeerChannelGroup
 
equals(Object) - Method in class org.drasyl.peer.Endpoint
 
equals(Object) - Method in class org.drasyl.peer.PeerInformation
 
equals(Object) - Method in class org.drasyl.pipeline.address.InetAddressWrapper
 
equals(Object) - Method in class org.drasyl.pipeline.codec.ObjectHolder
 
equals(Object) - Method in class org.drasyl.plugins.PluginEnvironment
 
equals(Object) - Method in class org.drasyl.util.Pair
 
equals(Object) - Method in class org.drasyl.util.Triple
 
ERROR_CHUNKED_MESSAGE_INVALID_CHECKSUM - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ERROR_CHUNKED_MESSAGE_PAYLOAD_TOO_LARGE - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ERROR_CHUNKED_MESSAGE_TIMEOUT - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ERROR_IDENTITY_COLLISION - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ERROR_INITIAL_CHUNK_MISSING - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ERROR_INVALID_SIGNATURE - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ERROR_NOT_A_SUPER_PEER - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ERROR_OTHER_NETWORK - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ERROR_PEER_UNAVAILABLE - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ERROR_PROOF_OF_WORK_INVALID - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ERROR_UNEXPECTED_MESSAGE - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ERROR_WRONG_PUBLIC_KEY - org.drasyl.peer.connection.message.ErrorMessage.Error
 
ErrorMessage - Class in org.drasyl.peer.connection.message
A message representing an error.
ErrorMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, ErrorMessage.Error, MessageId) - Constructor for class org.drasyl.peer.connection.message.ErrorMessage
Creates a new error message.
ErrorMessage.Error - Enum in org.drasyl.peer.connection.message
Specifies the type of the ErrorMessage.
Event - Interface in org.drasyl.event
Describes an Event that provides the application with information about the local node, other peers, connections or incoming messages.
eventTriggered(HandlerContext, Event, CompletableFuture<Void>) - Method in interface org.drasyl.pipeline.Handler
Gets called if a Event was emitted.
eventTriggered(HandlerContext, Event, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.HandlerAdapter
 
eventTriggered(HandlerContext, Event, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.SimpleInboundHandler
 
EXCEPTION_HANDLER - Static variable in class org.drasyl.peer.connection.handler.ExceptionHandler
 
exceptionCaught(ChannelHandlerContext, Throwable) - Method in class org.drasyl.peer.connection.handler.ExceptionHandler
 
exceptionCaught(HandlerContext, Exception) - Method in interface org.drasyl.pipeline.Handler
Gets called if a Exception was thrown.
exceptionCaught(HandlerContext, Exception) - Method in class org.drasyl.pipeline.HandlerAdapter
 
ExceptionHandler - Class in org.drasyl.peer.connection.handler
This handler listens to exceptions on the pipeline and sends them as ErrorMessage to the peer.
ExceptionHandler(Identity) - Constructor for class org.drasyl.peer.connection.handler.ExceptionHandler
Exception handler that does not re-throw occurred Exceptions on ExceptionHandler.exceptionCaught(io.netty.channel.ChannelHandlerContext, java.lang.Throwable) to the next pipeline.
ExceptionHandler(Identity, boolean) - Constructor for class org.drasyl.peer.connection.handler.ExceptionHandler
Exception handler that does re-throw occurred Exceptions on ExceptionHandler.exceptionCaught(io.netty.channel.ChannelHandlerContext, java.lang.Throwable) to the next pipeline, if rethrowExceptions is true.
exceptionStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.client.DefaultClientChannelInitializer
 
exceptionStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
Adds ChannelHandler for exception handling to the ChannelPipeline.
exceptionStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.server.DefaultServerChannelInitializer
 
expose(InetSocketAddress, PortMappingUtil.Protocol) - Static method in class org.drasyl.util.PortMappingUtil
Exposes address via PCP, NAT-PMP, or UPNP-IGD.
externalAddress() - Method in class org.drasyl.util.PortMappingUtil.PortMapping
Returns an Observable which emits the current and every future external addresses.

F

failed() - Method in class org.drasyl.peer.connection.client.DirectClient
Call onFailure if the client can permanently not establish a connection anymore.
filterStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
Adds ChannelHandler for filtering to the ChannelPipeline.
find(CompressedPublicKey) - Method in class org.drasyl.peer.connection.PeerChannelGroup
Searches the channel for given public key.
fireEventTriggered(Event, CompletableFuture<Void>) - Method in interface org.drasyl.pipeline.HandlerContext
Received an event.
fireExceptionCaught(Exception) - Method in interface org.drasyl.pipeline.HandlerContext
Received an Throwable in one of the inbound operations.
fireRead(Address, Object, CompletableFuture<Void>) - Method in interface org.drasyl.pipeline.HandlerContext
Received a message.
first() - Method in class org.drasyl.util.Pair
 
first() - Method in class org.drasyl.util.Triple
 
flush(ChannelHandlerContext) - Method in class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
 
flushBufferSize(int) - Method in class org.drasyl.DrasylConfig.Builder
 
from(String) - Static method in enum org.drasyl.peer.connection.message.ErrorMessage.Error
 
from(String) - Static method in enum org.drasyl.peer.connection.message.QuitMessage.CloseReason
 
fromString(String) - Static method in class org.drasyl.crypto.HexUtil
Converts a Hexadecimal String into the corresponding byte[]
FutureUtil - Class in org.drasyl.util
Utility class for future-related operations.

G

generateIdentity() - Static method in class org.drasyl.identity.IdentityManager
Generates a new random identity.
generateKeys() - Static method in class org.drasyl.crypto.Crypto
Generates an asymmetric curve key pair for signing.
generateProofOfWork(CompressedPublicKey, short) - Static method in class org.drasyl.identity.ProofOfWork
 
generateSslContext(SocketChannel) - Method in class org.drasyl.peer.connection.client.DefaultClientChannelInitializer
 
generateSslContext(SocketChannel) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
Generates a SslHandler that can be added to the ChannelPipeline.
generateSslContext(SocketChannel) - Method in class org.drasyl.peer.connection.server.DefaultServerChannelInitializer
 
get() - Method in interface org.drasyl.util.DrasylSupplier
Gets a result.
get(String) - Method in class org.drasyl.pipeline.DefaultPipeline
 
get(String) - Method in interface org.drasyl.pipeline.Pipeline
Returns the Handler with the specified name in this pipeline.
getAcceptNewConnectionsSupplier() - Method in class org.drasyl.peer.connection.server.ServerEnvironment
 
getAddresses() - Static method in class org.drasyl.util.NetworkUtil
Returns a list of the IP addresses of all network interfaces of the local computer.
getBestEventLoop() - Static method in class org.drasyl.DrasylNode
Returns the EventLoopGroup that fits best to the current environment.
getBestEventLoop(int) - Static method in class org.drasyl.DrasylNode
Returns the EventLoopGroup that fits best to the current environment.
getBytes() - Method in class org.drasyl.crypto.Signature
Returns bytes of signature.
getChannelGroup() - Method in class org.drasyl.peer.connection.client.ClientEnvironment
 
getChannelGroup() - Method in class org.drasyl.peer.connection.server.ServerEnvironment
 
getChannelInitializer(Config, String) - Static method in class org.drasyl.DrasylConfig
 
getChildren() - Method in class org.drasyl.peer.PeersManager
 
getChildrenKeys() - Method in class org.drasyl.peer.PeersManager
 
getClazz() - Method in class org.drasyl.pipeline.codec.ObjectHolder
 
getClazzAsString() - Method in class org.drasyl.pipeline.codec.ObjectHolder
 
getCompleteOnAllOf(Collection<CompletableFuture<?>>) - Static method in class org.drasyl.util.FutureUtil
Returns a completed future if all of the given futures are completed.
getCompleteOnAllOf(CompletableFuture<?>...) - Static method in class org.drasyl.util.FutureUtil
Returns a completed future if all of the given futures are completed.
getConfig() - Method in class org.drasyl.peer.connection.client.ClientEnvironment
 
getConfig() - Method in class org.drasyl.peer.connection.server.ServerEnvironment
 
getConfig() - Method in class org.drasyl.plugins.PluginEnvironment
 
getContent(int, CompressedPublicKey) - Static method in class org.drasyl.peer.connection.server.handler.ServerHttpHandler
 
getCorrespondingId() - Method in interface org.drasyl.peer.connection.message.ResponseMessage
 
getDescription() - Method in enum org.drasyl.peer.connection.message.ErrorMessage.Error
 
getDescription() - Method in enum org.drasyl.peer.connection.message.QuitMessage.CloseReason
 
getDifficulty(ProofOfWork, CompressedPublicKey) - Static method in class org.drasyl.identity.ProofOfWork
 
getDirectConnectionsChannelInitializer() - Method in class org.drasyl.DrasylConfig
 
getDirectConnectionsHandshakeTimeout() - Method in class org.drasyl.DrasylConfig
 
getDirectConnectionsIdleRetries() - Method in class org.drasyl.DrasylConfig
 
getDirectConnectionsIdleTimeout() - Method in class org.drasyl.DrasylConfig
 
getDirectConnectionsMaxConcurrentConnections() - Method in class org.drasyl.DrasylConfig
 
getDirectConnectionsRetryDelays() - Method in class org.drasyl.DrasylConfig
 
getEndpoint() - Method in class org.drasyl.peer.connection.client.ClientEnvironment
 
getEndpointList(Config, String) - Static method in class org.drasyl.DrasylConfig
 
getEndpoints() - Method in class org.drasyl.event.Node
Returns the node's endpoints.
getEndpoints() - Method in class org.drasyl.peer.connection.server.ServerEnvironment
 
getEndpoints() - Method in class org.drasyl.peer.PeerInformation
 
getError() - Method in class org.drasyl.event.NodeUnrecoverableErrorEvent
Returns the exception that crashed the node.
getError() - Method in class org.drasyl.peer.connection.message.ErrorMessage
 
getExternalIPv4Address() - Static method in class org.drasyl.util.NetworkUtil
Determines the external IPv4 address.
getExternalIPv6Address() - Static method in class org.drasyl.util.NetworkUtil
Determines the external IPv6 address.
getFlushBufferSize() - Method in class org.drasyl.DrasylConfig
 
getHandshakeTimeout() - Method in class org.drasyl.peer.connection.client.ClientEnvironment
 
getHeader(String) - Method in class org.drasyl.peer.connection.message.ApplicationMessage
Returns the value of header with name name, or null if this header does not exist.
getHeaders() - Method in class org.drasyl.peer.connection.message.ApplicationMessage
 
getHopCount() - Method in interface org.drasyl.peer.connection.message.Message
Returns this message's hop count.
getHost() - Method in class org.drasyl.peer.Endpoint
Returns the host component of this endpoint.
getId() - Method in interface org.drasyl.peer.connection.message.Message
Returns the unique id of this message.
getIdentity() - Method in class org.drasyl.event.Node
Returns the node's identity.
getIdentity() - Method in class org.drasyl.identity.IdentityManager
 
getIdentity() - Method in class org.drasyl.peer.connection.client.ClientEnvironment
 
getIdentity() - Method in class org.drasyl.peer.connection.server.ServerEnvironment
 
getIdentity() - Method in class org.drasyl.plugins.PluginEnvironment
 
getIdentityPath() - Method in class org.drasyl.DrasylConfig
 
getIdentityPrivateKey() - Method in class org.drasyl.DrasylConfig
 
getIdentityProofOfWork() - Method in class org.drasyl.DrasylConfig
 
getIdentityPublicKey() - Method in class org.drasyl.DrasylConfig
 
getIdleRetries() - Method in class org.drasyl.peer.connection.client.ClientEnvironment
 
getIdleTimeout() - Method in class org.drasyl.peer.connection.client.ClientEnvironment
 
getInetAddress() - Method in class org.drasyl.pipeline.address.InetAddressWrapper
 
getInetAddress(Config, String) - Static method in class org.drasyl.DrasylConfig
 
getInstanceHeavy() - Static method in class org.drasyl.util.DrasylScheduler
Use this Scheduler for slow and heavy task that does do longer computations.
getInstanceLight() - Static method in class org.drasyl.util.DrasylScheduler
Use this Scheduler for fast and light task that does not do heavy computations.
getJoinTime() - Method in class org.drasyl.peer.connection.message.JoinMessage
 
getKeyPair() - Method in class org.drasyl.identity.Identity
 
getLocalHostDiscoveryLeaseTime() - Method in class org.drasyl.DrasylConfig
 
getLocalHostDiscoveryPath() - Method in class org.drasyl.DrasylConfig
 
getLocalHostName() - Static method in class org.drasyl.util.NetworkUtil
Returns the local host name.
getLogger() - Method in class org.drasyl.peer.connection.client.ClientConnectionHandler
 
getLogger() - Method in class org.drasyl.peer.connection.client.DirectClient
 
getLogger() - Method in class org.drasyl.peer.connection.client.SuperPeerClient
 
getLogger() - Method in class org.drasyl.peer.connection.server.ServerConnectionHandler
 
getMarshallingInboundAllowedPackages() - Method in class org.drasyl.DrasylConfig
 
getMarshallingInboundAllowedTypes() - Method in class org.drasyl.DrasylConfig
 
getMarshallingOutboundAllowedPackages() - Method in class org.drasyl.DrasylConfig
 
getMarshallingOutboundAllowedTypes() - Method in class org.drasyl.DrasylConfig
 
getMessageComposedMessageTransferTimeout() - Method in class org.drasyl.DrasylConfig
 
getMessageHopLimit() - Method in class org.drasyl.DrasylConfig
 
getMessageMaxContentLength() - Method in class org.drasyl.DrasylConfig
 
getMonitoringInfluxDatabase() - Method in class org.drasyl.DrasylConfig
 
getMonitoringInfluxPassword() - Method in class org.drasyl.DrasylConfig
 
getMonitoringInfluxReportingFrequency() - Method in class org.drasyl.DrasylConfig
 
getMonitoringInfluxUri() - Method in class org.drasyl.DrasylConfig
 
getMonitoringInfluxUser() - Method in class org.drasyl.DrasylConfig
 
getNetworkId() - Method in class org.drasyl.DrasylConfig
 
getNetworkId() - Method in interface org.drasyl.peer.connection.message.Message
Returns the network the sender belongs to.
getNetworkPrefixLength(InetAddress) - Static method in class org.drasyl.util.NetworkUtil
Returns the network prefix length for given address.
getNode() - Method in interface org.drasyl.event.NodeEvent
Returns the node to which this event refers.
getNonce() - Method in class org.drasyl.identity.ProofOfWork
 
getObject() - Method in class org.drasyl.pipeline.codec.ObjectHolder
 
getPath(Config, String) - Static method in class org.drasyl.DrasylConfig
Gets the Path at the given path.
getPayload() - Method in class org.drasyl.event.MessageEvent
Returns the message's payload.
getPayload() - Method in class org.drasyl.peer.connection.message.ApplicationMessage
 
getPayload() - Method in class org.drasyl.peer.connection.message.SignedMessage
 
getPeer() - Method in interface org.drasyl.event.PeerEvent
Returns the peer to which this event refers.
getPeer(CompressedPublicKey) - Method in class org.drasyl.peer.PeersManager
 
getPeerInformation() - Method in class org.drasyl.peer.connection.message.IdentityMessage
 
getPeerInformation() - Method in class org.drasyl.peer.connection.message.WelcomeMessage
 
getPeerInformation() - Method in class org.drasyl.peer.connection.message.WhoisMessage
 
getPeers() - Method in class org.drasyl.peer.PeersManager
 
getPeers(PeersManager) - Static method in class org.drasyl.peer.connection.server.handler.ServerHttpHandler
 
getPeersManager() - Method in class org.drasyl.peer.connection.client.ClientEnvironment
 
getPeersManager() - Method in class org.drasyl.peer.connection.server.ServerEnvironment
 
getPipeline() - Method in class org.drasyl.peer.connection.client.ClientEnvironment
 
getPipeline() - Method in class org.drasyl.peer.connection.server.ServerEnvironment
 
getPipeline() - Method in class org.drasyl.plugins.PluginEnvironment
 
getPlugins() - Method in class org.drasyl.DrasylConfig
 
getPlugins(Config, String) - Static method in class org.drasyl.DrasylConfig
 
getPort() - Method in class org.drasyl.peer.Endpoint
Returns the port of this endpoint.
getPrivateKey() - Method in class org.drasyl.identity.CompressedKeyPair
 
getPrivateKey() - Method in class org.drasyl.identity.Identity
 
getPrivateKey() - Method in class org.drasyl.identity.IdentityManager
 
getPrivateKey(Config, String) - Static method in class org.drasyl.DrasylConfig
Gets the CompressedPrivateKey at the given path.
getPrivateKeyFromBytes(byte[]) - Static method in class org.drasyl.crypto.Crypto
Generates an asymmetric curve private key from the given bytes.
getProofOfWork() - Method in class org.drasyl.identity.Identity
 
getProofOfWork() - Method in class org.drasyl.identity.IdentityManager
 
getProofOfWork() - Method in interface org.drasyl.peer.connection.message.Message
Returns this message sender's proof of work.
getProofOfWork(Config, String) - Static method in class org.drasyl.DrasylConfig
Gets the ProofOfWork at the given path.
getPublicKey() - Method in class org.drasyl.event.Peer
Returns the peer's public key.
getPublicKey() - Method in class org.drasyl.identity.CompressedKeyPair
 
getPublicKey() - Method in class org.drasyl.identity.Identity
 
getPublicKey() - Method in class org.drasyl.identity.IdentityManager
 
getPublicKey() - Method in class org.drasyl.peer.Endpoint
Returns the CompressedPublicKey of this Endpoint.
getPublicKey(Config, String) - Static method in class org.drasyl.DrasylConfig
Gets the CompressedPublicKey at the given path.
getPublicKeyFromBytes(byte[]) - Static method in class org.drasyl.crypto.Crypto
Generates an asymmetric curve public key from the given bytes.
getQueryMap(URI) - Static method in class org.drasyl.util.UriUtil
Returns the query parameters of the given uri or an empty map if the query is null.
getReason() - Method in class org.drasyl.peer.connection.message.QuitMessage
 
getRecipient() - Method in interface org.drasyl.peer.connection.message.Message
Returns this message's recipient.
getSender() - Method in class org.drasyl.event.MessageEvent
Returns the message's sender.
getSender() - Method in interface org.drasyl.peer.connection.message.Message
Returns this message's sender.
getServerBindHost() - Method in class org.drasyl.DrasylConfig
 
getServerBindPort() - Method in class org.drasyl.DrasylConfig
 
getServerChannelInitializer() - Method in class org.drasyl.DrasylConfig
 
getServerEndpoints() - Method in class org.drasyl.DrasylConfig
 
getServerHandshakeTimeout() - Method in class org.drasyl.DrasylConfig
 
getServerIdleRetries() - Method in class org.drasyl.DrasylConfig
 
getServerIdleTimeout() - Method in class org.drasyl.DrasylConfig
 
getServerSSLEnabled() - Method in class org.drasyl.DrasylConfig
 
getServerSSLProtocols() - Method in class org.drasyl.DrasylConfig
 
getShort(Config, String) - Static method in class org.drasyl.DrasylConfig
Gets the short at the given path.
getSignableBytes() - Method in interface org.drasyl.crypto.Signable
Returns a byte representation of the object that can be used for signing the object.
getSignature() - Method in interface org.drasyl.crypto.Signable
Returns the signature this signable object was signed with.
getSignature() - Method in class org.drasyl.peer.connection.message.SignedMessage
 
getSuperPeer() - Method in class org.drasyl.peer.PeersManager
 
getSuperPeerChannelInitializer() - Method in class org.drasyl.DrasylConfig
 
getSuperPeerEndpoints() - Method in class org.drasyl.DrasylConfig
 
getSuperPeerHandshakeTimeout() - Method in class org.drasyl.DrasylConfig
 
getSuperPeerIdleRetries() - Method in class org.drasyl.DrasylConfig
 
getSuperPeerIdleTimeout() - Method in class org.drasyl.DrasylConfig
 
getSuperPeerKey() - Method in class org.drasyl.peer.PeersManager
 
getSuperPeerRetryDelays() - Method in class org.drasyl.DrasylConfig
 
getURI() - Method in class org.drasyl.peer.Endpoint
Returns the URI of this Endpoint.
getURI(Config, String) - Static method in class org.drasyl.DrasylConfig
Gets the URI at the given path.
getUserAgent() - Method in interface org.drasyl.peer.connection.message.Message
Returns the user agent of the sender's node.
getVersion() - Static method in class org.drasyl.DrasylNode
Returns the version of the node.

H

handler() - Method in class org.drasyl.pipeline.DefaultHandlerContext
 
handler() - Method in interface org.drasyl.pipeline.HandlerContext
Returns the associated Handler.
Handler - Interface in org.drasyl.pipeline
Handles an I/O event or intercepts an I/O operation, and forwards it to its next handler in its Pipeline.
HandlerAdapter - Class in org.drasyl.pipeline
Skeleton implementation of a Handler.
HandlerAdapter() - Constructor for class org.drasyl.pipeline.HandlerAdapter
 
handlerAdded(ChannelHandlerContext) - Method in class org.drasyl.peer.connection.handler.ThreeWayHandshakeClientHandler
 
handlerAdded(HandlerContext) - Method in interface org.drasyl.pipeline.Handler
Gets called after the Handler was added to the actual context and it's ready to handle events.
handlerAdded(HandlerContext) - Method in class org.drasyl.pipeline.HandlerAdapter
Do nothing by default, sub-classes may override this method.
HandlerContext - Interface in org.drasyl.pipeline
Enables a Handler to interact with its Pipeline and other handlers.
handlerNames - Variable in class org.drasyl.pipeline.DefaultPipeline
 
handlerRemoved(HandlerContext) - Method in interface org.drasyl.pipeline.Handler
Gets called after the Handler was removed from the actual context and it doesn't handle events anymore.
handlerRemoved(HandlerContext) - Method in class org.drasyl.pipeline.HandlerAdapter
Do nothing by default, sub-classes may override this method.
hashCode() - Method in class org.drasyl.crypto.Signature
 
hashCode() - Method in class org.drasyl.DrasylConfig
 
hashCode() - Method in exception org.drasyl.DrasylException
 
hashCode() - Method in exception org.drasyl.DrasylRuntimeException
 
hashCode() - Method in class org.drasyl.event.MessageEvent
 
hashCode() - Method in class org.drasyl.event.Node
 
hashCode() - Method in class org.drasyl.event.NodeUnrecoverableErrorEvent
 
hashCode() - Method in class org.drasyl.event.Peer
 
hashCode() - Method in class org.drasyl.identity.CompressedKeyPair
 
hashCode() - Method in class org.drasyl.identity.Identity
 
hashCode() - Method in class org.drasyl.identity.ProofOfWork
 
hashCode() - Method in class org.drasyl.peer.connection.message.ApplicationMessage
 
hashCode() - Method in class org.drasyl.peer.connection.message.ErrorMessage
 
hashCode() - Method in class org.drasyl.peer.connection.message.IdentityMessage
 
hashCode() - Method in class org.drasyl.peer.connection.message.JoinMessage
 
hashCode() - Method in class org.drasyl.peer.connection.message.MessageId
 
hashCode() - Method in class org.drasyl.peer.connection.message.PingMessage
 
hashCode() - Method in class org.drasyl.peer.connection.message.PongMessage
 
hashCode() - Method in class org.drasyl.peer.connection.message.QuitMessage
 
hashCode() - Method in class org.drasyl.peer.connection.message.SignedMessage
 
hashCode() - Method in class org.drasyl.peer.connection.message.SuccessMessage
 
hashCode() - Method in class org.drasyl.peer.connection.message.WelcomeMessage
 
hashCode() - Method in class org.drasyl.peer.connection.message.WhoisMessage
 
hashCode() - Method in class org.drasyl.peer.connection.PeerChannelGroup
 
hashCode() - Method in class org.drasyl.peer.Endpoint
 
hashCode() - Method in class org.drasyl.peer.PeerInformation
 
hashCode() - Method in class org.drasyl.pipeline.address.InetAddressWrapper
 
hashCode() - Method in class org.drasyl.pipeline.codec.ObjectHolder
 
hashCode() - Method in class org.drasyl.plugins.PluginEnvironment
 
hashCode() - Method in class org.drasyl.util.Pair
 
hashCode() - Method in class org.drasyl.util.Triple
 
hashCode2Hex(HashCode) - Static method in class org.drasyl.crypto.Hashing
Converts the given HashCode into a hexadecimal string.
Hashing - Class in org.drasyl.crypto
Util class that provides hashing functions for drasyl.
hasPosixSupport(Path) - Static method in class org.drasyl.util.PathUtil
Check if path's file system supports POSIX.
head - Variable in class org.drasyl.pipeline.DefaultPipeline
 
headers - Variable in class org.drasyl.peer.connection.message.ApplicationMessage
 
heavySchedulerCreated - Static variable in class org.drasyl.util.DrasylScheduler
 
HexUtil - Class in org.drasyl.crypto
Util class that provides hexadecimal functions for drasyl.
HOP_COUNT_GUARD - Static variable in class org.drasyl.peer.connection.handler.RelayableMessageGuard
 

I

identity - Variable in class org.drasyl.pipeline.DefaultPipeline
 
identity() - Method in class org.drasyl.DrasylNode
Returns the Identity of this node.
identity() - Method in interface org.drasyl.pipeline.HandlerContext
Returns the identifier of this node.
Identity - Class in org.drasyl.identity
Represents the private identity of a peer (includes the proof of work, the public and private key).
Identity(int, String, String) - Constructor for class org.drasyl.identity.Identity
 
IdentityManager - Class in org.drasyl.identity
This class holds the identity of the node.
IdentityManager(DrasylConfig) - Constructor for class org.drasyl.identity.IdentityManager
Manages the identity at the specified file path.
IdentityManagerException - Exception in org.drasyl.identity
A IdentityManagerException is thrown by the IdentityManager when errors occur.
IdentityManagerException(String) - Constructor for exception org.drasyl.identity.IdentityManagerException
 
IdentityManagerException(Throwable) - Constructor for exception org.drasyl.identity.IdentityManagerException
 
IdentityMessage - Class in org.drasyl.peer.connection.message
This message is used as a response to a WhoisMessage and contains information about a peer (like public key and endpoints).
IdentityMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, PeerInformation, MessageId) - Constructor for class org.drasyl.peer.connection.message.IdentityMessage
 
identityPath(Path) - Method in class org.drasyl.DrasylConfig.Builder
 
identityPrivateKey(CompressedPrivateKey) - Method in class org.drasyl.DrasylConfig.Builder
 
identityProofOfWork(ProofOfWork) - Method in class org.drasyl.DrasylConfig.Builder
 
identityPublicKey(CompressedPublicKey) - Method in class org.drasyl.DrasylConfig.Builder
 
IDLE_EVENT - Static variable in class org.drasyl.peer.connection.DefaultSessionInitializer
 
idleStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
Adds ChannelHandler for idle handling to the ChannelPipeline.
inboundEvents() - Method in class org.drasyl.pipeline.EmbeddedPipeline
 
inboundMessages() - Method in class org.drasyl.pipeline.EmbeddedPipeline
 
inboundValidator - Variable in class org.drasyl.pipeline.DefaultPipeline
 
inboundValidator() - Method in interface org.drasyl.pipeline.HandlerContext
Returns the inbound type validator of this pipeline.
incNonce() - Method in class org.drasyl.identity.ProofOfWork
 
incrementHopCount() - Method in interface org.drasyl.peer.connection.message.Message
Increases the message's hop count.
InetAddressWrapper - Class in org.drasyl.pipeline.address
This class holds an InetAddress for the processing inside the Pipeline as an Address.
InetAddressWrapper(InetAddress) - Constructor for class org.drasyl.pipeline.address.InetAddressWrapper
 
initChannel(SocketChannel) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
 
initPointer() - Method in class org.drasyl.pipeline.DefaultPipeline
 
INSTANCE - Static variable in class org.drasyl.peer.connection.handler.MessageDecoder
 
INSTANCE - Static variable in class org.drasyl.peer.connection.handler.MessageEncoder
 
INSTANCE - Static variable in class org.drasyl.pipeline.codec.ApplicationMessage2ObjectHolderHandler
 
INSTANCE - Static variable in class org.drasyl.pipeline.codec.DefaultCodec
 
intern() - Method in class org.drasyl.peer.PeerInformation
intern(T) - Method in class org.drasyl.util.InternPool
Returns a canonical representation for the object.
InternPool<T> - Class in org.drasyl.util
Represents a pool of unique objects of type T.
InternPool() - Constructor for class org.drasyl.util.InternPool
 
INTRA_VM_SINK_HANDLER - Static variable in class org.drasyl.peer.connection.intravm.IntraVmDiscovery
 
IntraVmDiscovery - Class in org.drasyl.peer.connection.intravm
Uses shared memory to discover other drasyl nodes running on same JVM.
IntraVmDiscovery(CompressedPublicKey, PeersManager, Pipeline) - Constructor for class org.drasyl.peer.connection.intravm.IntraVmDiscovery
 
intraVmDiscoveryEnabled(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
intValue() - Method in class org.drasyl.identity.ProofOfWork
Returns the value of this ProofOfWork as an int.
irrevocablyTerminate() - Static method in class org.drasyl.DrasylNode
This method stops the shared threads (EventLoopGroups), but only if none DrasylNode is using them anymore.
isChildrenJoin() - Method in class org.drasyl.peer.connection.message.JoinMessage
 
isIntraVmDiscoveryEnabled() - Method in class org.drasyl.DrasylConfig
 
isLocalHostDiscoveryEnabled() - Method in class org.drasyl.DrasylConfig
 
isMarshallingInboundAllowAllPrimitives() - Method in class org.drasyl.DrasylConfig
 
isMarshallingInboundAllowArrayOfDefinedTypes() - Method in class org.drasyl.DrasylConfig
 
isMarshallingOutboundAllowAllPrimitives() - Method in class org.drasyl.DrasylConfig
 
isMarshallingOutboundAllowArrayOfDefinedTypes() - Method in class org.drasyl.DrasylConfig
 
isMonitoringEnabled() - Method in class org.drasyl.DrasylConfig
 
isSecureEndpoint() - Method in class org.drasyl.peer.Endpoint
Returns true if endpoint uses WebSocket Secure protocol.
isServerEnabled() - Method in class org.drasyl.DrasylConfig
 
isServerExposeEnabled() - Method in class org.drasyl.DrasylConfig
 
isSuperPeerEnabled() - Method in class org.drasyl.DrasylConfig
 
isTypeOf(Class<?>, Class<?>) - Static method in class org.drasyl.pipeline.codec.TypeValidator
Checks if clazz is a subclass of superClass.
isValid() - Method in class org.drasyl.identity.Identity
Validates the identity by checking whether the proof of work matches the public key.
isValid(CompressedPublicKey, short) - Method in class org.drasyl.identity.ProofOfWork
 
isValidMessageId(CharSequence) - Static method in class org.drasyl.peer.connection.message.MessageId
Checks if id is a valid identifier.
isValidNonSpecialIPAddress(InetAddress) - Static method in class org.drasyl.util.NetworkUtil
Check if the given address is a normal IP address that is neither a loopback, link local nor multicast address.
isValidPort(int) - Static method in class org.drasyl.util.NetworkUtil
Checks if a port is valid or not.
isWebSocketNonSecureURI(URI) - Static method in class org.drasyl.util.WebSocketUtil
 
isWebSocketSecureURI(URI) - Static method in class org.drasyl.util.WebSocketUtil
 
isWebSocketURI(URI) - Static method in class org.drasyl.util.WebSocketUtil
 

J

JACKSON_MAPPER - Static variable in class org.drasyl.util.JSONUtil
 
JACKSON_READER - Static variable in class org.drasyl.util.JSONUtil
 
JACKSON_WRITER - Static variable in class org.drasyl.util.JSONUtil
 
joinAsChildren() - Method in class org.drasyl.peer.connection.client.ClientEnvironment
 
JoinMessage - Class in org.drasyl.peer.connection.message
A message representing a join to the node server.
JoinMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, long) - Constructor for class org.drasyl.peer.connection.message.JoinMessage
Creates a new join message.
JSONUtil - Class in org.drasyl.util
Holder for the JSON serializer and JSON deserializer.

L

lightSchedulerCreated - Static variable in class org.drasyl.util.DrasylScheduler
 
loadOrCreateIdentity() - Method in class org.drasyl.identity.IdentityManager
Attempts to load the identity defined in the configuration: First it tries to read the key pair directly from the configuration.
LocalHostDiscovery - Class in org.drasyl.peer.connection.localhost
Uses the file system to discover other drasyl nodes running on the local computer.
LocalHostDiscovery(DrasylConfig, CompressedPublicKey, PeersManager, Set<Endpoint>, Pipeline) - Constructor for class org.drasyl.peer.connection.localhost.LocalHostDiscovery
 
localHostDiscoveryEnabled(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
localHostDiscoveryLeaseTime(Duration) - Method in class org.drasyl.DrasylConfig.Builder
 
LoggingUtil - Class in org.drasyl.util
Utility class for logging-related operations.
LOOPBACK_MESSAGE_SINK_HANDLER - Static variable in class org.drasyl.peer.connection.pipeline.LoopbackMessageSinkHandler
 
LoopbackMessageSinkHandler - Class in org.drasyl.peer.connection.pipeline
This handler delivers outgoing messages addressed to the local node.
LoopbackMessageSinkHandler(AtomicBoolean, int, Identity, PeersManager, Set<Endpoint>) - Constructor for class org.drasyl.peer.connection.pipeline.LoopbackMessageSinkHandler
 

M

makeKeyPair(byte[], byte[]) - Static method in class org.drasyl.crypto.Crypto
Generates an asymmetric curve key pair from the given compressed private and public key.
marshallingInboundAllowAllPrimitives(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
marshallingInboundAllowArrayOfDefinedTypes(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
marshallingInboundAllowedPackages(List<String>) - Method in class org.drasyl.DrasylConfig.Builder
 
marshallingInboundAllowedTypes(List<String>) - Method in class org.drasyl.DrasylConfig.Builder
 
marshallingOutboundAllowAllPrimitives(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
marshallingOutboundAllowArrayOfDefinedTypes(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
marshallingOutboundAllowedPackages(List<String>) - Method in class org.drasyl.DrasylConfig.Builder
 
marshallingOutboundAllowedTypes(List<String>) - Method in class org.drasyl.DrasylConfig.Builder
 
marshalStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
Adds ChannelHandler for marshalling to the ChannelPipeline.
maskSecret(Object) - Static method in class org.drasyl.util.SecretUtil
This method replaces each character in the return of secret's Object.toString()-call with a asterisk.
matchedEventTriggered(HandlerContext, E, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.SimpleInboundHandler
Is called for each event of type SimpleInboundHandler.
matchedEventTriggered(HandlerContext, Event, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.codec.ApplicationMessage2ObjectHolderHandler
 
matchedEventTriggered(HandlerContext, Event, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.codec.Codec
 
matchedRead(HandlerContext, A, E, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.codec.Codec
 
matchedRead(HandlerContext, A, I, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.SimpleInboundHandler
Is called for each message of type SimpleInboundHandler.
matchedRead(HandlerContext, CompressedPublicKey, ApplicationMessage, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.codec.ApplicationMessage2ObjectHolderHandler
 
matchedWrite(HandlerContext, A, D, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.codec.Codec
 
matchedWrite(HandlerContext, A, O, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.SimpleDuplexHandler
Is called for each message of type SimpleDuplexHandler.
matchedWrite(HandlerContext, A, O, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.SimpleOutboundHandler
Is called for each message of type SimpleOutboundHandler.
matchedWrite(HandlerContext, CompressedPublicKey, Message, CompletableFuture<Void>) - Method in class org.drasyl.peer.connection.pipeline.DirectConnectionMessageSinkHandler
 
matchedWrite(HandlerContext, CompressedPublicKey, Message, CompletableFuture<Void>) - Method in class org.drasyl.peer.connection.pipeline.LoopbackMessageSinkHandler
 
matchedWrite(HandlerContext, CompressedPublicKey, Message, CompletableFuture<Void>) - Method in class org.drasyl.peer.connection.pipeline.SuperPeerMessageSinkHandler
 
matchedWrite(HandlerContext, CompressedPublicKey, ObjectHolder, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.codec.ObjectHolder2ApplicationMessageHandler
 
MAX_PORT_NUMBER - Static variable in class org.drasyl.util.NetworkUtil
The maximum server port number.
maxRetries - Variable in class org.drasyl.peer.connection.handler.PingPongHandler
 
merge(Set<E>, E...) - Static method in class org.drasyl.util.SetUtil
Returns a set containing all elements from a and the element b.
merge(Set<E>, Set<E>) - Static method in class org.drasyl.util.SetUtil
Returns a set containing all elements from set a and set b.
Message - Interface in org.drasyl.peer.connection.message
Describes messages that are sent by the Server or a client.
MESSAGE_DECODER - Static variable in class org.drasyl.peer.connection.handler.MessageDecoder
 
MESSAGE_ENCODER - Static variable in class org.drasyl.peer.connection.handler.MessageEncoder
 
messageComposedMessageTransferTimeout(Duration) - Method in class org.drasyl.DrasylConfig.Builder
 
MessageDecoder - Class in org.drasyl.peer.connection.handler
Decodes a String into a Message object.
MessageDecoderException - Exception in org.drasyl.peer.connection.handler
A MessageDecoderException is thrown by the MessageDecoder when errors occur.
MessageDecoderException(String, Throwable) - Constructor for exception org.drasyl.peer.connection.handler.MessageDecoderException
 
MessageEncoder - Class in org.drasyl.peer.connection.handler
Encodes a Message into a String object.
MessageEncoderException - Exception in org.drasyl.peer.connection.handler
A MessageEncoderException is thrown by the MessageEncoder when errors occur.
MessageEncoderException(String, Throwable) - Constructor for exception org.drasyl.peer.connection.handler.MessageEncoderException
 
MessageEvent - Class in org.drasyl.event
This event signals that the node has received a message addressed to it.
MessageEvent(CompressedPublicKey, Object) - Constructor for class org.drasyl.event.MessageEvent
Creates a new MessageEvent
messageHopLimit(short) - Method in class org.drasyl.DrasylConfig.Builder
 
MessageId - Class in org.drasyl.peer.connection.message
A Message is uniquely identified by its 24 lower-case hex digit identifier.
messageMaxContentLength(int) - Method in class org.drasyl.DrasylConfig.Builder
 
MIN_PORT_NUMBER - Static variable in class org.drasyl.util.NetworkUtil
The minimum server port number.
Monitoring - Class in org.drasyl.monitoring
Monitors various states or events in the drasyl Node.
Monitoring(DrasylConfig, PeersManager, CompressedPublicKey, Pipeline) - Constructor for class org.drasyl.monitoring.Monitoring
 
monitoringEnabled(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
monitoringInfluxDatabase(String) - Method in class org.drasyl.DrasylConfig.Builder
 
monitoringInfluxPassword(String) - Method in class org.drasyl.DrasylConfig.Builder
 
monitoringInfluxReportingFrequency(Duration) - Method in class org.drasyl.DrasylConfig.Builder
 
monitoringInfluxUri(URI) - Method in class org.drasyl.DrasylConfig.Builder
 
monitoringInfluxUser(String) - Method in class org.drasyl.DrasylConfig.Builder
 
MURMUR3_128 - Static variable in class org.drasyl.crypto.Hashing
 
murmur3x64Hex(byte[]) - Static method in class org.drasyl.crypto.Hashing
Generates a hexadecimal representation of the MurMur3x64 hash of the input.
murmur3x64Hex(String) - Static method in class org.drasyl.crypto.Hashing
Generates a hexadecimal representation of the MurMur3x64 hash of the input.

N

name() - Method in interface org.drasyl.pipeline.HandlerContext
Returns the name of the Handler.
networkId(int) - Method in class org.drasyl.DrasylConfig.Builder
 
NetworkUtil - Class in org.drasyl.util
Utility class for network-related operations.
newBuilder() - Static method in class org.drasyl.DrasylConfig
Creates a new builder to build a custom DrasylConfig.
newBuilder(DrasylConfig) - Static method in class org.drasyl.DrasylConfig
 
Node - Class in org.drasyl.event
Used by Event to describe an event related to the local Node (e.g.
NodeDownEvent - Class in org.drasyl.event
This event signals that the node is shut down.
NodeDownEvent(Node) - Constructor for class org.drasyl.event.NodeDownEvent
 
NodeEvent - Interface in org.drasyl.event
Events that refer to a Node.
NodeNormalTerminationEvent - Class in org.drasyl.event
This events signals that the node has terminated normally.
NodeNormalTerminationEvent(Node) - Constructor for class org.drasyl.event.NodeNormalTerminationEvent
 
NodeOfflineEvent - Class in org.drasyl.event
This event signals that the node is currently not connected to a super peer.
NodeOfflineEvent(Node) - Constructor for class org.drasyl.event.NodeOfflineEvent
 
NodeOnlineEvent - Class in org.drasyl.event
This event signals that the node has successfully registered with the super peer.
NodeOnlineEvent(Node) - Constructor for class org.drasyl.event.NodeOnlineEvent
 
NodeUnrecoverableErrorEvent - Class in org.drasyl.event
This events signals that the node encountered an unrecoverable error.
NodeUnrecoverableErrorEvent(Node, Throwable) - Constructor for class org.drasyl.event.NodeUnrecoverableErrorEvent
 
NodeUpEvent - Class in org.drasyl.event
This event signals that the node has been started.
NodeUpEvent(Node) - Constructor for class org.drasyl.event.NodeUpEvent
 
nthElement(Set<E>, int) - Static method in class org.drasyl.util.SetUtil
Returns the n-th element from set set.

O

OBJECT_HOLDER2APP_MSG - Static variable in class org.drasyl.pipeline.codec.ObjectHolder2ApplicationMessageHandler
 
ObjectHolder - Class in org.drasyl.pipeline.codec
Simple class that holds a serialized object as byte array and the corresponding class of the deserialized object.
ObjectHolder2ApplicationMessageHandler - Class in org.drasyl.pipeline.codec
Handler that convert a given ObjectHolder to an ApplicationMessage.
ObjectHolder2ApplicationMessageHandler(int) - Constructor for class org.drasyl.pipeline.codec.ObjectHolder2ApplicationMessageHandler
 
ObservableUtil - Class in org.drasyl.util
Utility class for operations on Observables.
of() - Static method in class org.drasyl.peer.PeerInformation
 
of(int) - Static method in class org.drasyl.identity.ProofOfWork
 
of(int, String, String) - Static method in class org.drasyl.identity.Identity
 
of(A, B) - Static method in class org.drasyl.util.Pair
Obtains a tuple of two elements inferring the generic types.
of(A, B, C) - Static method in class org.drasyl.util.Triple
Obtains a tuple of three elements inferring the generic types.
of(Class<?>, byte[]) - Static method in class org.drasyl.pipeline.codec.ObjectHolder
 
of(String) - Static method in class org.drasyl.identity.CompressedPrivateKey
Converts a String into a CompressedPrivateKey.
of(String) - Static method in class org.drasyl.identity.CompressedPublicKey
Converts a String into a CompressedPublicKey.
of(String) - Static method in class org.drasyl.peer.connection.message.MessageId
 
of(String) - Static method in class org.drasyl.peer.Endpoint
Converts a String to a Endpoint.
of(String, byte[]) - Static method in class org.drasyl.pipeline.codec.ObjectHolder
 
of(String, String) - Static method in class org.drasyl.identity.CompressedKeyPair
 
of(String, CompressedPublicKey) - Static method in class org.drasyl.peer.Endpoint
Converts an String and CompressedPublicKey into Endpoint.
of(InetAddress) - Static method in class org.drasyl.pipeline.address.InetAddressWrapper
 
of(URI) - Static method in class org.drasyl.peer.Endpoint
Converts an URI into Endpoint.
of(URI, CompressedPublicKey) - Static method in class org.drasyl.peer.Endpoint
Converts an URI and CompressedPublicKey into Endpoint.
of(KeyPair) - Static method in class org.drasyl.identity.CompressedKeyPair
 
of(PrivateKey) - Static method in class org.drasyl.identity.CompressedPrivateKey
Converts a PrivateKey into a CompressedPrivateKey.
of(PublicKey) - Static method in class org.drasyl.identity.CompressedPublicKey
Converts a PublicKey into a CompressedPublicKey.
of(PublicKey, PrivateKey) - Static method in class org.drasyl.identity.CompressedKeyPair
 
of(List<String>, List<String>, boolean, boolean) - Static method in class org.drasyl.pipeline.codec.TypeValidator
 
of(Set<Endpoint>) - Static method in class org.drasyl.peer.PeerInformation
 
of(CompressedPublicKey) - Static method in class org.drasyl.event.Peer
 
of(CompressedPublicKey, CompressedPrivateKey) - Static method in class org.drasyl.identity.CompressedKeyPair
 
of(Identity) - Static method in class org.drasyl.event.Node
 
of(Identity, Set<Endpoint>) - Static method in class org.drasyl.event.Node
 
of(ProofOfWork, String, String) - Static method in class org.drasyl.identity.Identity
 
of(ProofOfWork, CompressedKeyPair) - Static method in class org.drasyl.identity.Identity
 
of(ProofOfWork, CompressedPublicKey, CompressedPrivateKey) - Static method in class org.drasyl.identity.Identity
 
offerSession(ChannelHandlerContext, JoinMessage) - Method in class org.drasyl.peer.connection.server.ServerConnectionHandler
 
offerSession(ChannelHandlerContext, R) - Method in class org.drasyl.peer.connection.handler.ThreeWayHandshakeServerHandler
 
ofInboundValidator(DrasylConfig) - Static method in class org.drasyl.pipeline.codec.TypeValidator
 
ofOutboundValidator(DrasylConfig) - Static method in class org.drasyl.pipeline.codec.TypeValidator
 
onAfterShutdown(PluginEnvironment) - Method in interface org.drasyl.plugins.DrasylPlugin
This method gets called after the drasyl node was shut down.
onAfterStart(PluginEnvironment) - Method in interface org.drasyl.plugins.DrasylPlugin
This method gets called after the drasyl node was started.
onBeforeShutdown(PluginEnvironment) - Method in interface org.drasyl.plugins.DrasylPlugin
This method get called before the drasyl node is shut down.
onBeforeStart(PluginEnvironment) - Method in interface org.drasyl.plugins.DrasylPlugin
This method gets called before the drasyl node is started.
onEvent(Event) - Method in class org.drasyl.DrasylNode
Sends event to the application and tells it information about the local node, other peers, connections or incoming messages.
open() - Method in interface org.drasyl.DrasylNodeComponent
Starts the component.
open() - Method in class org.drasyl.monitoring.Monitoring
 
open() - Method in class org.drasyl.peer.connection.direct.DirectConnectionsManager
 
open() - Method in class org.drasyl.peer.connection.intravm.IntraVmDiscovery
 
open() - Method in class org.drasyl.peer.connection.localhost.LocalHostDiscovery
 
open() - Method in class org.drasyl.peer.connection.server.Server
Starts the server.
org.drasyl - package org.drasyl
Core API that includes the DrasylNode and DrasylConfig.
org.drasyl.crypto - package org.drasyl.crypto
Classes for crypto-related operations.
org.drasyl.event - package org.drasyl.event
Contains events that inform the application about various states of the drasyl node, incoming communication, or connection type changes.
org.drasyl.identity - package org.drasyl.identity
Contains classes to manage the Identity of the drasyl node.
org.drasyl.monitoring - package org.drasyl.monitoring
Monitors various states or events in the drasyl node.
org.drasyl.peer - package org.drasyl.peer
Package contains classes that are used for communicating with other peers.
org.drasyl.peer.connection - package org.drasyl.peer.connection
Provides classes to manage connections to other peers.
org.drasyl.peer.connection.client - package org.drasyl.peer.connection.client
Connects to super peer and other peers.
org.drasyl.peer.connection.direct - package org.drasyl.peer.connection.direct
Establishes direct connections to other peers.
org.drasyl.peer.connection.handler - package org.drasyl.peer.connection.handler
netty handlers for peer connections.
org.drasyl.peer.connection.handler.stream - package org.drasyl.peer.connection.handler.stream
Writes very large application messages asynchronously.
org.drasyl.peer.connection.intravm - package org.drasyl.peer.connection.intravm
Automatic discovery of other running drasyl nodes in the same JVM.
org.drasyl.peer.connection.localhost - package org.drasyl.peer.connection.localhost
Uses the file system to discover other drasyl nodes running on the local computer.
org.drasyl.peer.connection.message - package org.drasyl.peer.connection.message
Contains all message types that drasyl uses to configure the overlay network and transfer application messages.
org.drasyl.peer.connection.pipeline - package org.drasyl.peer.connection.pipeline
 
org.drasyl.peer.connection.server - package org.drasyl.peer.connection.server
Provides a server to which children and other peers can connect.
org.drasyl.peer.connection.server.handler - package org.drasyl.peer.connection.server.handler
netty handlers dedicated for the server.
org.drasyl.pipeline - package org.drasyl.pipeline
Link between application and drasyl overlay network.
org.drasyl.pipeline.address - package org.drasyl.pipeline.address
 
org.drasyl.pipeline.codec - package org.drasyl.pipeline.codec
Package contains classes that are used for encoding/decoding objects.
org.drasyl.plugins - package org.drasyl.plugins
Flexible extensions of drasyl via plugins that can be loaded into the pipeline together with user-defined settings.
org.drasyl.util - package org.drasyl.util
Utility classes used across multiple packages.
outboundMessages(Class<T>) - Method in class org.drasyl.pipeline.EmbeddedPipeline
 
outboundValidator - Variable in class org.drasyl.pipeline.DefaultPipeline
 
outboundValidator() - Method in interface org.drasyl.pipeline.HandlerContext
Returns the outbound type validator of this pipeline.
overrideFragment(URI, String) - Static method in class org.drasyl.util.UriUtil
This method sets the fragment in uri to fragment and returns the resulting URI.
overridePort(URI, int) - Static method in class org.drasyl.util.UriUtil
This method sets the port in uri to port and returns the resulting URI.

P

Pair<A,​B> - Class in org.drasyl.util
A tuple of two elements.
pairWithPreviousObservable(Observable<T>) - Static method in class org.drasyl.util.ObservableUtil
Creates an Observable to pair up the current and previous items.
parseCompressedPrivateKey(byte[]) - Static method in class org.drasyl.crypto.Crypto
Generates an asymmetric curve private key from the given compressed private key.
parseCompressedPublicKey(byte[]) - Static method in class org.drasyl.crypto.Crypto
Generates an asymmetric curve public key from the given compressed public key.
parseFile(File) - Static method in class org.drasyl.DrasylConfig
 
parseHexBinary(String) - Static method in class org.drasyl.crypto.HexUtil
Converts the string argument into an array of bytes.
Path - Interface in org.drasyl.peer
Represents a path for sending messages to a specific Peer.
PathUtil - Class in org.drasyl.util
Utility class for operations on Pathes.
payload - Variable in class org.drasyl.peer.connection.message.ApplicationMessage
 
payloadAsByteBuf() - Method in class org.drasyl.peer.connection.message.ApplicationMessage
 
Peer - Class in org.drasyl.event
Used by Event to describe an event related to a Peer (e.g.
PeerChannelGroup - Class in org.drasyl.peer.connection
Special type of ChannelGroup, which has a lookup complexity of O(1) instead of O(n) for lookups by CompressedPublicKey.
PeerChannelGroup(int, Identity) - Constructor for class org.drasyl.peer.connection.PeerChannelGroup
 
PeerChannelGroup(int, Identity, EventExecutor) - Constructor for class org.drasyl.peer.connection.PeerChannelGroup
 
PeerDirectEvent - Class in org.drasyl.event
This event signals that the node has established a direct connection to a peer.
PeerDirectEvent(Peer) - Constructor for class org.drasyl.event.PeerDirectEvent
 
PeerEvent - Interface in org.drasyl.event
Events that refer to a Peer.
PeerInformation - Class in org.drasyl.peer
Contains information on a specific peer (e.g.
PeerInformation(Set<Endpoint>) - Constructor for class org.drasyl.peer.PeerInformation
 
PeerRelayEvent - Class in org.drasyl.event
This event signals that the node has established a connection via a super peer to a peer.
PeerRelayEvent(Peer) - Constructor for class org.drasyl.event.PeerRelayEvent
 
PeersManager - Class in org.drasyl.peer
This class contains information about other peers.
PeersManager(Consumer<Event>, Identity) - Constructor for class org.drasyl.peer.PeersManager
 
PING_PONG_HANDLER - Static variable in class org.drasyl.peer.connection.handler.PingPongHandler
 
PingMessage - Class in org.drasyl.peer.connection.message
A message representing a PING request.
PingMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey) - Constructor for class org.drasyl.peer.connection.message.PingMessage
 
PingPongHandler - Class in org.drasyl.peer.connection.handler
This handler acts as a health check for a connection.
PingPongHandler(int, Identity, short) - Constructor for class org.drasyl.peer.connection.handler.PingPongHandler
PingPongHandler with retries retries, until channel is closed.
pipeline() - Method in class org.drasyl.DrasylNode
Returns the Pipeline to allow users to add own handlers.
pipeline() - Method in interface org.drasyl.pipeline.HandlerContext
Returns the corresponding Pipeline.
Pipeline - Interface in org.drasyl.pipeline
A list of Handlers which handles or intercepts inbound events and outbound operations of a DrasylNode.
PipelineException - Exception in org.drasyl.pipeline
RuntimeException thrown by the Pipeline.
PipelineException(String) - Constructor for exception org.drasyl.pipeline.PipelineException
 
PipelineException(Throwable) - Constructor for exception org.drasyl.pipeline.PipelineException
 
PluginEnvironment - Class in org.drasyl.plugins
Models environment information of a DrasylPlugin that are required by the plugin.
PluginEnvironment(DrasylConfig, Identity, Pipeline) - Constructor for class org.drasyl.plugins.PluginEnvironment
 
PluginManager - Class in org.drasyl.plugins
The PluginManager notifies all enabled plugins about specific node events (like startup or shutdown).
PluginManager(DrasylConfig, Identity, Pipeline) - Constructor for class org.drasyl.plugins.PluginManager
 
plugins(Set<DrasylPlugin>) - Method in class org.drasyl.DrasylConfig.Builder
 
pojoMarshalStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
Adds ChannelHandler for POJO marshalling handling to the ChannelPipeline.
PongMessage - Class in org.drasyl.peer.connection.message
A message representing a PONG response.
PongMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, MessageId) - Constructor for class org.drasyl.peer.connection.message.PongMessage
 
POOL - Static variable in class org.drasyl.peer.PeerInformation
 
PortMapping(PortMapper, InetSocketAddress, PortMappingUtil.Protocol) - Constructor for class org.drasyl.util.PortMappingUtil.PortMapping
Attempts to create a port mapping for address at router mapper.
PortMappingUtil - Class in org.drasyl.util
Class for the creation of port mappings to make local services externally/publicly accessible.
PortMappingUtil.PortMapping - Class in org.drasyl.util
Represents a port mapping.
PortMappingUtil.Protocol - Enum in org.drasyl.util
 
POW_DIFFICULTY - Static variable in class org.drasyl.identity.IdentityManager
 
processInbound(Event) - Method in class org.drasyl.pipeline.DefaultPipeline
 
processInbound(Event) - Method in interface org.drasyl.pipeline.Pipeline
Processes an inbound event by the pipeline.
processInbound(Message) - Method in class org.drasyl.pipeline.DefaultPipeline
 
processInbound(Message) - Method in interface org.drasyl.pipeline.Pipeline
Processes an inbound message by the pipeline.
processInbound(Address, Object) - Method in class org.drasyl.pipeline.DefaultPipeline
 
processInbound(Address, Object) - Method in interface org.drasyl.pipeline.Pipeline
Processes an inbound message by the pipeline.
processOutbound(Address, Object) - Method in class org.drasyl.pipeline.DefaultPipeline
 
processOutbound(Address, Object) - Method in interface org.drasyl.pipeline.Pipeline
Processes an outbound message by the pipeline.
ProofOfWork - Class in org.drasyl.identity
This class models the proof of work for a given public key.

Q

QuitMessage - Class in org.drasyl.peer.connection.message
A message representing a termination of a connection.
QuitMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, QuitMessage.CloseReason) - Constructor for class org.drasyl.peer.connection.message.QuitMessage
 
QuitMessage.CloseReason - Enum in org.drasyl.peer.connection.message
Specifies the reason for closing the connection.

R

randomMessageId() - Static method in class org.drasyl.peer.connection.message.MessageId
Static factory to retrieve a randomly generated MessageId.
randomNumber(int) - Static method in class org.drasyl.crypto.Crypto
Generates a random number with the static SecureRandom of this class.
randomString(int) - Static method in class org.drasyl.crypto.Crypto
Generates a secure random HEX String with the given entropy of bytes.
read(ChannelHandlerContext) - Method in class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
 
read(HandlerContext, Address, Object, CompletableFuture<Void>) - Method in interface org.drasyl.pipeline.Handler
Gets called if a Object was received.
read(HandlerContext, Address, Object, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.HandlerAdapter
 
read(HandlerContext, Address, Object, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.SimpleInboundHandler
 
REASON_NEW_SESSION - org.drasyl.peer.connection.message.QuitMessage.CloseReason
 
REASON_SHUTTING_DOWN - org.drasyl.peer.connection.message.QuitMessage.CloseReason
 
RelayableMessage - Interface in org.drasyl.peer.connection.message
 
RelayableMessageGuard - Class in org.drasyl.peer.connection.handler
This handler ensures that Messages do not infinitely circulate in the network.
RelayableMessageGuard(short) - Constructor for class org.drasyl.peer.connection.handler.RelayableMessageGuard
 
remove(Object) - Method in class org.drasyl.peer.connection.PeerChannelGroup
 
remove(String) - Method in class org.drasyl.pipeline.DefaultPipeline
 
remove(String) - Method in interface org.drasyl.pipeline.Pipeline
Removes the Handler with the specified name from this pipeline.
removeChildrenAndPath(CompressedPublicKey, Path) - Method in class org.drasyl.peer.PeersManager
 
removeClass(Class<?>) - Method in class org.drasyl.pipeline.codec.TypeValidator
Removes a class from the list.
removeFragment(URI) - Static method in class org.drasyl.util.UriUtil
This method removes the fragment in uri and returns the resulting URI.
removePackage(String) - Method in class org.drasyl.pipeline.codec.TypeValidator
Removes a package from the list.
removePath(CompressedPublicKey, Path) - Method in class org.drasyl.peer.PeersManager
 
replace(String, String, Handler) - Method in class org.drasyl.pipeline.DefaultPipeline
 
replace(String, String, Handler) - Method in interface org.drasyl.pipeline.Pipeline
Replaces the Handler of the specified name with a new handler in this pipeline.
RequestMessage - Interface in org.drasyl.peer.connection.message
Messages of this type represent a request.
RequestPeerInformationCache - Class in org.drasyl.peer.connection.direct
This class caches all peers for which information has been requested.
RequestPeerInformationCache(int, Duration) - Constructor for class org.drasyl.peer.connection.direct.RequestPeerInformationCache
Creates a new cache which automatically removes any entry after the duration specified in expireTime.
requestSession(ChannelHandlerContext) - Method in class org.drasyl.peer.connection.handler.ThreeWayHandshakeClientHandler
 
ResponseMessage<R extends RequestMessage> - Interface in org.drasyl.peer.connection.message
Messages of this type represent a response to a previously received RequestMessage.
retries - Variable in class org.drasyl.peer.connection.handler.PingPongHandler
 

S

sameNetwork(byte[], byte[], short) - Static method in class org.drasyl.util.NetworkUtil
Checks if two given addresses are in the same network.
sameNetwork(InetAddress, InetAddress, short) - Static method in class org.drasyl.util.NetworkUtil
Checks if two given addresses are in the same network.
sanitizeLogArg(Object) - Static method in class org.drasyl.util.LoggingUtil
Cleans obj from line breaks and returns them as \n or \r.
scheduler - Variable in class org.drasyl.pipeline.DefaultPipeline
 
scheduler() - Method in interface org.drasyl.pipeline.HandlerContext
Implementation Note: This method should always return a scheduler, that differs from the normal pipeline scheduler.
second() - Method in class org.drasyl.util.Pair
 
second() - Method in class org.drasyl.util.Triple
 
SecretUtil - Class in org.drasyl.util
Utility class for security-related operations.
send(String, Object) - Method in class org.drasyl.DrasylNode
Sends the content of payload to the identity recipient.
send(CompressedPublicKey, Object) - Method in class org.drasyl.DrasylNode
Sends the content of payload to the identity recipient.
send(Message) - Method in interface org.drasyl.peer.Path
Sends message via the defined path.
Server - Class in org.drasyl.peer.connection.server
The server binds to a defined port and thus allows the node to be discovered and contacted by other peers.
Server(Identity, Pipeline, PeersManager, DrasylConfig, PeerChannelGroup, EventLoopGroup, EventLoopGroup, AtomicBoolean, BooleanSupplier, Set<Endpoint>) - Constructor for class org.drasyl.peer.connection.server.Server
Server for accepting connections from child peers and non-child peers.
Server(Identity, Pipeline, PeersManager, DrasylConfig, PeerChannelGroup, EventLoopGroup, EventLoopGroup, Set<Endpoint>, BooleanSupplier) - Constructor for class org.drasyl.peer.connection.server.Server
 
SERVER_CONNECTION_HANDLER - Static variable in class org.drasyl.peer.connection.server.ServerConnectionHandler
 
serverBindHost(InetAddress) - Method in class org.drasyl.DrasylConfig.Builder
 
serverBindPort(int) - Method in class org.drasyl.DrasylConfig.Builder
 
serverChannelInitializer(Class<? extends ChannelInitializer<SocketChannel>>) - Method in class org.drasyl.DrasylConfig.Builder
 
ServerChannelInitializer - Class in org.drasyl.peer.connection.server
Creates a newly configured ChannelPipeline for every incoming connection to a node server.
ServerChannelInitializer(int, Identity, int, Duration, short) - Constructor for class org.drasyl.peer.connection.server.ServerChannelInitializer
 
ServerConnectionHandler - Class in org.drasyl.peer.connection.server
Acts as a guard for in- and outbound connections.
ServerConnectionHandler(ServerEnvironment) - Constructor for class org.drasyl.peer.connection.server.ServerConnectionHandler
 
serverEnabled(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
serverEndpoints(Set<Endpoint>) - Method in class org.drasyl.DrasylConfig.Builder
 
ServerEnvironment - Class in org.drasyl.peer.connection.server
This class encapsulates all information needed by a ServerChannelInitializer.
ServerEnvironment(DrasylConfig, Identity, PeersManager, Pipeline, Set<Endpoint>, PeerChannelGroup, BooleanSupplier) - Constructor for class org.drasyl.peer.connection.server.ServerEnvironment
 
ServerException - Exception in org.drasyl.peer.connection.server
A ServerException is thrown by the Server when errors occur.
ServerException(String) - Constructor for exception org.drasyl.peer.connection.server.ServerException
 
ServerException(Throwable) - Constructor for exception org.drasyl.peer.connection.server.ServerException
 
serverExposeEnabled(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
serverHandshakeTimeout(Duration) - Method in class org.drasyl.DrasylConfig.Builder
 
ServerHttpHandler - Class in org.drasyl.peer.connection.server.handler
This handler returns an HTML error page if the HTTP request does not perform a Websocket upgrade.
ServerHttpHandler(int, CompressedPublicKey, PeersManager) - Constructor for class org.drasyl.peer.connection.server.handler.ServerHttpHandler
 
serverIdleRetries(short) - Method in class org.drasyl.DrasylConfig.Builder
 
serverIdleTimeout(Duration) - Method in class org.drasyl.DrasylConfig.Builder
 
ServerNewConnectionsGuard - Class in org.drasyl.peer.connection.server.handler
This handler acts as a channel creation guard.
ServerNewConnectionsGuard(int, Identity, BooleanSupplier) - Constructor for class org.drasyl.peer.connection.server.handler.ServerNewConnectionsGuard
 
serverSSLEnabled(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
serverSSLProtocols(Set<String>) - Method in class org.drasyl.DrasylConfig.Builder
 
setPeerInformation(CompressedPublicKey, PeerInformation) - Method in class org.drasyl.peer.PeersManager
 
setPeerInformationAndAddPath(CompressedPublicKey, PeerInformation, Path) - Method in class org.drasyl.peer.PeersManager
 
setPeerInformationAndAddPathAndChildren(CompressedPublicKey, PeerInformation, Path) - Method in class org.drasyl.peer.PeersManager
 
setPeerInformationAndAddPathAndSetSuperPeer(CompressedPublicKey, PeerInformation, Path) - Method in class org.drasyl.peer.PeersManager
 
setSignature(Signature) - Method in interface org.drasyl.crypto.Signable
Signs the object with the specified signature.
setSignature(Signature) - Method in class org.drasyl.peer.connection.message.SignedMessage
 
SetUtil - Class in org.drasyl.util
Utility class for operations on Sets.
SHA256 - Static variable in class org.drasyl.crypto.Hashing
 
sha256Hex(byte[]) - Static method in class org.drasyl.crypto.Hashing
Generates a SHA-256 hash of the given input.
sha256Hex(String) - Static method in class org.drasyl.crypto.Hashing
Generates a SHA-256 hash of the given input.
shouldRetry() - Method in class org.drasyl.peer.connection.client.DirectClient
Should only make a new connection attempt if there is still a demand for it.
shutdown() - Method in class org.drasyl.DrasylNode
Shut the drasyl node down.
shutdown() - Static method in class org.drasyl.util.DrasylScheduler
Shutdown the two schedulers.
SHUTDOWN_TIMEOUT - Static variable in class org.drasyl.util.DrasylScheduler
 
sign(PrivateKey, Signable) - Static method in class org.drasyl.crypto.Crypto
Signs the given signable with the PrivateKey.
Signable - Interface in org.drasyl.crypto
Instances of classes that implement this interface are considered signable.
Signature - Class in org.drasyl.crypto
A signature class for drasyl messages, that wraps a byte array signature.
Signature(byte[]) - Constructor for class org.drasyl.crypto.Signature
Generates a new signature from the given byte array.
SIGNATURE_HANDLER - Static variable in class org.drasyl.peer.connection.handler.SignatureHandler
 
SignatureHandler - Class in org.drasyl.peer.connection.handler
Acts as a guard for in- and outbound messages.
SignatureHandler(int, Identity) - Constructor for class org.drasyl.peer.connection.handler.SignatureHandler
 
SignedMessage - Class in org.drasyl.peer.connection.message
Represents a container with a signature for the SignedMessage.payload.
SignedMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, Message) - Constructor for class org.drasyl.peer.connection.message.SignedMessage
 
signMessage(PrivateKey, byte[]) - Static method in class org.drasyl.crypto.Crypto
Creates signature from the given message with the PrivateKey.
SimpleChannelDuplexHandler<I,​O> - Class in org.drasyl.peer.connection.handler
ChannelDuplexHandler which allows to explicit only handle a specific type of messages.
SimpleChannelDuplexHandler() - Constructor for class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
see SimpleChannelDuplexHandler(boolean, boolean, boolean) with true as boolean parameters.
SimpleChannelDuplexHandler(boolean, boolean, boolean) - Constructor for class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
Create a new instance which will try to detect the types to match out of the types parameter of the class.
SimpleChannelDuplexHandler(Class<? extends I>, Class<? extends O>) - Constructor for class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
SimpleChannelDuplexHandler(Class<? extends I>, Class<? extends O>, boolean, boolean, boolean) - Constructor for class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
Create a new instance
SimpleChannelOutboundHandler<O> - Class in org.drasyl.peer.connection.handler
ChannelOutboundHandlerAdapter which allows to explicit only handle a specific type of messages.
SimpleChannelOutboundHandler() - Constructor for class org.drasyl.peer.connection.handler.SimpleChannelOutboundHandler
see SimpleChannelOutboundHandler(boolean, boolean) with false as boolean parameters.
SimpleChannelOutboundHandler(boolean, boolean) - Constructor for class org.drasyl.peer.connection.handler.SimpleChannelOutboundHandler
Create a new instance which will try to detect the types to match out of the type parameter of the class.
SimpleChannelOutboundHandler(Class<? extends O>) - Constructor for class org.drasyl.peer.connection.handler.SimpleChannelOutboundHandler
see SimpleChannelOutboundHandler(Class, boolean, boolean) with false as boolean parameters.
SimpleChannelOutboundHandler(Class<? extends O>, boolean, boolean) - Constructor for class org.drasyl.peer.connection.handler.SimpleChannelOutboundHandler
Create a new instance.
SimpleDuplexHandler<I,​E,​O,​A extends Address> - Class in org.drasyl.pipeline
HandlerAdapter which allows to explicit only handle a specific type of messages and events.
SimpleDuplexHandler() - Constructor for class org.drasyl.pipeline.SimpleDuplexHandler
 
SimpleDuplexHandler(Class<? extends I>, Class<? extends E>, Class<? extends O>, Class<? extends A>) - Constructor for class org.drasyl.pipeline.SimpleDuplexHandler
 
SimpleInboundHandler<I,​E,​A extends Address> - Class in org.drasyl.pipeline
HandlerAdapter which allows to explicit only handle a specific type of messages and events.
SimpleInboundHandler() - Constructor for class org.drasyl.pipeline.SimpleInboundHandler
Create a new instance which will try to detect the types to match out of the type parameter of the class.
SimpleInboundHandler(Class<? extends I>, Class<? extends E>, Class<? extends A>) - Constructor for class org.drasyl.pipeline.SimpleInboundHandler
Create a new instance
SimpleOutboundHandler<O,​A extends Address> - Class in org.drasyl.pipeline
HandlerAdapter which allows to explicit only handle a specific type of messages.
SimpleOutboundHandler() - Constructor for class org.drasyl.pipeline.SimpleOutboundHandler
Create a new instance which will try to detect the types to match out of the type parameter of the class.
SimpleOutboundHandler(Class<? extends O>, Class<? extends A>) - Constructor for class org.drasyl.pipeline.SimpleOutboundHandler
Create a new instance
SRND - Static variable in class org.drasyl.crypto.Crypto
 
sslStage(SocketChannel) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
At this stage the SslHandler is added to the pipeline.
start() - Method in class org.drasyl.DrasylNode
Start the drasyl node.
SuccessMessage - Class in org.drasyl.peer.connection.message
Represents a confirmation of a previous sent RequestMessage.
SuccessMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, MessageId) - Constructor for class org.drasyl.peer.connection.message.SuccessMessage
Creates an immutable code object.
SUPER_PEER_SINK_HANDLER - Static variable in class org.drasyl.peer.connection.pipeline.SuperPeerMessageSinkHandler
 
superPeerChannelInitializer(Class<? extends ChannelInitializer<SocketChannel>>) - Method in class org.drasyl.DrasylConfig.Builder
 
SuperPeerClient - Class in org.drasyl.peer.connection.client
This class represents the link between DrasylNode and the super peer.
SuperPeerClient(DrasylConfig, EventLoopGroup, BooleanSupplier, DrasylFunction<Endpoint, Bootstrap, ClientException>) - Constructor for class org.drasyl.peer.connection.client.SuperPeerClient
 
SuperPeerClient(DrasylConfig, Identity, PeersManager, Pipeline, PeerChannelGroup, EventLoopGroup, BooleanSupplier) - Constructor for class org.drasyl.peer.connection.client.SuperPeerClient
 
superPeerEnabled(boolean) - Method in class org.drasyl.DrasylConfig.Builder
 
superPeerEndpoints(Set<Endpoint>) - Method in class org.drasyl.DrasylConfig.Builder
 
superPeerHandshakeTimeout(Duration) - Method in class org.drasyl.DrasylConfig.Builder
 
superPeerIdleRetries(short) - Method in class org.drasyl.DrasylConfig.Builder
 
superPeerIdleTimeout(Duration) - Method in class org.drasyl.DrasylConfig.Builder
 
SuperPeerMessageSinkHandler - Class in org.drasyl.peer.connection.pipeline
 
SuperPeerMessageSinkHandler(PeerChannelGroup, PeersManager) - Constructor for class org.drasyl.peer.connection.pipeline.SuperPeerMessageSinkHandler
 
superPeerRetryDelays(List<Duration>) - Method in class org.drasyl.DrasylConfig.Builder
 

T

tail - Variable in class org.drasyl.pipeline.DefaultPipeline
 
target - Variable in class org.drasyl.peer.connection.client.ClientChannelInitializer
 
TCP - org.drasyl.util.PortMappingUtil.Protocol
 
third() - Method in class org.drasyl.util.Triple
 
ThreeWayHandshakeClientHandler<R extends RequestMessage,​O extends ResponseMessage<?>> - Class in org.drasyl.peer.connection.handler
This handler performs the client-side part of a three-way handshake to create a session.
ThreeWayHandshakeClientHandler(int, Identity, Duration, Pipeline, CompletableFuture<Void>, ScheduledFuture<?>, R) - Constructor for class org.drasyl.peer.connection.handler.ThreeWayHandshakeClientHandler
 
ThreeWayHandshakeClientHandler(int, Identity, Duration, Pipeline, R) - Constructor for class org.drasyl.peer.connection.handler.ThreeWayHandshakeClientHandler
 
ThreeWayHandshakeServerHandler<R extends RequestMessage,​O extends ResponseMessage<?>> - Class in org.drasyl.peer.connection.handler
This handler performs the server-side part of a three-way handshake to create a session.
ThreeWayHandshakeServerHandler(Duration, Pipeline, int, Identity) - Constructor for class org.drasyl.peer.connection.handler.ThreeWayHandshakeServerHandler
 
ThreeWayHandshakeServerHandler(Duration, Pipeline, CompletableFuture<Void>, ScheduledFuture<?>, R, O, int, Identity) - Constructor for class org.drasyl.peer.connection.handler.ThreeWayHandshakeServerHandler
 
toFuture(Future<T>) - Static method in class org.drasyl.util.FutureUtil
Translates the Netty Future to a CompletableFuture.
toString() - Method in class org.drasyl.crypto.Signature
 
toString() - Method in class org.drasyl.DrasylConfig
 
toString() - Method in class org.drasyl.event.MessageEvent
 
toString() - Method in class org.drasyl.event.Node
 
toString() - Method in class org.drasyl.event.NodeDownEvent
 
toString() - Method in class org.drasyl.event.NodeNormalTerminationEvent
 
toString() - Method in class org.drasyl.event.NodeOfflineEvent
 
toString() - Method in class org.drasyl.event.NodeOnlineEvent
 
toString() - Method in class org.drasyl.event.NodeUnrecoverableErrorEvent
 
toString() - Method in class org.drasyl.event.NodeUpEvent
 
toString() - Method in class org.drasyl.event.Peer
 
toString() - Method in class org.drasyl.event.PeerDirectEvent
 
toString() - Method in class org.drasyl.event.PeerRelayEvent
 
toString() - Method in class org.drasyl.identity.CompressedKeyPair
 
toString() - Method in class org.drasyl.identity.Identity
 
toString() - Method in class org.drasyl.identity.ProofOfWork
 
toString() - Method in class org.drasyl.peer.connection.message.ApplicationMessage
 
toString() - Method in class org.drasyl.peer.connection.message.ErrorMessage
 
toString() - Method in class org.drasyl.peer.connection.message.IdentityMessage
 
toString() - Method in class org.drasyl.peer.connection.message.JoinMessage
 
toString() - Method in class org.drasyl.peer.connection.message.MessageId
 
toString() - Method in class org.drasyl.peer.connection.message.PingMessage
 
toString() - Method in class org.drasyl.peer.connection.message.PongMessage
 
toString() - Method in class org.drasyl.peer.connection.message.QuitMessage
 
toString() - Method in class org.drasyl.peer.connection.message.SignedMessage
 
toString() - Method in class org.drasyl.peer.connection.message.SuccessMessage
 
toString() - Method in class org.drasyl.peer.connection.message.WelcomeMessage
 
toString() - Method in class org.drasyl.peer.connection.message.WhoisMessage
 
toString() - Method in class org.drasyl.peer.Endpoint
 
toString() - Method in class org.drasyl.peer.PeerInformation
 
toString() - Method in class org.drasyl.peer.PeersManager
 
toString() - Method in class org.drasyl.pipeline.address.InetAddressWrapper
 
toString() - Method in class org.drasyl.pipeline.codec.ObjectHolder
 
toString() - Method in class org.drasyl.util.Pair
 
toString() - Method in class org.drasyl.util.PortMappingUtil.PortMapping
 
toString() - Method in class org.drasyl.util.Triple
 
toString(byte[]) - Static method in class org.drasyl.crypto.HexUtil
Converts a byte[] into a string representation
toUncompressedKey() - Method in class org.drasyl.identity.CompressedPrivateKey
Returns the PrivateKey object of this compressed private key.
toUncompressedKey() - Method in class org.drasyl.identity.CompressedPublicKey
Returns the PublicKey object of this compressed public key.
toUncompressedKeyPair() - Method in class org.drasyl.identity.CompressedKeyPair
 
Triple<A,​B,​C> - Class in org.drasyl.util
A tuple of three elements.
TypeValidator - Class in org.drasyl.pipeline.codec
The TypeValidator allows to define which classes and packages may be handled by a codec.

U

UDP - org.drasyl.util.PortMappingUtil.Protocol
 
unsetSuperPeer() - Method in class org.drasyl.peer.PeersManager
 
unsetSuperPeerAndRemovePath(Path) - Method in class org.drasyl.peer.PeersManager
 
unwrapArrayComponentType(Class<?>) - Static method in class org.drasyl.pipeline.codec.TypeValidator
Returns the Class representing the component type of an array.
UriUtil - Class in org.drasyl.util
Utility class for operations on URIs.
UrlUtil - Class in org.drasyl.util
Utility class for operations on URLs.
userEventTriggered(ChannelHandlerContext, Object) - Method in class org.drasyl.peer.connection.handler.PingPongHandler
 

V

validate(Class<?>) - Method in class org.drasyl.pipeline.codec.TypeValidator
Validates a given Class if it is allowed or not.
validateSessionOffer(O) - Method in class org.drasyl.peer.connection.handler.ThreeWayHandshakeClientHandler
This method validates the session offered by the server and must return an ErrorMessage.Error in case of error.
validateSessionOffer(WelcomeMessage) - Method in class org.drasyl.peer.connection.client.ClientConnectionHandler
 
validateSessionRequest(JoinMessage) - Method in class org.drasyl.peer.connection.server.ServerConnectionHandler
 
validateSessionRequest(R) - Method in class org.drasyl.peer.connection.handler.ThreeWayHandshakeServerHandler
 
valueOf(String) - Static method in enum org.drasyl.peer.connection.message.ErrorMessage.Error
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.drasyl.peer.connection.message.QuitMessage.CloseReason
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.drasyl.util.PortMappingUtil.Protocol
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.drasyl.peer.connection.message.ErrorMessage.Error
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.drasyl.peer.connection.message.QuitMessage.CloseReason
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.drasyl.util.PortMappingUtil.Protocol
Returns an array containing the constants of this enum type, in the order they are declared.
verifySignature(byte[], byte[], byte[]) - Static method in class org.drasyl.crypto.Crypto
Verifies the signature of the given message with the signature and compressed public key.
verifySignature(PublicKey, byte[], byte[]) - Static method in class org.drasyl.crypto.Crypto
Verify the signature of the given message with the signature and public key.
verifySignature(PublicKey, Signable) - Static method in class org.drasyl.crypto.Crypto
Verify the signature of the given Signable object with the public key.

W

webSocketPort(URI) - Static method in class org.drasyl.util.WebSocketUtil
 
WebSocketUtil - Class in org.drasyl.util
Utility class for operations on websocket URIs (e.g.
WelcomeMessage - Class in org.drasyl.peer.connection.message
A message representing the welcome message of the node server, including fallback information.
WelcomeMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, PeerInformation, MessageId) - Constructor for class org.drasyl.peer.connection.message.WelcomeMessage
Creates new welcome message.
WhoisMessage - Class in org.drasyl.peer.connection.message
This message is used to request information (like public key and endpoints) for a specific identity.
WhoisMessage(int, CompressedPublicKey, ProofOfWork, CompressedPublicKey, PeerInformation) - Constructor for class org.drasyl.peer.connection.message.WhoisMessage
 
write(ChannelHandlerContext, Object, ChannelPromise) - Method in class org.drasyl.peer.connection.handler.SimpleChannelDuplexHandler
 
write(ChannelHandlerContext, Object, ChannelPromise) - Method in class org.drasyl.peer.connection.handler.SimpleChannelOutboundHandler
 
write(Address, Object, CompletableFuture<Void>) - Method in interface org.drasyl.pipeline.HandlerContext
Request to write a message via this HandlerContext through the Pipeline.
write(HandlerContext, Address, Object, CompletableFuture<Void>) - Method in interface org.drasyl.pipeline.Handler
Gets called if a Object was send from the application to a recipient.
write(HandlerContext, Address, Object, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.HandlerAdapter
 
write(HandlerContext, Address, Object, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.SimpleDuplexHandler
 
write(HandlerContext, Address, Object, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.SimpleOutboundHandler
 
writeAndFlush(CompressedPublicKey, Object) - Method in class org.drasyl.peer.connection.PeerChannelGroup
 
writeFieldsTo(OutputStream) - Method in interface org.drasyl.crypto.Signable
Write any content into the passed output-stream to have them included in the signing process.
writeFieldsTo(OutputStream) - Method in class org.drasyl.peer.connection.message.SignedMessage
 
WS_PORT - Static variable in class org.drasyl.util.WebSocketUtil
 
WSS_PORT - Static variable in class org.drasyl.util.WebSocketUtil
 
A B C D E F G H I J L M N O P Q R S T U V W 
All Classes All Packages