Package org.drasyl.cli.command.perf
Class PerfServerNode
- java.lang.Object
-
- org.drasyl.DrasylNode
-
- org.drasyl.behaviour.BehavioralDrasylNode
-
- org.drasyl.cli.command.perf.PerfServerNode
-
public class PerfServerNode extends BehavioralDrasylNode
PerfClientNode
s can connect to this server to perform connection tests.The server runs continuously. Clients can request an exclusive session on the server and do a performance test during that session. Once the test is complete, the session is closed, and the server waits for the next session.
-
-
Field Summary
Fields Modifier and Type Field Description static Duration
ONLINE_TIMEOUT
static Duration
TEST_DELAY
-
Constructor Summary
Constructors Constructor Description PerfServerNode(DrasylConfig config, PrintStream printStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Behavior
created()
CompletableFuture<Void>
doneFuture()
-
Methods inherited from class org.drasyl.behaviour.BehavioralDrasylNode
newBehaviorBuilder, onEvent
-
Methods inherited from class org.drasyl.DrasylNode
getVersion, identity, irrevocablyTerminate, pipeline, send, send, shutdown, start
-
-
-
-
Constructor Detail
-
PerfServerNode
public PerfServerNode(DrasylConfig config, PrintStream printStream) throws DrasylException
- Throws:
DrasylException
-
-
Method Detail
-
created
protected Behavior created()
- Specified by:
created
in classBehavioralDrasylNode
-
doneFuture
public CompletableFuture<Void> doneFuture()
-
-