Package org.drasyl.cli.node
Class NodeCommand
- java.lang.Object
-
- org.drasyl.cli.GlobalOptions
-
- org.drasyl.cli.node.NodeCommand
-
public class NodeCommand extends GlobalOptions implements Callable<Integer>
Run a drasyl node.
-
-
Field Summary
Fields Modifier and Type Field Description protected InetSocketAddress
rcBindAddress
protected int
rcEventsBufferSize
protected boolean
rcStartNode
protected picocli.CommandLine.Model.CommandSpec
spec
-
Fields inherited from class org.drasyl.cli.GlobalOptions
logLevel
-
-
Constructor Summary
Constructors Constructor Description NodeCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
call()
protected org.drasyl.node.DrasylConfig
getDrasylConfig()
Tries to load aDrasylConfig
from file defined inconfigFile
.protected org.drasyl.util.logging.Logger
log()
-
Methods inherited from class org.drasyl.cli.GlobalOptions
setLogLevel
-
-
-
-
Field Detail
-
rcBindAddress
protected InetSocketAddress rcBindAddress
-
rcEventsBufferSize
protected int rcEventsBufferSize
-
rcStartNode
protected boolean rcStartNode
-
spec
protected picocli.CommandLine.Model.CommandSpec spec
-
-
Method Detail
-
call
public Integer call() throws org.drasyl.node.DrasylException
-
log
protected org.drasyl.util.logging.Logger log()
- Specified by:
log
in classGlobalOptions
-
getDrasylConfig
protected org.drasyl.node.DrasylConfig getDrasylConfig()
Tries to load aDrasylConfig
from file defined inconfigFile
. If the does not exist, the default configuration will be used.
-
-