Constructor and Description |
---|
Builder(String... partitions)
Constructor
|
Modifier and Type | Method and Description |
---|---|
NetPart |
build() |
NetPart.Builder |
connect(int partition1,
int partition2)
Marks two partitions to be connected in a full-duplex mode
|
NetPart.Builder |
connect(int partition1,
int partition2,
boolean fullDuplex)
Marks two partitions to be connected in a full-duplex mode
|
public Builder(String... partitions)
partitions
- the node partitions as an array of string where each item is a comma-separated list of
nodes in a partition. By default, all of the partitions will be disconnectedpublic NetPart.Builder connect(int partition1, int partition2)
partition1
- the source partition number from the entered list of partitions in the constructor starting
from 1partition2
- the destination partition number from the entered list of partitions in the constructor
starting from 1public NetPart.Builder connect(int partition1, int partition2, boolean fullDuplex)
partition1
- the source partition number from the entered list of partitions in the constructor starting
from 1partition2
- the destination partition number from the entered list of partitions in the constructor
starting from 1fullDuplex
- if true the connection will be full duplex, otherwise the connection will be a simplex from
source to destinationpublic NetPart build()
Copyright © 2019. All rights reserved.