Package org.drasyl.node
Class DrasylConfig.Builder
java.lang.Object
org.drasyl.node.DrasylConfig.Builder
- Enclosing class:
- DrasylConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddSerializationsBindingsInbound
(Class<?> clazz, String name) addSerializationsBindingsOutbound
(Class<?> clazz, String name) build()
Shortcut for callingidentityPublicKey(IdentityPublicKey)
,identityProofOfWork(ProofOfWork)
, andidentitySecretKey(IdentitySecretKey)
.abstract DrasylConfig.Builder
identityPath
(Path identityPath) abstract DrasylConfig.Builder
identityProofOfWork
(ProofOfWork identityProofOfWork) abstract DrasylConfig.Builder
identityPublicKey
(IdentityPublicKey identityPublicKey) abstract DrasylConfig.Builder
identitySecretKey
(IdentitySecretKey identitySecretKey) abstract DrasylConfig.Builder
intraVmDiscoveryEnabled
(boolean intraVmDiscoveryEnabled) abstract DrasylConfig.Builder
keyAgreementPublicKey
(KeyAgreementPublicKey keyAgreementPublicKey) abstract DrasylConfig.Builder
keyAgreementSecretKey
(KeyAgreementSecretKey keyAgreementSecretKey) abstract DrasylConfig.Builder
messageBufferSize
(int messageBufferSize) abstract DrasylConfig.Builder
networkId
(int networkId) abstract DrasylConfig.Builder
plugins
(Set<DrasylPlugin> plugins) abstract DrasylConfig.Builder
remoteBindHost
(InetAddress remoteBindHost) abstract DrasylConfig.Builder
remoteBindPort
(int remoteBindPort) abstract DrasylConfig.Builder
remoteEnabled
(boolean remoteEnabled) abstract DrasylConfig.Builder
remoteEndpoints
(Set<PeerEndpoint> remoteEndpoints) abstract DrasylConfig.Builder
remoteExposeEnabled
(boolean remoteExposeEnabled) abstract DrasylConfig.Builder
remoteLocalHostDiscoveryEnabled
(boolean remoteLocalHostDiscoveryEnabled) abstract DrasylConfig.Builder
remoteLocalHostDiscoveryLeaseTime
(Duration remoteLocalHostDiscoveryLeaseTime) abstract DrasylConfig.Builder
remoteLocalHostDiscoveryPath
(Path remoteLocalHostDiscoveryPath) abstract DrasylConfig.Builder
remoteLocalHostDiscoveryWatchEnabled
(boolean remoteLocalHostDiscoveryWatchEnabled) abstract DrasylConfig.Builder
remoteLocalNetworkDiscoveryEnabled
(boolean remoteLocalNetworkDiscoveryEnabled) abstract DrasylConfig.Builder
remoteMessageArmApplicationAgreementExpireAfter
(Duration remoteMessageArmApplicationAgreementExpireAfter) abstract DrasylConfig.Builder
remoteMessageArmApplicationAgreementMaxCount
(int remoteMessageArmApplicationAgreementMaxCount) abstract DrasylConfig.Builder
remoteMessageArmApplicationAgreementRetryInterval
(Duration remoteMessageArmApplicationAgreementRetryInterval) abstract DrasylConfig.Builder
remoteMessageArmApplicationEnabled
(boolean remoteMessageArmApplicationEnabled) abstract DrasylConfig.Builder
remoteMessageArmProtocolEnabled
(boolean remoteMessageArmProtocolEnabled) abstract DrasylConfig.Builder
remoteMessageArmProtocolSessionExpireAfter
(Duration remoteMessageArmProtocolSessionExpireAfter) abstract DrasylConfig.Builder
remoteMessageArmProtocolSessionMaxCount
(int remoteMessageArmProtocolSessionMaxCount) abstract DrasylConfig.Builder
remoteMessageComposedMessageTransferTimeout
(Duration messageComposedMessageTransferTimeout) abstract DrasylConfig.Builder
remoteMessageHopLimit
(byte remoteMessageHopLimit) abstract DrasylConfig.Builder
remoteMessageMaxContentLength
(int remoteMessageMaxContentLength) abstract DrasylConfig.Builder
remoteMessageMtu
(int remoteMessageMtu) abstract DrasylConfig.Builder
remotePingCommunicationTimeout
(Duration remotePingCommunicationTimeout) abstract DrasylConfig.Builder
remotePingInterval
(Duration remotePingInterval) abstract DrasylConfig.Builder
remotePingMaxPeers
(int remotePingMaxPeers) abstract DrasylConfig.Builder
remotePingTimeout
(Duration remotePingTimeout) abstract DrasylConfig.Builder
remoteStaticRoutes
(Map<IdentityPublicKey, InetSocketAddress> remoteStaticRoutes) abstract DrasylConfig.Builder
remoteSuperPeerEnabled
(boolean remoteSuperPeerEnabled) abstract DrasylConfig.Builder
remoteSuperPeerEndpoints
(Set<PeerEndpoint> remoteSuperPeerEndpoints) abstract DrasylConfig.Builder
remoteTcpFallbackClientAddress
(InetSocketAddress remoteTcpFallbackClientAddress) abstract DrasylConfig.Builder
remoteTcpFallbackClientTimeout
(Duration remoteTcpFallbackClientTimeout) abstract DrasylConfig.Builder
remoteTcpFallbackEnabled
(boolean remoteTcpFallbackEnabled) abstract DrasylConfig.Builder
remoteTcpFallbackServerBindHost
(InetAddress remoteTcpFallbackServerBindHost) abstract DrasylConfig.Builder
remoteTcpFallbackServerBindPort
(int remoteTcpFallbackServerBindPort) abstract DrasylConfig.Builder
remoteUniteMinInterval
(Duration remoteUniteMinInterval) abstract DrasylConfig.Builder
serializationsBindingsInbound
(Map<Class<?>, String> serializationsBindingsInbound) abstract DrasylConfig.Builder
serializationSerializers
(Map<String, Serializer> serializationSerializers)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
networkId
-
identityPublicKey
-
identityProofOfWork
-
identitySecretKey
-
identity
Shortcut for callingidentityPublicKey(IdentityPublicKey)
,identityProofOfWork(ProofOfWork)
, andidentitySecretKey(IdentitySecretKey)
. -
keyAgreementPublicKey
public abstract DrasylConfig.Builder keyAgreementPublicKey(KeyAgreementPublicKey keyAgreementPublicKey) -
keyAgreementSecretKey
public abstract DrasylConfig.Builder keyAgreementSecretKey(KeyAgreementSecretKey keyAgreementSecretKey) -
identityPath
-
messageBufferSize
-
remoteBindHost
-
remoteEnabled
-
remoteBindPort
-
remotePingInterval
-
remotePingTimeout
-
remotePingCommunicationTimeout
public abstract DrasylConfig.Builder remotePingCommunicationTimeout(Duration remotePingCommunicationTimeout) -
remoteUniteMinInterval
-
remotePingMaxPeers
-
remoteEndpoints
-
remoteExposeEnabled
-
remoteStaticRoutes
public abstract DrasylConfig.Builder remoteStaticRoutes(Map<IdentityPublicKey, InetSocketAddress> remoteStaticRoutes) -
remoteMessageMtu
-
remoteMessageMaxContentLength
public abstract DrasylConfig.Builder remoteMessageMaxContentLength(int remoteMessageMaxContentLength) -
remoteMessageHopLimit
-
remoteMessageArmProtocolEnabled
public abstract DrasylConfig.Builder remoteMessageArmProtocolEnabled(boolean remoteMessageArmProtocolEnabled) -
remoteMessageArmProtocolSessionMaxCount
public abstract DrasylConfig.Builder remoteMessageArmProtocolSessionMaxCount(int remoteMessageArmProtocolSessionMaxCount) -
remoteMessageArmProtocolSessionExpireAfter
public abstract DrasylConfig.Builder remoteMessageArmProtocolSessionExpireAfter(Duration remoteMessageArmProtocolSessionExpireAfter) -
remoteMessageArmApplicationEnabled
public abstract DrasylConfig.Builder remoteMessageArmApplicationEnabled(boolean remoteMessageArmApplicationEnabled) -
remoteMessageArmApplicationAgreementMaxCount
public abstract DrasylConfig.Builder remoteMessageArmApplicationAgreementMaxCount(int remoteMessageArmApplicationAgreementMaxCount) -
remoteMessageArmApplicationAgreementExpireAfter
public abstract DrasylConfig.Builder remoteMessageArmApplicationAgreementExpireAfter(Duration remoteMessageArmApplicationAgreementExpireAfter) -
remoteMessageArmApplicationAgreementRetryInterval
public abstract DrasylConfig.Builder remoteMessageArmApplicationAgreementRetryInterval(Duration remoteMessageArmApplicationAgreementRetryInterval) -
remoteMessageComposedMessageTransferTimeout
public abstract DrasylConfig.Builder remoteMessageComposedMessageTransferTimeout(Duration messageComposedMessageTransferTimeout) -
remoteSuperPeerEnabled
-
remoteSuperPeerEndpoints
public abstract DrasylConfig.Builder remoteSuperPeerEndpoints(Set<PeerEndpoint> remoteSuperPeerEndpoints) -
intraVmDiscoveryEnabled
-
remoteLocalHostDiscoveryEnabled
public abstract DrasylConfig.Builder remoteLocalHostDiscoveryEnabled(boolean remoteLocalHostDiscoveryEnabled) -
remoteLocalHostDiscoveryPath
public abstract DrasylConfig.Builder remoteLocalHostDiscoveryPath(Path remoteLocalHostDiscoveryPath) -
remoteLocalHostDiscoveryLeaseTime
public abstract DrasylConfig.Builder remoteLocalHostDiscoveryLeaseTime(Duration remoteLocalHostDiscoveryLeaseTime) -
remoteLocalHostDiscoveryWatchEnabled
public abstract DrasylConfig.Builder remoteLocalHostDiscoveryWatchEnabled(boolean remoteLocalHostDiscoveryWatchEnabled) -
remoteLocalNetworkDiscoveryEnabled
public abstract DrasylConfig.Builder remoteLocalNetworkDiscoveryEnabled(boolean remoteLocalNetworkDiscoveryEnabled) -
remoteTcpFallbackEnabled
-
remoteTcpFallbackServerBindHost
public abstract DrasylConfig.Builder remoteTcpFallbackServerBindHost(InetAddress remoteTcpFallbackServerBindHost) -
remoteTcpFallbackServerBindPort
public abstract DrasylConfig.Builder remoteTcpFallbackServerBindPort(int remoteTcpFallbackServerBindPort) -
remoteTcpFallbackClientTimeout
public abstract DrasylConfig.Builder remoteTcpFallbackClientTimeout(Duration remoteTcpFallbackClientTimeout) -
remoteTcpFallbackClientAddress
public abstract DrasylConfig.Builder remoteTcpFallbackClientAddress(InetSocketAddress remoteTcpFallbackClientAddress) -
plugins
-
serializationSerializers
public abstract DrasylConfig.Builder serializationSerializers(Map<String, Serializer> serializationSerializers) -
serializationsBindingsInbound
public abstract DrasylConfig.Builder serializationsBindingsInbound(Map<Class<?>, String> serializationsBindingsInbound) -
serializationsBindingsInboundBuilder
-
addSerializationsBindingsInbound
-
serializationsBindingsOutboundBuilder
-
addSerializationsBindingsOutbound
-
build
-