Constructor and Description |
---|
LayoutSegment(Layout.ReplicationMode replicationMode,
long start,
long end,
List<Layout.LayoutStripe> stripes)
Constructor Layout Segment, contiguous partition in a Corfu Log.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllLogServers()
Get all servers from all stripes present in this segment.
|
Layout.LayoutStripe |
getFirstStripe()
Gets the first stripe.
|
int |
getNumberOfStripes() |
public LayoutSegment(@NonNull Layout.ReplicationMode replicationMode, long start, long end, @NonNull List<Layout.LayoutStripe> stripes)
For example, [1...100], [101...200], [201...), where the last segment is active and open ended.
replicationMode
- The layout segment replication mode.start
- The start address for layout segment (e.g., 1).end
- The end address for layout segment. (e.g., 100)stripes
- List of stripes for layout segment.public int getNumberOfStripes()
public Layout.LayoutStripe getFirstStripe()
Copyright © 2019 CorfuDB. All rights reserved.