public static final class NodeStarter.TestNodeParameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.io.File |
baseDirectory
The directory where the test node will put all its data.
|
boolean |
connectToSeednodes |
boolean |
disableProbabilisticHTLs |
int |
dropProb |
boolean |
enableARKs |
boolean |
enableFCP |
boolean |
enableFOAF |
boolean |
enablePacketCoalescing |
boolean |
enablePerNodeFailureTables |
boolean |
enablePlugins |
boolean |
enableSwapping |
boolean |
enableSwapQueueing |
boolean |
enableULPRs |
Executor |
executor |
java.lang.String |
ipAddressOverride |
boolean |
longPingTimes |
short |
maxHTL |
int |
opennetPort
The UDP opennet port number.
|
int |
outputBandwidthLimit |
int |
port
The UDP port number.
|
boolean |
ramStore |
RandomSource |
random |
long |
storeSize |
int |
threadLimit |
boolean |
useSlashdotCache |
Constructor and Description |
---|
TestNodeParameters() |
public int port
public int opennetPort
public java.io.File baseDirectory
NodeStarter.createTestNode(TestNodeParameters)
will NOT fail if this exists.
You should make sure on your own to delete this before and after tests to ensure
a clean state. Notice that JUnit provides a mechanism for automatic creation
and deletion of test directories (TemporaryFolder).NodeStarter#globalTestInit(File, boolean,
LogLevel, String, boolean, RandomSource)
(which you have to do once for each Java VM):
Each one will start with a fresh empty subdirectory for as long as each of them uses a
unique port number.public boolean disableProbabilisticHTLs
public short maxHTL
public int dropProb
public RandomSource random
public Executor executor
public int threadLimit
public long storeSize
public boolean ramStore
public boolean enableSwapping
public boolean enableARKs
public boolean enableULPRs
public boolean enablePerNodeFailureTables
public boolean enableSwapQueueing
public boolean enablePacketCoalescing
public int outputBandwidthLimit
public boolean enableFOAF
public boolean connectToSeednodes
public boolean longPingTimes
public boolean useSlashdotCache
public java.lang.String ipAddressOverride
public boolean enableFCP
public boolean enablePlugins