Package org.drasyl
Class DrasylConfig
- java.lang.Object
-
- org.drasyl.DrasylConfig
-
public class DrasylConfig extends Object
This class represents the configuration for aDrasylNode
. For example, it defines the identity and the Super Peer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DrasylConfig.Builder
Builder class to create aDrasylConfig
with custom values.
-
Constructor Summary
Constructors Constructor Description DrasylConfig()
DrasylConfig(com.typesafe.config.Config config)
Creates a new config for a drasyl node.
-
Method Summary
-
-
-
Method Detail
-
isMonitoringEnabled
public boolean isMonitoringEnabled()
-
getMonitoringInfluxUri
public String getMonitoringInfluxUri()
-
getMonitoringInfluxUser
public String getMonitoringInfluxUser()
-
getMonitoringInfluxPassword
public String getMonitoringInfluxPassword()
-
getMonitoringInfluxDatabase
public String getMonitoringInfluxDatabase()
-
getMonitoringInfluxReportingFrequency
public Duration getMonitoringInfluxReportingFrequency()
-
getLoglevel
public ch.qos.logback.classic.Level getLoglevel()
-
getServerBindHost
public InetAddress getServerBindHost()
-
getServerBindPort
public int getServerBindPort()
-
getIdentityProofOfWork
public ProofOfWork getIdentityProofOfWork()
-
getIdentityPublicKey
public CompressedPublicKey getIdentityPublicKey()
-
getIdentityPrivateKey
public CompressedPrivateKey getIdentityPrivateKey()
-
getIdentityPath
public Path getIdentityPath()
-
isServerEnabled
public boolean isServerEnabled()
-
getServerSSLEnabled
public boolean getServerSSLEnabled()
-
getServerIdleRetries
public short getServerIdleRetries()
-
getSuperPeerHandshakeTimeout
public Duration getSuperPeerHandshakeTimeout()
-
getServerIdleTimeout
public Duration getServerIdleTimeout()
-
getFlushBufferSize
public int getFlushBufferSize()
-
getServerHandshakeTimeout
public Duration getServerHandshakeTimeout()
-
getServerChannelInitializer
public Class<? extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>> getServerChannelInitializer()
-
getMessageMaxContentLength
public int getMessageMaxContentLength()
-
getMessageHopLimit
public short getMessageHopLimit()
-
getMessageComposedMessageTransferTimeout
public Duration getMessageComposedMessageTransferTimeout()
-
isSuperPeerEnabled
public boolean isSuperPeerEnabled()
-
getSuperPeerChannelInitializer
public Class<? extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>> getSuperPeerChannelInitializer()
-
getSuperPeerIdleRetries
public short getSuperPeerIdleRetries()
-
getSuperPeerIdleTimeout
public Duration getSuperPeerIdleTimeout()
-
isIntraVmDiscoveryEnabled
public boolean isIntraVmDiscoveryEnabled()
-
isLocalHostDiscoveryEnabled
public boolean isLocalHostDiscoveryEnabled()
-
getLocalHostDiscoveryPath
public Path getLocalHostDiscoveryPath()
-
getLocalHostDiscoveryLeaseTime
public Duration getLocalHostDiscoveryLeaseTime()
-
areDirectConnectionsEnabled
public boolean areDirectConnectionsEnabled()
-
getDirectConnectionsMaxConcurrentConnections
public int getDirectConnectionsMaxConcurrentConnections()
-
getDirectConnectionsIdleTimeout
public Duration getDirectConnectionsIdleTimeout()
-
getDirectConnectionsIdleRetries
public short getDirectConnectionsIdleRetries()
-
getDirectConnectionsHandshakeTimeout
public Duration getDirectConnectionsHandshakeTimeout()
-
getPluginEnvironments
public List<PluginEnvironment> getPluginEnvironments()
-
getDirectConnectionsChannelInitializer
public Class<? extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>> getDirectConnectionsChannelInitializer()
-
isMarshallingAllowAllPrimitives
public boolean isMarshallingAllowAllPrimitives()
-
isMarshallingAllowArrayOfDefinedTypes
public boolean isMarshallingAllowArrayOfDefinedTypes()
-
isServerExposeEnabled
public boolean isServerExposeEnabled()
-
parseFile
public static DrasylConfig parseFile(File file)
-
newBuilder
public static DrasylConfig.Builder newBuilder()
-
newBuilder
public static DrasylConfig.Builder newBuilder(DrasylConfig config)
-
-