RootServerInfo.java
public class RootServerInfo
A class that provides a server, and any needed server info classes
- a class that is a ServerProvider
- a builder for the ServerProvider
- an enum class that stores server index values
| Modifier and Type | Class and Description |
|---|---|
| static class | RootServerInfo.RootServerInfo1 class that stores a server index |
| static class | RootServerInfo.RootServerInfoBuilder class that stores a server index |
| enum | RootServerInfo.ServerIndex class that stores a server index |
implements ServerProvider<ServerIndex>
A class that stores servers and allows one to be returned with a ServerIndex instance
| Constructor and Description |
|---|
| RootServerInfo1(@Nullable Server0 server0,@Nullable Server1 server1,@Nullable Server2 server2) Creates an instance using passed in servers |
| Modifier and Type | Field and Description |
|---|---|
| Server0 | server0 |
| Server1 | server1 |
| Server2 | server2 |
| Modifier and Type | Method and Description |
|---|---|
| Server | getServer(ServerIndex serverIndex) |
a builder for RootServerInfo1
| Constructor and Description |
|---|
| RootServerInfoBuilder() Creates an instance |
| Modifier and Type | Method and Description |
|---|---|
| RootServerInfoBuilder | server0(Server0 server0) sets the server |
| RootServerInfoBuilder | server1(Server1 server1) sets the server |
| RootServerInfoBuilder | server2(Server2 server2) sets the server |
| RootServerInfo1 | build() |
enum ServerIndex
| Enum Constant And Description |
|---|
| SERVER_0 server 0 |
| SERVER_1 server 1 |
| SERVER_2 server 2 |