Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abort(Executor) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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
- addAdapter(String, DrasylFunction<URI, DatabaseAdapter, DatabaseException>) - Static method in class org.drasyl.plugin.groups.manager.database.DatabaseAdapterManager
- 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. - addGroup(GroupUri) - Method in class org.drasyl.plugin.groups.client.GroupsClientConfig.Builder
- addGroup(Group) - Method in interface org.drasyl.plugin.groups.manager.database.DatabaseAdapter
-
Adds a group to the database if it doesn't exist already.
- addGroup(Group) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- addGroupMember(Membership) - Method in interface org.drasyl.plugin.groups.manager.database.DatabaseAdapter
-
Adds or updates the given
groupMember#member
to the givengroupMember#group
. - addGroupMember(Membership) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- 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
- 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
- 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.
- apiBindHost(InetAddress) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig.Builder
- apiBindPort(int) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig.Builder
- apiEnabled(boolean) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig.Builder
- 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 anObjectHolder
. - 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. - beginRequest() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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 theChannelPipeline
. - build() - Method in class org.drasyl.DrasylConfig.Builder
-
Creates a
DrasylConfig
from the builder. - build() - Method in class org.drasyl.plugin.groups.client.GroupsClientConfig.Builder
- build() - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig.Builder
- builder() - Static method in class org.drasyl.plugin.groups.client.GroupsClientConfig
-
Returns a specific builder for a
GroupsClientConfig
. - builder() - Static method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig
-
Returns a specific builder for a
GroupsManagerConfig
. - builder(GroupsClientConfig) - Static method in class org.drasyl.plugin.groups.client.GroupsClientConfig
-
Returns a specific builder for a
GroupsClientConfig
. - builder(GroupsManagerConfig) - Static method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig
-
Returns a specific builder for a
GroupsManagerConfig
. - Builder(GroupsClientConfig) - Constructor for class org.drasyl.plugin.groups.client.GroupsClientConfig.Builder
- Builder(GroupsManagerConfig) - Constructor for class org.drasyl.plugin.groups.manager.GroupsManagerConfig.Builder
- bytesToHex(byte[]) - Static method in class org.drasyl.crypto.HexUtil
-
Converts an array of bytes into a string.
C
- channel - Variable in class org.drasyl.peer.connection.client.SuperPeerClient
- channelActive(ChannelHandlerContext) - Method in class org.drasyl.peer.connection.client.ClientConnectionHandler
- 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.client.ClientConnectionHandler
- 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.client.ClientConnectionHandler
- 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.
- clearWarnings() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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.client.SuperPeerClient
- 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 interface org.drasyl.plugin.groups.manager.database.DatabaseAdapter
-
Closes the connection to the database.
- close() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- close() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
-
If you really want to close, you have to call
SingleConnectionWrapper.terminate()
. - close() - Method in class org.drasyl.util.PortMappingUtil.PortMapping
-
Closes this port mapping.
- close(ChannelHandlerContext, ChannelPromise) - Method in class org.drasyl.peer.connection.client.ClientConnectionHandler
- 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
- commit() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- compareTo(Endpoint) - Method in class org.drasyl.peer.Endpoint
-
Compares this
Endpoint
to another object, which must be aEndpoint
. - completeOnAllOf(CompletableFuture<Void>, Collection<CompletableFuture<?>>) - Static method in class org.drasyl.util.FutureUtil
-
Completes
future
if all of the givenfutures
are completed. - completeOnAllOf(CompletableFuture<Void>, CompletableFuture<?>...) - Static method in class org.drasyl.util.FutureUtil
-
Completes
future
if all of the givenfutures
are completed. - completeOnAnyOfExceptionally(CompletableFuture<?>, Collection<CompletableFuture<?>>) - Static method in class org.drasyl.util.FutureUtil
-
Completes
future
exceptionally if one of the givenfutures
are completed exceptionally. - completeOnAnyOfExceptionally(CompletableFuture<?>, CompletableFuture<?>...) - Static method in class org.drasyl.util.FutureUtil
-
Completes
future
exceptionally if one of the givenfutures
are completed exceptionally. - compressedKey - Variable in class org.drasyl.identity.CompressedPrivateKey
- 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 aCompressedPrivateKey
). - 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 class org.drasyl.pipeline.DefaultHandlerContext
- 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. - correspondingId - Variable in class org.drasyl.peer.connection.message.WelcomeMessage
- createArrayOf(String, Object[]) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- createBlob() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- createClob() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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. - createNClob() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- createSQLXML() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- createStatement() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- createStatement(int, int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- createStatement(int, int, int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- createStruct(String, Object[]) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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 theChannelPipeline
, after the default initialization has taken place. - customStage(ChannelPipeline) - Method in class org.drasyl.peer.connection.server.DefaultServerChannelInitializer
D
- DatabaseAdapter - Interface in org.drasyl.plugin.groups.manager.database
-
This class is responsible for storing the groups plugin options.
- DatabaseAdapterManager - Class in org.drasyl.plugin.groups.manager.database
- DatabaseException - Exception in org.drasyl.plugin.groups.manager.database
-
This exception signals an error occurred during execution in
DatabaseAdapter
implementations. - DatabaseException(String) - Constructor for exception org.drasyl.plugin.groups.manager.database.DatabaseException
- DatabaseException(String, Throwable) - Constructor for exception org.drasyl.plugin.groups.manager.database.DatabaseException
- databaseUri(URI) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig.Builder
- 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 theServer
. - DefaultSessionInitializer(int, Identity, int, Duration, short) - Constructor for class org.drasyl.peer.connection.DefaultSessionInitializer
- defaultUserAgentGenerator - Static variable in class org.drasyl.peer.connection.message.PingMessage
- deleteGroup(String) - Method in interface org.drasyl.plugin.groups.manager.database.DatabaseAdapter
-
Deleted the group with the specified
name
. - deleteGroup(String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- deleteIdentityFile(Path) - Static method in class org.drasyl.identity.IdentityManager
-
Deletes the identity file specified in the configuration.
- deleteStaleMemberships() - Method in interface org.drasyl.plugin.groups.manager.database.DatabaseAdapter
-
Deletes all stale memberships from all groups and returns the deleted members.
- deleteStaleMemberships() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- 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 notb
. - 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 setb
. - 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
- doNewConnectionsSupplier - Variable in class org.drasyl.peer.connection.client.SuperPeerClient
- 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 aException
. - 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 aDrasylException
. - 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 - 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 aDrasylException
. - DurationUtil - Class in org.drasyl.plugin.groups.util
E
- EmbeddedPipeline - Class in org.drasyl.pipeline
- 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
- endRequest() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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.NodeNormalTerminationEvent
- equals(Object) - Method in class org.drasyl.event.PeerRelayEvent
- 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.CompressedPrivateKey
- 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.plugin.groups.client.event.GroupJoinedEvent
- equals(Object) - Method in class org.drasyl.plugin.groups.client.event.GroupJoinFailedEvent
- equals(Object) - Method in class org.drasyl.plugin.groups.client.event.GroupLeftEvent
- equals(Object) - Method in class org.drasyl.plugin.groups.client.event.GroupMemberLeftEvent
- equals(Object) - Method in class org.drasyl.plugin.groups.client.Group
- equals(Object) - Method in class org.drasyl.plugin.groups.client.GroupsClientConfig
- equals(Object) - Method in class org.drasyl.plugin.groups.client.GroupUri
- equals(Object) - Method in class org.drasyl.plugin.groups.client.message.GroupJoinFailedMessage
- equals(Object) - Method in class org.drasyl.plugin.groups.client.message.GroupJoinMessage
- equals(Object) - Method in class org.drasyl.plugin.groups.client.message.GroupLeaveMessage
- equals(Object) - Method in class org.drasyl.plugin.groups.client.message.GroupWelcomeMessage
- equals(Object) - Method in class org.drasyl.plugin.groups.client.message.MemberLeftMessage
- equals(Object) - Method in class org.drasyl.plugin.groups.manager.data.Group
- equals(Object) - Method in class org.drasyl.plugin.groups.manager.data.Member
- equals(Object) - Method in class org.drasyl.plugin.groups.manager.data.Membership
- equals(Object) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig
- 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 - Enum constant in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- ERROR_CHUNKED_MESSAGE_PAYLOAD_TOO_LARGE - Enum constant in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- ERROR_CHUNKED_MESSAGE_TIMEOUT - Enum constant in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- ERROR_GROUP_NOT_FOUND - Enum constant in enum org.drasyl.plugin.groups.client.message.GroupJoinFailedMessage.Error
- ERROR_IDENTITY_COLLISION - Enum constant in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- ERROR_INITIAL_CHUNK_MISSING - Enum constant in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- ERROR_INVALID_SIGNATURE - Enum constant in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- ERROR_NOT_A_SUPER_PEER - Enum constant in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- ERROR_OTHER_NETWORK - Enum constant in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- ERROR_PEER_UNAVAILABLE - Enum constant in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- ERROR_PROOF_OF_WORK_INVALID - Enum constant in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- ERROR_PROOF_TO_WEAK - Enum constant in enum org.drasyl.plugin.groups.client.message.GroupJoinFailedMessage.Error
- ERROR_UNEXPECTED_MESSAGE - Enum constant in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- ERROR_UNKNOWN - Enum constant in enum org.drasyl.plugin.groups.client.message.GroupJoinFailedMessage.Error
- ERROR_WRONG_PUBLIC_KEY - Enum constant in enum 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.
- events() - Method in class org.drasyl.ObservableDrasylNode
- 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.client.ClientConnectionHandler
- 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
Exception
s onExceptionHandler.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
Exception
s onExceptionHandler.exceptionCaught(io.netty.channel.ChannelHandlerContext, java.lang.Throwable)
to the next pipeline, ifrethrowExceptions
istrue
. - 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 theChannelPipeline
. - 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.SuperPeerClient
-
This method is called if a connection was not possible and no further connection attempts will be made.
- 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 theChannelPipeline
. - find(CompressedPublicKey) - Method in class org.drasyl.peer.connection.PeerChannelGroup
-
Searches the channel for given public key.
- fireEventTriggered(Event, CompletableFuture<Void>) - Method in class org.drasyl.pipeline.DefaultHandlerContext
- fireEventTriggered(Event, CompletableFuture<Void>) - Method in interface org.drasyl.pipeline.HandlerContext
-
Received an event.
- fireExceptionCaught(Exception) - Method in class org.drasyl.pipeline.DefaultHandlerContext
- 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 class org.drasyl.pipeline.DefaultHandlerContext
- 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
- from(String) - Static method in enum org.drasyl.plugin.groups.client.message.GroupJoinFailedMessage.Error
- 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 theChannelPipeline
. - 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.
- getApiBindHost() - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig
- getApiBindPort() - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig
- getAutoCommit() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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.
- getCatalog() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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
- getClientInfo() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- getClientInfo(String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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. - getCompressedKey() - Method in class org.drasyl.identity.CompressedPrivateKey
- 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 class org.drasyl.peer.connection.message.WelcomeMessage
- getCorrespondingId() - Method in interface org.drasyl.peer.connection.message.ResponseMessage
- getCredentials() - Method in class org.drasyl.plugin.groups.client.GroupUri
- getCredentials() - Method in class org.drasyl.plugin.groups.client.message.GroupJoinMessage
- getCredentials() - Method in class org.drasyl.plugin.groups.manager.data.Group
- getDatabaseUri() - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig
- getDescription() - Method in enum org.drasyl.peer.connection.message.ErrorMessage.Error
- getDescription() - Method in enum org.drasyl.peer.connection.message.QuitMessage.CloseReason
- getDescription() - Method in enum org.drasyl.plugin.groups.client.message.GroupJoinFailedMessage.Error
- 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
- getGroup() - Method in interface org.drasyl.plugin.groups.client.event.GroupEvent
- getGroup() - Method in class org.drasyl.plugin.groups.client.event.GroupJoinedEvent
- getGroup() - Method in class org.drasyl.plugin.groups.client.event.GroupJoinFailedEvent
- getGroup() - Method in class org.drasyl.plugin.groups.client.event.GroupLeftEvent
- getGroup() - Method in class org.drasyl.plugin.groups.client.event.GroupMemberLeftEvent
- getGroup() - Method in class org.drasyl.plugin.groups.client.GroupUri
- getGroup() - Method in class org.drasyl.plugin.groups.client.message.MemberLeftMessage
- getGroup() - Method in class org.drasyl.plugin.groups.manager.data.Membership
- getGroup(String) - Method in interface org.drasyl.plugin.groups.manager.database.DatabaseAdapter
-
Returns the group with the specified
name
ornull
if it could not be found. - getGroup(String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- getGroupMembers(String) - Method in interface org.drasyl.plugin.groups.manager.database.DatabaseAdapter
-
Returns the members of the group
name
as set. - getGroupMembers(String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- getGroups() - Method in class org.drasyl.plugin.groups.client.GroupsClientConfig
- getGroups() - Method in interface org.drasyl.plugin.groups.manager.database.DatabaseAdapter
-
Lists all groups.
- getGroups() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- getGroups() - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig
- 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
, ornull
if this header does not exist. - getHeaders() - Method in class org.drasyl.peer.connection.message.ApplicationMessage
- getHoldability() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- getHopCount() - Method in class org.drasyl.peer.connection.message.PingMessage
- 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 class org.drasyl.peer.connection.message.PingMessage
- 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
- getLeaveRun() - Method in class org.drasyl.plugin.groups.client.event.GroupJoinedEvent
-
If this runnable is invoked the
GroupJoinedEvent.group
will be left. - 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.handler.ThreeWayHandshakeServerHandler
- getLogger() - Method in class org.drasyl.peer.connection.server.ServerConnectionHandler
- getManager() - Method in class org.drasyl.plugin.groups.client.GroupUri
- 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
- getMember() - Method in class org.drasyl.plugin.groups.client.event.GroupMemberLeftEvent
- getMember() - Method in class org.drasyl.plugin.groups.client.message.MemberLeftMessage
- getMember() - Method in class org.drasyl.plugin.groups.manager.data.Membership
- getMembers() - Method in class org.drasyl.plugin.groups.client.event.GroupJoinedEvent
- getMembers() - Method in class org.drasyl.plugin.groups.client.message.GroupWelcomeMessage
- getMessageComposedMessageTransferTimeout() - Method in class org.drasyl.DrasylConfig
- getMessageHopLimit() - Method in class org.drasyl.DrasylConfig
- getMessageMaxContentLength() - Method in class org.drasyl.DrasylConfig
- getMetaData() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- getMinDifficulty() - Method in class org.drasyl.plugin.groups.manager.data.Group
- 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
- getName() - Method in class org.drasyl.plugin.groups.client.Group
- getName() - Method in class org.drasyl.plugin.groups.client.GroupUri
- getName() - Method in class org.drasyl.plugin.groups.manager.data.Group
- getNetworkId() - Method in class org.drasyl.DrasylConfig
- getNetworkId() - Method in class org.drasyl.peer.connection.message.PingMessage
- 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.
- getNetworkTimeout() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- getNode() - Method in class org.drasyl.event.NodeNormalTerminationEvent
- 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 class org.drasyl.event.PeerRelayEvent
- 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 class org.drasyl.peer.connection.message.PingMessage
- getProofOfWork() - Method in interface org.drasyl.peer.connection.message.Message
-
Returns this message sender's proof of work.
- getProofOfWork() - Method in class org.drasyl.plugin.groups.client.message.GroupJoinMessage
- 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 thisEndpoint
. - getPublicKey() - Method in class org.drasyl.plugin.groups.manager.data.Member
- 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 isnull
. - getReason() - Method in class org.drasyl.peer.connection.message.QuitMessage
- getReason() - Method in class org.drasyl.plugin.groups.client.event.GroupJoinFailedEvent
- getReason() - Method in class org.drasyl.plugin.groups.client.message.GroupJoinFailedMessage
- getRecipient() - Method in class org.drasyl.peer.connection.message.PingMessage
- getRecipient() - Method in interface org.drasyl.peer.connection.message.Message
-
Returns this message's recipient.
- getReJoin() - Method in class org.drasyl.plugin.groups.client.event.GroupJoinFailedEvent
-
If this runnable is invoked the plugin tries to re-join the
GroupJoinFailedEvent.group
. - getReJoin() - Method in class org.drasyl.plugin.groups.client.event.GroupLeftEvent
-
If this runnable is invoked the plugin tries to re-join the
GroupLeftEvent.group
. - getSchema() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- getSender() - Method in class org.drasyl.event.MessageEvent
-
Returns the message's sender.
- getSender() - Method in class org.drasyl.peer.connection.message.PingMessage
- 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
- getStaleAt() - Method in class org.drasyl.plugin.groups.manager.data.Membership
- 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
- getTimeout() - Method in class org.drasyl.plugin.groups.client.GroupUri
- getTimeout() - Method in class org.drasyl.plugin.groups.manager.data.Group
- getTimeoutSeconds() - Method in class org.drasyl.plugin.groups.manager.data.Group
- getTransactionIsolation() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- getTypeMap() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- getUri(CompressedPublicKey) - Method in class org.drasyl.plugin.groups.manager.data.Group
- getURI() - Method in class org.drasyl.peer.Endpoint
-
Returns the
URI
of thisEndpoint
. - getURI(Config, String) - Static method in class org.drasyl.DrasylConfig
-
Gets the
URI
at the given path. - getUserAgent() - Method in class org.drasyl.peer.connection.message.PingMessage
- 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.
- getWarnings() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- group - Variable in class org.drasyl.plugin.groups.client.event.GroupMemberLeftEvent
- group - Variable in class org.drasyl.plugin.groups.client.message.MemberLeftMessage
- Group - Class in org.drasyl.plugin.groups.client
-
A simple POJO that models a group.
- Group - Class in org.drasyl.plugin.groups.manager.data
-
Class is used to model the state of a group.
- GROUP_DEFAULT_MIN_DIFFICULTY - Static variable in class org.drasyl.plugin.groups.manager.data.Group
- GROUP_DEFAULT_TIMEOUT - Static variable in class org.drasyl.plugin.groups.manager.data.Group
- GROUP_MIN_TIMEOUT - Static variable in class org.drasyl.plugin.groups.manager.data.Group
- GroupEvent - Interface in org.drasyl.plugin.groups.client.event
-
An event that is related to a
Group
. - GroupJoinedEvent - Class in org.drasyl.plugin.groups.client.event
-
An event that signals that this node has successfully joined a group.
- GroupJoinedEvent(Group, Set<CompressedPublicKey>, Runnable) - Constructor for class org.drasyl.plugin.groups.client.event.GroupJoinedEvent
- GroupJoinFailedEvent - Class in org.drasyl.plugin.groups.client.event
-
An event that signals, that a joining a specific group has failed.
- GroupJoinFailedEvent(Group, GroupJoinFailedMessage.Error, Runnable) - Constructor for class org.drasyl.plugin.groups.client.event.GroupJoinFailedEvent
- GroupJoinFailedMessage - Class in org.drasyl.plugin.groups.client.message
-
This message is sent by the groups server to the client when the join to a group was not successful.
- GroupJoinFailedMessage(Group, GroupJoinFailedMessage.Error) - Constructor for class org.drasyl.plugin.groups.client.message.GroupJoinFailedMessage
- GroupJoinFailedMessage.Error - Enum in org.drasyl.plugin.groups.client.message
-
Specifies the reason of the
GroupJoinFailedMessage
. - GroupJoinMessage - Class in org.drasyl.plugin.groups.client.message
-
This message is send by the groups client to the server to join a group.
- GroupJoinMessage(Group, String, ProofOfWork) - Constructor for class org.drasyl.plugin.groups.client.message.GroupJoinMessage
- GroupLeaveMessage - Class in org.drasyl.plugin.groups.client.message
-
This message is send by the groups client to the server to leave a group.
- GroupLeaveMessage(Group) - Constructor for class org.drasyl.plugin.groups.client.message.GroupLeaveMessage
- GroupLeftEvent - Class in org.drasyl.plugin.groups.client.event
-
An event that signals that this node has left a group.
- GroupLeftEvent(Group, Runnable) - Constructor for class org.drasyl.plugin.groups.client.event.GroupLeftEvent
- GroupMemberJoinedEvent - Class in org.drasyl.plugin.groups.client.event
-
An event that signals that a new member joined a group.
- GroupMemberJoinedEvent(CompressedPublicKey, Group) - Constructor for class org.drasyl.plugin.groups.client.event.GroupMemberJoinedEvent
- GroupMemberLeftEvent - Class in org.drasyl.plugin.groups.client.event
-
An event that signals that a member has left a group.
- GroupMemberLeftEvent(CompressedPublicKey, Group) - Constructor for class org.drasyl.plugin.groups.client.event.GroupMemberLeftEvent
- groups(Map<String, Group>) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig.Builder
- groups(Set<GroupUri>) - Method in class org.drasyl.plugin.groups.client.GroupsClientConfig.Builder
- GROUPS_CLIENT_HANDLER - Static variable in class org.drasyl.plugin.groups.client.GroupsClientPlugin
- GROUPS_MANAGER_HANDLER - Static variable in class org.drasyl.plugin.groups.manager.GroupsManagerPlugin
- GroupsClientConfig - Class in org.drasyl.plugin.groups.client
-
This class represents the configuration for the
GroupsClientPlugin
. - GroupsClientConfig(Config) - Constructor for class org.drasyl.plugin.groups.client.GroupsClientConfig
- GroupsClientConfig(GroupsClientConfig.Builder) - Constructor for class org.drasyl.plugin.groups.client.GroupsClientConfig
- GroupsClientConfig.Builder - Class in org.drasyl.plugin.groups.client
-
Implements the builder-pattern for this configuration.
- GroupsClientHandler - Class in org.drasyl.plugin.groups.client
- GroupsClientHandler(Set<GroupUri>) - Constructor for class org.drasyl.plugin.groups.client.GroupsClientHandler
- GroupsClientMessage - Interface in org.drasyl.plugin.groups.client.message
-
This message is send by the groups client to the server.
- GroupsClientPlugin - Class in org.drasyl.plugin.groups.client
-
The Groups Membership Client Plugin allows drasyl nodes to connect to membership managers at startup to join groups.
- GroupsClientPlugin(Config) - Constructor for class org.drasyl.plugin.groups.client.GroupsClientPlugin
-
This constructor is used by
DrasylConfig
to initialize this plugin. - GroupsClientPlugin(GroupsClientConfig) - Constructor for class org.drasyl.plugin.groups.client.GroupsClientPlugin
- GroupsManagerApi - Class in org.drasyl.plugin.groups.manager
-
This class starts a HTTP server with a REST API to manage groups and memberships.
- GroupsManagerApi(GroupsManagerConfig, DatabaseAdapter) - Constructor for class org.drasyl.plugin.groups.manager.GroupsManagerApi
- GroupsManagerConfig - Class in org.drasyl.plugin.groups.manager
-
This class represents the configuration for the
GroupsManagerPlugin
. - GroupsManagerConfig(Config) - Constructor for class org.drasyl.plugin.groups.manager.GroupsManagerConfig
- GroupsManagerConfig.Builder - Class in org.drasyl.plugin.groups.manager
-
Implements the builder-pattern for this configuration.
- GroupsManagerHandler - Class in org.drasyl.plugin.groups.manager
- GroupsManagerHandler(DatabaseAdapter) - Constructor for class org.drasyl.plugin.groups.manager.GroupsManagerHandler
- GroupsManagerPlugin - Class in org.drasyl.plugin.groups.manager
-
Starting point for the groups master plugin.
- GroupsManagerPlugin(Config) - Constructor for class org.drasyl.plugin.groups.manager.GroupsManagerPlugin
- GroupsManagerPlugin(GroupsManagerConfig) - Constructor for class org.drasyl.plugin.groups.manager.GroupsManagerPlugin
- GroupsPluginMessage - Interface in org.drasyl.plugin.groups.client.message
-
Default interface for all messages of the groups plugin.
- GroupsServerMessage - Interface in org.drasyl.plugin.groups.client.message
-
This message is send by the groups server to the client.
- GroupUri - Class in org.drasyl.plugin.groups.client
-
This class models the connection/join setting of a group.
- GroupWelcomeMessage - Class in org.drasyl.plugin.groups.client.message
-
This message is sent by the groups server to the client when the join to a group was successful.
- GroupWelcomeMessage(Group, Set<CompressedPublicKey>) - Constructor for class org.drasyl.plugin.groups.client.message.GroupWelcomeMessage
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.
- handlerAdded(HandlerContext) - Method in class org.drasyl.plugin.groups.client.GroupsClientHandler
- handlerAdded(HandlerContext) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerHandler
- HandlerContext - Interface in org.drasyl.pipeline
- 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.
- handlerRemoved(HandlerContext) - Method in class org.drasyl.plugin.groups.client.GroupsClientHandler
- handlerRemoved(HandlerContext) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerHandler
- handshakeFuture - Variable in class org.drasyl.peer.connection.client.ClientConnectionHandler
- 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.NodeNormalTerminationEvent
- hashCode() - Method in class org.drasyl.event.PeerRelayEvent
- 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.CompressedPrivateKey
- 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.plugin.groups.client.event.GroupJoinedEvent
- hashCode() - Method in class org.drasyl.plugin.groups.client.event.GroupJoinFailedEvent
- hashCode() - Method in class org.drasyl.plugin.groups.client.event.GroupLeftEvent
- hashCode() - Method in class org.drasyl.plugin.groups.client.event.GroupMemberLeftEvent
- hashCode() - Method in class org.drasyl.plugin.groups.client.Group
- hashCode() - Method in class org.drasyl.plugin.groups.client.GroupsClientConfig
- hashCode() - Method in class org.drasyl.plugin.groups.client.GroupUri
- hashCode() - Method in class org.drasyl.plugin.groups.client.message.GroupJoinFailedMessage
- hashCode() - Method in class org.drasyl.plugin.groups.client.message.GroupJoinMessage
- hashCode() - Method in class org.drasyl.plugin.groups.client.message.GroupLeaveMessage
- hashCode() - Method in class org.drasyl.plugin.groups.client.message.GroupWelcomeMessage
- hashCode() - Method in class org.drasyl.plugin.groups.client.message.MemberLeftMessage
- hashCode() - Method in class org.drasyl.plugin.groups.manager.data.Group
- hashCode() - Method in class org.drasyl.plugin.groups.manager.data.Member
- hashCode() - Method in class org.drasyl.plugin.groups.manager.data.Membership
- hashCode() - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig
- 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
- hopCount - Variable in class org.drasyl.peer.connection.message.PingMessage
I
- id - Variable in class org.drasyl.peer.connection.message.PingMessage
- identity - Variable in class org.drasyl.peer.connection.client.ClientConnectionHandler
- identity - Variable in class org.drasyl.pipeline.DefaultPipeline
- identity() - Method in class org.drasyl.DrasylNode
-
Returns the
Identity
of this node. - identity() - Method in class org.drasyl.pipeline.DefaultHandlerContext
- 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 theChannelPipeline
. - 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 class org.drasyl.pipeline.DefaultHandlerContext
- 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 class org.drasyl.peer.connection.message.PingMessage
- incrementHopCount() - Method in interface org.drasyl.peer.connection.message.Message
-
Increases the message's hop count.
- InetAddressWrapper - Class in org.drasyl.pipeline.address
- InetAddressWrapper(InetAddress) - Constructor for class org.drasyl.pipeline.address.InetAddressWrapper
- initAdapter(URI) - Static method in class org.drasyl.plugin.groups.manager.database.DatabaseAdapterManager
- initChannel(SocketChannel) - Method in class org.drasyl.peer.connection.DefaultSessionInitializer
- initiateChannelInitializer(ClientEnvironment, Class<? extends ChannelInitializer<SocketChannel>>) - Static method in class org.drasyl.peer.connection.client.SuperPeerClient
- 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 anint
. - irrevocablyTerminate() - Static method in class org.drasyl.DrasylNode
-
This method stops the shared threads (
EventLoopGroup
s), but only if noneDrasylNode
is using them anymore. - isApiEnabled() - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig
- isChildrenJoin() - Method in class org.drasyl.peer.connection.message.JoinMessage
- isClosed() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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
- isReadOnly() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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 ofsuperClass
. - isValid() - Method in class org.drasyl.identity.Identity
-
Validates the identity by checking whether the proof of work matches the public key.
- isValid(int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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
- isWrapperFor(Class<?>) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
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
- JDBCDatabaseAdapter - Class in org.drasyl.plugin.groups.manager.database.jdbc
-
DatabaseAdapter
implementation that supports SQL databases. - JDBCDatabaseAdapter(URI) - Constructor for class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- 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.
K
- key - Variable in class org.drasyl.identity.CompressedPrivateKey
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
- main(String[]) - Static method in class org.drasyl.ObservableDrasylNode
- 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 theChannelPipeline
. - maskSecret(Object) - Static method in class org.drasyl.util.SecretUtil
-
This method replaces each character in the return of
secret
'sObject.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
- matchedEventTriggered(HandlerContext, Event, CompletableFuture<Void>) - Method in class org.drasyl.plugin.groups.client.GroupsClientHandler
- matchedEventTriggered(HandlerContext, GroupEvent, CompletableFuture<Void>) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerHandler
- 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
- matchedRead(HandlerContext, CompressedPublicKey, GroupsClientMessage, CompletableFuture<Void>) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerHandler
- matchedRead(HandlerContext, CompressedPublicKey, GroupsServerMessage, CompletableFuture<Void>) - Method in class org.drasyl.plugin.groups.client.GroupsClientHandler
- 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(Duration, Duration) - Static method in class org.drasyl.plugin.groups.util.DurationUtil
-
Returns the greater of two
Duration
values. - 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
- member - Variable in class org.drasyl.plugin.groups.client.event.GroupMemberLeftEvent
- member - Variable in class org.drasyl.plugin.groups.client.message.MemberLeftMessage
- Member - Class in org.drasyl.plugin.groups.manager.data
-
Class is used to model the state of a member.
- MemberJoinedMessage - Class in org.drasyl.plugin.groups.client.message
-
This message is sent by the groups server to the client when a new member has joined a group.
- MemberJoinedMessage(CompressedPublicKey, Group) - Constructor for class org.drasyl.plugin.groups.client.message.MemberJoinedMessage
- MemberLeftMessage - Class in org.drasyl.plugin.groups.client.message
-
This message is sent by the groups server to the client when a member has left a group.
- MemberLeftMessage(CompressedPublicKey, Group) - Constructor for class org.drasyl.plugin.groups.client.message.MemberLeftMessage
- Membership - Class in org.drasyl.plugin.groups.manager.data
-
Class is used to model the state of a group member.
- merge(Set<E>, E...) - Static method in class org.drasyl.util.SetUtil
-
Returns a set containing all elements from
a
and the elementb
. - merge(Set<E>, Set<E>) - Static method in class org.drasyl.util.SetUtil
-
Returns a set containing all elements from set
a
and setb
. - 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
- 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
- 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.
- MIN_TIMEOUT - Static variable in class org.drasyl.plugin.groups.client.GroupUri
- 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 class org.drasyl.pipeline.DefaultHandlerContext
- name() - Method in interface org.drasyl.pipeline.HandlerContext
-
Returns the name of the
Handler
. - nativeSQL(String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- networkId - Variable in class org.drasyl.peer.connection.client.ClientConnectionHandler
- networkId - Variable in class org.drasyl.peer.connection.message.PingMessage
- 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 - Variable in class org.drasyl.event.NodeNormalTerminationEvent
- 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
- normalize(Duration) - Static method in class org.drasyl.plugin.groups.util.DurationUtil
-
Normalize the given
duration
to a minimum of 1m. - nthElement(Set<E>, int) - Static method in class org.drasyl.util.SetUtil
-
Returns the
n
-th element from setset
.
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 anApplicationMessage
. - ObjectHolder2ApplicationMessageHandler(int) - Constructor for class org.drasyl.pipeline.codec.ObjectHolder2ApplicationMessageHandler
- ObservableDrasylNode - Class in org.drasyl
-
This particular Implementation of a drasyl Node shows exemplary how incoming Events can be processed using the Observer Pattern.
- ObservableDrasylNode() - Constructor for class org.drasyl.ObservableDrasylNode
- ObservableDrasylNode(DrasylConfig) - Constructor for class org.drasyl.ObservableDrasylNode
- ObservableUtil - Class in org.drasyl.util
-
Utility class for operations on
Observable
s. - 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 aCompressedPrivateKey
. - of(String) - Static method in class org.drasyl.identity.CompressedPublicKey
-
Converts a
String
into aCompressedPublicKey
. - 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 aEndpoint
. - of(String) - Static method in class org.drasyl.plugin.groups.client.Group
- of(String) - Static method in class org.drasyl.plugin.groups.client.GroupUri
-
Generates a
GroupUri
object from the given groups URI. - 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, String) - Static method in class org.drasyl.plugin.groups.manager.data.Group
-
Creates a Group object with default minDifficulty and timeout.
- of(String, String, short, Duration) - Static method in class org.drasyl.plugin.groups.manager.data.Group
-
Creates a Group object with given parameters.
- of(String, CompressedPublicKey) - Static method in class org.drasyl.peer.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
intoEndpoint
. - of(URI) - Static method in class org.drasyl.plugin.groups.client.GroupUri
-
Generates a
GroupUri
object from the given groups URI. - of(URI, CompressedPublicKey) - Static method in class org.drasyl.peer.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 aCompressedPrivateKey
. - of(PublicKey) - Static method in class org.drasyl.identity.CompressedPublicKey
-
Converts a
PublicKey
into aCompressedPublicKey
. - 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) - Static method in class org.drasyl.plugin.groups.manager.data.Member
- of(CompressedPublicKey, String, String, Duration) - Static method in class org.drasyl.plugin.groups.client.GroupUri
- 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
- of(Member, Group, long) - Static method in class org.drasyl.plugin.groups.manager.data.Membership
- 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 class org.drasyl.plugin.groups.client.GroupsClientPlugin
- onAfterStart(PluginEnvironment) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerPlugin
- onAfterStart(PluginEnvironment) - Method in interface org.drasyl.plugins.DrasylPlugin
-
This method gets called after the drasyl node was started.
- onBeforeShutdown(PluginEnvironment) - Method in class org.drasyl.plugin.groups.client.GroupsClientPlugin
- onBeforeShutdown(PluginEnvironment) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerPlugin
- onBeforeShutdown(PluginEnvironment) - Method in interface org.drasyl.plugins.DrasylPlugin
-
This method get called before the drasyl node is shut down.
- onBeforeStart(PluginEnvironment) - Method in class org.drasyl.plugin.groups.manager.GroupsManagerPlugin
- 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. - onEvent(Event) - Method in class org.drasyl.ObservableDrasylNode
- 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.client.SuperPeerClient
- 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
andDrasylConfig
. - 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.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.plugin.groups.client - package org.drasyl.plugin.groups.client
- org.drasyl.plugin.groups.client.event - package org.drasyl.plugin.groups.client.event
- org.drasyl.plugin.groups.client.message - package org.drasyl.plugin.groups.client.message
- org.drasyl.plugin.groups.manager - package org.drasyl.plugin.groups.manager
- org.drasyl.plugin.groups.manager.data - package org.drasyl.plugin.groups.manager.data
- org.drasyl.plugin.groups.manager.database - package org.drasyl.plugin.groups.manager.database
- org.drasyl.plugin.groups.manager.database.jdbc - package org.drasyl.plugin.groups.manager.database.jdbc
- org.drasyl.plugin.groups.util - package org.drasyl.plugin.groups.util
- 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 class org.drasyl.pipeline.DefaultHandlerContext
- 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
tofragment
and returns the resulting URI. - overridePort(URI, int) - Static method in class org.drasyl.util.UriUtil
-
This method sets the port in
uri
toport
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
Path
es. - payload - Variable in class org.drasyl.peer.connection.message.ApplicationMessage
- payloadAsByteBuf() - Method in class org.drasyl.peer.connection.message.ApplicationMessage
- peer - Variable in class org.drasyl.event.PeerRelayEvent
- 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 byCompressedPublicKey
. - 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 - Variable in class org.drasyl.peer.connection.client.ClientConnectionHandler
- pipeline() - Method in class org.drasyl.DrasylNode
-
Returns the
Pipeline
to allow users to add own handlers. - pipeline() - Method in class org.drasyl.pipeline.DefaultHandlerContext
- pipeline() - Method in interface org.drasyl.pipeline.HandlerContext
-
Returns the corresponding
Pipeline
. - Pipeline - Interface in org.drasyl.pipeline
-
A list of
Handler
s which handles or intercepts inbound events and outbound operations of aDrasylNode
. - 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 theChannelPipeline
. - 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 routermapper
. - 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
- prepareCall(String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- prepareCall(String, int, int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- prepareCall(String, int, int, int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- prepareStatement(String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- prepareStatement(String, int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- prepareStatement(String, int[]) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- prepareStatement(String, int, int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- prepareStatement(String, int, int, int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- prepareStatement(String, String[]) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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.
- processMessageAfterHandshake(ChannelHandlerContext, Message) - Method in class org.drasyl.peer.connection.client.ClientConnectionHandler
- 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.
- processUnexpectedMessageDuringHandshake(ChannelHandlerContext, Message) - Method in class org.drasyl.peer.connection.client.ClientConnectionHandler
- proofOfWork - Variable in class org.drasyl.peer.connection.message.PingMessage
- ProofOfWork - Class in org.drasyl.identity
-
This class models the proof of work for a given public key.
Q
- QUERY_TIMEOUT - Static variable in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- 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 - Enum constant in enum org.drasyl.peer.connection.message.QuitMessage.CloseReason
- REASON_SHUTTING_DOWN - Enum constant in enum org.drasyl.peer.connection.message.QuitMessage.CloseReason
- recipient - Variable in class org.drasyl.peer.connection.message.PingMessage
- rejectSession(ChannelHandlerContext, String) - Method in class org.drasyl.peer.connection.client.ClientConnectionHandler
- RelayableMessage - Interface in org.drasyl.peer.connection.message
- RelayableMessageGuard - Class in org.drasyl.peer.connection.handler
-
This handler ensures that
Message
s do not infinitely circulate in the network. - RelayableMessageGuard(short) - Constructor for class org.drasyl.peer.connection.handler.RelayableMessageGuard
- releaseSavepoint(Savepoint) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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. - removeGroupMember(CompressedPublicKey, String) - Method in interface org.drasyl.plugin.groups.manager.database.DatabaseAdapter
-
Removes the
member
from the givengroup
. - removeGroupMember(CompressedPublicKey, String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- 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
- rollback() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- rollback(Savepoint) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
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 class org.drasyl.pipeline.DefaultHandlerContext
- scheduler() - Method in interface org.drasyl.pipeline.HandlerContext
-
Implementation Note: This method should always return a scheduler, that differs from the normal pipeline scheduler.
- SCHEME - Static variable in class org.drasyl.plugin.groups.client.GroupUri
- SCHEME - Static variable in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- 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 identityrecipient
. - send(CompressedPublicKey, Object) - Method in class org.drasyl.DrasylNode
-
Sends the content of
payload
to the identityrecipient
. - send(Message) - Method in interface org.drasyl.peer.Path
-
Sends
message
via the defined path. - sender - Variable in class org.drasyl.peer.connection.message.PingMessage
- 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
- setAutoCommit(boolean) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setCatalog(String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setClientInfo(String, String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setClientInfo(Properties) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setHoldability(int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setNetworkTimeout(Executor, int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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
- setReadOnly(boolean) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setSavepoint() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setSavepoint(String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setSchema(String) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setShardingKey(ShardingKey) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setShardingKey(ShardingKey, ShardingKey) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setShardingKeyIfValid(ShardingKey, int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setShardingKeyIfValid(ShardingKey, ShardingKey, int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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
- setTransactionIsolation(int) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- setTypeMap(Map<String, Class<?>>) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- SetUtil - Class in org.drasyl.util
-
Utility class for operations on
Set
s. - 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.SuperPeerClient
- 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)
withtrue
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
-
see
SimpleChannelDuplexHandler(Class, Class, boolean, boolean, boolean)
withtrue
as boolean values. - 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)
withfalse
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)
withfalse
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
- SingleConnectionWrapper - Class in org.drasyl.plugin.groups.manager.database.jdbc
-
A simple wrapper for the given connection, that does not automatically close in a try-with-resources block.
- SingleConnectionWrapper(Connection) - Constructor for class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- 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.
- startTimeoutGuard(ChannelHandlerContext) - Method in class org.drasyl.peer.connection.client.ClientConnectionHandler
- 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 - Enum constant in enum org.drasyl.util.PortMappingUtil.Protocol
- terminate() - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
-
Closes this connection.
- 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
- timeout - Variable in class org.drasyl.peer.connection.client.ClientConnectionHandler
- timeoutFuture - Variable in class org.drasyl.peer.connection.client.ClientConnectionHandler
- toFuture(Future<T>) - Static method in class org.drasyl.util.FutureUtil
-
Translates the Netty
Future
to aCompletableFuture
. - 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.CompressedPrivateKey
- 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.plugin.groups.client.event.GroupJoinedEvent
- toString() - Method in class org.drasyl.plugin.groups.client.event.GroupJoinFailedEvent
- toString() - Method in class org.drasyl.plugin.groups.client.event.GroupLeftEvent
- toString() - Method in class org.drasyl.plugin.groups.client.event.GroupMemberJoinedEvent
- toString() - Method in class org.drasyl.plugin.groups.client.event.GroupMemberLeftEvent
- toString() - Method in class org.drasyl.plugin.groups.client.Group
- toString() - Method in class org.drasyl.plugin.groups.client.GroupsClientConfig
- toString() - Method in class org.drasyl.plugin.groups.client.GroupUri
- toString() - Method in class org.drasyl.plugin.groups.client.message.GroupJoinFailedMessage
- toString() - Method in class org.drasyl.plugin.groups.client.message.GroupJoinMessage
- toString() - Method in class org.drasyl.plugin.groups.client.message.GroupLeaveMessage
- toString() - Method in class org.drasyl.plugin.groups.client.message.GroupWelcomeMessage
- toString() - Method in class org.drasyl.plugin.groups.client.message.MemberJoinedMessage
- toString() - Method in class org.drasyl.plugin.groups.client.message.MemberLeftMessage
- toString() - Method in class org.drasyl.plugin.groups.manager.data.Group
- toString() - Method in class org.drasyl.plugin.groups.manager.data.Member
- toString() - Method in class org.drasyl.plugin.groups.manager.data.Membership
- toString() - Method in class org.drasyl.plugin.groups.manager.GroupsManagerConfig
- 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
- toUri() - Method in class org.drasyl.plugin.groups.client.GroupUri
- 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 - Enum constant in enum org.drasyl.util.PortMappingUtil.Protocol
- unsetSuperPeer() - Method in class org.drasyl.peer.PeersManager
- unsetSuperPeerAndRemovePath(Path) - Method in class org.drasyl.peer.PeersManager
- unwrap(Class<T>) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.SingleConnectionWrapper
- unwrapArrayComponentType(Class<?>) - Static method in class org.drasyl.pipeline.codec.TypeValidator
-
Returns the Class representing the component type of an array.
- updateGroup(Group) - Method in interface org.drasyl.plugin.groups.manager.database.DatabaseAdapter
-
Updates the specified
group
. - updateGroup(Group) - Method in class org.drasyl.plugin.groups.manager.database.jdbc.JDBCDatabaseAdapter
- UriUtil - Class in org.drasyl.util
-
Utility class for operations on
URI
s. - UrlUtil - Class in org.drasyl.util
-
Utility class for operations on
URL
s. - userAgent - Variable in class org.drasyl.peer.connection.message.PingMessage
- userAgentGenerator - Static variable in class org.drasyl.peer.connection.message.PingMessage
- 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.plugin.groups.client.message.GroupJoinFailedMessage.Error
-
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.plugin.groups.client.message.GroupJoinFailedMessage.Error
-
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
URI
s (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 class org.drasyl.pipeline.DefaultHandlerContext
- write(Address, Object, CompletableFuture<Void>) - Method in interface org.drasyl.pipeline.HandlerContext
-
Request to write a message via this
HandlerContext
through thePipeline
. - 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
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form